简体   繁体   中英

Spring-Flex Session Scope Service

I am using Spring Flex project 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.

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. Am I missing anything?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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