Using an interface between two dl'ed applications

Calum Shaw-Mackay <[email protected]> Mon, 19 Jan 2009 10:55:20 +0000
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
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 [email protected]