File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Portlet calling an EJB" Watch "Portlet calling an EJB" New topic
Author

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
Dharmesh


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

Joined: Aug 10, 2001
Posts: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Portlet calling an EJB