dcsimg
<strong>IBM WebSphere</strong><br>We are running a customFinder method that returns org.omg.stub.javax.ejb._EJBObject_Stub instead the Remote Interface.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, September 19, 2002 08:27 AM

The customFinder methods in CMP EJBs for WebSphere must return the EJB's remote interface or an Enumeration, if the search can retrieve more than one row. To get the elements in the Enumeration we use casting in the nextElement method. Of course, after checking the hasMoreElements.


This casting we do using the EJB's remote interface, only to find a ClassCastException. Instead of the remote interface the nextElement returns a org.omg.stub.javax.ejb._EJBObject_Stub .

What we are trying to know actually is, why?. Once we know the answer maybe we'll be able to find what to do about it, so if anyone knows how to help us, please tell us before we go crazy.


Thanks a lot.

Re: <strong>IBM WebSphere</strong><br>We are running a customFinder method that returns org.omg.stub.javax.ejb._EJBObject_Stub instead the Remote Interface.

Posted By:   Christopher_Schultz  
Posted On:   Thursday, September 19, 2002 11:10 AM

This seems reasonable (to have this crazy object class name), since the container has to generate these things at deployment time.



My best guess is that your deployment descriptor has the wrong interface name for your remote interface for that particular EJB. If that's the case, your bean might deploy, but it won't be an instance of, say, "MyBean", but an instance of "MyOtherBean".



Before you go tearing your hair out or paying IBM to send consultants to your rescue, check that our and make sure everything's right.



Good luck,

-chris
About | Sitemap | Contact