Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Disable RMI class download

843793Jun 17 2009 — edited Nov 17 2009
Hi I have problem with class download.
In my deployment I have all requried classes for RMI calls embeded in jar and loaded into VM.
Everything is fine - it works well, my application is able to create RMI objects, and dispatch calls. In class loader debug I see that only case when URLClassLoader is used is when it tries to locate classes, and its fine, since URL in code source is correct - pointing to bean. However, when security manger is on everything blows up. RMI enforces class download (classes are already present in VM) whcih causes Linkage exceptions, URL class loader is called to download classes - even though its a local call.


Any way to convince RMI not to download classes?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2009
Added on Jun 17 2009
7 comments
493 views