wood burning stoves 2.0*
The moose likes Web Services and the fly likes How to Call Local EJB From EJB EndPoint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "How to Call Local EJB From EJB EndPoint" Watch "How to Call Local EJB From EJB EndPoint" New topic
Author

How to Call Local EJB From EJB EndPoint

Salman Riaz
Ranch Hand

Joined: Jul 24, 2003
Posts: 53
Hi,

I have a very Simple Webservice deployed on Oracle OC4J Container.
Web Service End point is Stateless Session EJB.
I am trying to call other EJBs from within my EJB End point. Other EJB i am defiing as local with only local and local-home interface, and am defining in the EJB-JAR.xml as <ejb-local-ref> element within Session Tag of End Point EJB.

When i try to Run that EJB it gives me error as java.rmi.ServerException.

Where Client Calls --> EndpointEJB calls -->EndpointEjbInt_stub calls EndpointEJBBean.someMethod(), (this method is simple String return)

Another Method within the EndpointEJBBean is calling local beans method.

Please provide any help!!

Thanks in Advance.

Salman
 
GeeCON Prague 2014
 
subject: How to Call Local EJB From EJB EndPoint