On Fri, 2007-12-28 at 18:11 +0100, Schnack, Malte wrote:
> In Orchestra, I want to access the "real bean" behind the proxies to
> make it available in another context (eg a JBPM variable map). This
> seems to be necessary for serialization when invoking an RMI method
> using the Orhestra/Spring conversation scoped bean as parameter DTO
> object. This is what is happening inside my JBPM process definition.
> 
> I already used the ScopedObject method getTargetObject() included in
> Spring. This did not resolve to the "real bean" though but to the
> CurrentConversationAdvice. When trying to perform the RMI call, my
> Glassfish v2 server log shows the following error message:

I think the CurrentConversationAdvice can also be cast to ScopedObject.
Have you tried this?
  Object bean = ...;
  while (bean instanceof ScopedObject)
    bean = ((ScopedObject) bean).getTargetObject();

Regards,

Simon

Reply via email to