Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlet calling an EJB

 
Dharmesh Chheda
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic