File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes Portlet calling an EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Portlet calling an EJB" Watch "Portlet calling an EJB" New topic

Portlet calling an EJB

Dharmesh Chheda
Ranch Hand

Joined: May 08, 2001
Posts: 204
Hello all
How can i call an EJB from a portlet. As known a portlet is installed as a war file which after installation becomes an enterprise applicaiton.
But i want my portlet to call an EJB .. how should i package the ejb-jar with the portlet?
i am using WebSphere Portal Server 4.1
please help

regards,<br />Dharmesh Chheda
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Strange but true...
Include the EJB-JAR file in the "lib" directory of your WAR file. Then you can use the EJB classes from your Servlets, JSP's and Portlets.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: Portlet calling an EJB
It's not a secret anymore!