[英]Spring-Flex Session Scope Service
我正在使用Spring Flex項目1.5 。 我希望創建一個具有會話范圍的服務。
@Service("storeService")
@Scope(value = "session", proxyMode = ScopedProxyMode.INTERFACES)
@RemotingDestination(channels = { "my-amf" })
public class StoreService implements IStoreService {
當我訪問服務時, 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.
如果不使用@Scope注釋,我沒有問題,但是它是單例作用域而不是會話作用域。 我有什么想念的嗎?
將ScopedProxyMode.TARGET_CLASS
更改為ScopedProxyMode.TARGET_CLASS
后,問題得以解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.