Two Laptop Bag*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
-----------------------------------------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help required for custom classloader
 
Similar Threads
ClassCastException at PortableRemoteObject.narrow
Unable to locate Home Interface in WSS 3.5 AE
Providing sessionbeans through init()
JNDI lookup in EJBHomeFactory pattern
Invoking EJB methods using reflection