How to Create dynamic Proxy of dynamic stub?

rmahmood <[email protected]> Mon, 29 Dec 2008 02:25:05 -0800
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Hi All,

I have an application which intercept
javax.rmi.PortableRemoteObject.narrow() and javax.naming.Context.lookup()
through instrumentation of any existing Ejb application client. The
instrumentation is done by using an AOP framework.

Now my target is to serialize and deserialize the EJBHome and EJBObject
object which are actually
stubs(except in case of JBOSS where JBOSS creates Dynamic Proxy). It works
when i have statically
downloaded stub. 

But in case of dynamically downloaded stub as weblogic does,
de-serialization of stub
throws error because deserialization library could not find the stub class
at all. I think weblogic uses different classloader to load stub dynamically
and my deserialization library uses another classloader.
How can i fix this problem? One solution seams to wrap the stub before
serilalization in dynamic proxy
and use this dynamic proxy instead but still dynamic proxy will have this
stub refernce for actual call
delegation.

Please help me.

The other question related to stub is
Since i have preserved(serialized) these stubs, can i use these stubs again
after de-serialization and make call to some remote methods using these
stubs?
-- 
View this message in context: http://www.nabble.com/How-to-Create-dynamic-Proxy-of-dynamic-stub--tp21201292p21201292.html
Sent from the Java - RMI mailing list archive at Nabble.com.

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff RMI-USERS".  For general help, send email to
[email protected] and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html