Hi all,

We're hoping to use Tuscany for our stateless services.  These services, by and 
large, can be (and should be) totally stateless and thus, in the interest of 
lower GC issues, singletons.  Great, we @Scope them as Composites.

However, if we want to have an asynchronous 'conversation' with these... well.. 
we haven't figured out how to do it.  

Issues:

1.  The callback functionality is injected into the destination component 
object rather than maintained by a proxy.  If this object is a singleton-ish 
entity.. well, not thread safe. 
2.  When the callback is actually made, the originating caller (that might be 
scoped as 'Conversation') can't be located and a new instance is created.  This 
may be because the singleton's callback is being corrupted (overwritten).. thus 
just another variant of issue 1.

So is it possible to scope a component as a 'Composite' and yet enable 
'Stateless' or 'Conversation' scoped components interact with them in any 
asynchronous way?

Thanks,

George

Reply via email to