File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply 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
 
 
subject: How to Call Local EJB From EJB EndPoint
 
Threads others viewed
EJB 3 Local Lookup not working with Weblogic 10.3 and JDK 1.6_05
Doubt in SessionBean contract(ejb 3.0 core)
Problem JNDI lookup of EJB from other EJB in same application / jar
J2EE Design Question -- Am I On The Right Track?
"java:comp/env/" problem
developer file tools