我正在使用Spring Flex project 1.5。我希望创建一个具有会话作用域的服务。
@Service("storeService")
@Scope(value = "session", proxyMode = ScopedProxyMode.INTERFACES)
@RemotingDestination(channels = { "my-amf" })
public class StoreService implements IStoreService {当我访问该服务时,我收到了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.如果我不用@Scope注解,我没有问题,但它是单例作用域而不是会话作用域。我错过了什么吗?
发布于 2011-10-28 17:55:07
将proxyMode改为ScopedProxyMode.TARGET_CLASS后,问题就解决了。
https://stackoverflow.com/questions/7913949
复制相似问题