> -----Original Message-----
> From: ant elder [mailto:[email protected]]
> Sent: Wednesday, January 11, 2012 1:38 PM
> To: [email protected]
> Subject: Re: RMIBinding does not work with ContributionClassLoader
>
> On Wed, Jan 11, 2012 at 12:30 PM, Millies, Sebastian
> <[email protected]> wrote:
> >
> >> -----Original Message-----
> >> From: Simon Nash [mailto:[email protected]]
> >> Sent: Wednesday, January 11, 2012 9:47 AM
> >> To: [email protected]
> >> Subject: Re: RMIBinding does not work with ContributionClassLoader
> >>
> > [snip]
> >> >
> >> I suspect that RMI is searching the thread context class loader
> (TCCL)
> >> when looking for the parameter types.  The Java launcher gives TCCL
> an
> >> initial value of the application classloader.
> >>
> >> There's an API in the Thread class to change TCCL, but doing this is
> >> an evil hack and I'd be hesitant to recommend it.
> >>
> >> As an experiment, you could try setting TCCL to the contribution
> >> classloader before making the RMI invocation and resetting it to its
> >> previous value when the invocation returns.  It would be interesting
> >> to know whether that resolves the problem.
> >>
> >>    Simon
> >
> > I have put the classes that occur as parameter types on the
> application
> > class path. Although not nice from an aesthetic point of view, it
> does
> > solve the immediate problem.
> >
> > -- Sebastian
>
> Is there any chance you could create a simple app or test to
> demonstrate this to give us to experiment with?
>
>    ...ant

I hope to make a simple test case next week.
-- Sebastian
IDS Scheer Consulting GmbH
Geschäftsführer/Managing Directors: Kamyar Niroumand, Ivo Totev
Sitz/Registered office: Altenkesseler Straße 17, 66115 Saarbrücken, Germany - 
Registergericht/Commercial register: Saarbrücken HRB 19681
http://www.softwareag.com

Reply via email to