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 think this is problematic as the first call to get a proxy from the new
callable reference (ref.getService) happens outside the context of a
component. I have a nagging doubt that Raymond has discuss this before but I
can't find a post about it in the archive.

Regards

Simon

Reply via email to