簡體   English   中英

Spring-Flex會話范圍服務

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM