File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Help required for custom classloader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help required for custom classloader" Watch "Help required for custom classloader" New topic
Author

Help required for custom classloader

Prashant Bhardwaj
Greenhorn

Joined: Jul 25, 2006
Posts: 16
Hi,
It seems that WL 8.1, SP2 does not support classloading over the network
when i try to make an anonymous call to a remote ejb interface using reflection. I have attached an example you can test with, just change the look method parameter to any remote interface on your server. When i
use the same code within my deployed application (*.ear) i get
Exceptions. On v8.1 SP2 i get ClassCastException (shown in code)

When i use the code inside my application in weblogic i want to access
another Application (ear) remote interface without knowning its interfaces
through jar/class files in my application...

Do any of you have experience with this way of accessing ejb inside an
application in weblogic?
Weblogic say there server is designed in such a way, and the only way out is to use a custom class loader.

Cheers Prashant
-----------------------------------------------------
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help required for custom classloader
 
Similar Threads
Providing sessionbeans through init()
Unable to locate Home Interface in WSS 3.5 AE
Invoking EJB methods using reflection
ClassCastException at PortableRemoteObject.narrow
JNDI lookup in EJBHomeFactory pattern