This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Similar Threads
Convert existing EJB+Struts based application to Portlet
Inter portlet Call
Portlet Calling an EJB in WPS
how to call web services in JSP?
Calling one portlet from another portlet