首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring-Flex会话作用域服务

Spring-Flex会话作用域服务
EN

Stack Overflow用户
提问于 2011-10-27 17:20:49
回答 1查看 722关注 0票数 0

我正在使用Spring Flex project 1.5。我希望创建一个具有会话作用域的服务。

代码语言:javascript
复制
@Service("storeService")
@Scope(value = "session", proxyMode = ScopedProxyMode.INTERFACES)
@RemotingDestination(channels = { "my-amf" })
public class StoreService implements IStoreService {

当我访问该服务时,我收到了No destination错误。

代码语言:javascript
复制
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注解,我没有问题,但它是单例作用域而不是会话作用域。我错过了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-10-28 17:55:07

将proxyMode改为ScopedProxyMode.TARGET_CLASS后,问题就解决了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7913949

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档