Calum Shaw-Mackay
2009-01-19 10:55:20 UTC
Given a system 'A' that allows objects 'B' and 'C' to be deployed to
it, where 'C' has an interface dependency on 'B'. Also 'B' and 'C" are
independently deployed, with potentially different codebases, but with
the same interface definition (compiled) in each.
When 'C' requests access to 'B' via a dynamic proxy generated from the
Interface declared in 'B's codebase, I get a ClassNotFoundException,
I'm assuming that this is because B's classes are being declared in a
different classloader to 'C's.
Is there any way to get around this - any particular usage of
PREFERRED.LIST?
Cheers
Calum
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to ***@java.sun.com
it, where 'C' has an interface dependency on 'B'. Also 'B' and 'C" are
independently deployed, with potentially different codebases, but with
the same interface definition (compiled) in each.
When 'C' requests access to 'B' via a dynamic proxy generated from the
Interface declared in 'B's codebase, I get a ClassNotFoundException,
I'm assuming that this is because B's classes are being declared in a
different classloader to 'C's.
Is there any way to get around this - any particular usage of
PREFERRED.LIST?
Cheers
Calum
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to ***@java.sun.com