2007/11/23, Simon Laws <[EMAIL PROTECTED]>: > The CallableReference implementation depends on the ComponentContextHelper > amongst other things (see the resolve method). Is the implication that > CallableReferences should only be used inside SCA components? > For example, Is the following an invalid scenario? > > J2SE Client > ------------------------------------------------------------------> SCA > Component > main() > myService = domain.getService(..) > ref = myService.getAServiceReference() > getAServiceReference() //returns a reference to self > service = ref.getService() > service.anotherMethod > anotherMethod()
I belive, that if you don't have access from outside to the component context there's no problem, if you have access to it by the serialized CallableReference, this violates component encapusulation, you might provide a so called RemoteReference, which it restrict this possibility. From the functional point of view, i think that 's no problem because you're calling a reference from something that's consistent. It's not neat, but it works. May be the post that you was searching is this: http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200705.mbox/[EMAIL PROTECTED] Cheers, Giorgio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
