简体   繁体   English

Spring-Flex会话范围服务

[英]Spring-Flex Session Scope Service

I am using Spring Flex project 1.5 . 我正在使用Spring Flex项目1.5 I wish to create a service with session scope. 我希望创建一个具有会话范围的服务。

@Service("storeService")
@Scope(value = "session", proxyMode = ScopedProxyMode.INTERFACES)
@RemotingDestination(channels = { "my-amf" })
public class StoreService implements IStoreService {

When I access the service, I got No destination error. 当我访问服务时, No destination收到No destination错误。

org.springframework.flex.core.DefaultExceptionLogger - The following exception occurred during request processing by the BlazeDS MessageBroker and will be serialized back to the client: 
flex.messaging.MessageException: No destination with id 'storeService' is registered with any service.

I have no issue if I do not annotate with @Scope, but it is singleton scope not session scope. 如果不使用@Scope注释,我没有问题,但是它是单例作用域而不是会话作用域。 Am I missing anything? 我有什么想念的吗?

ScopedProxyMode.TARGET_CLASS更改为ScopedProxyMode.TARGET_CLASS后,问题得以解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM