Two Laptop Bag
The moose likes Portals and Portlets and the fly likes portlet accessing ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "portlet accessing ejb" Watch "portlet accessing ejb" New topic

portlet accessing ejb

hw khan

Joined: Oct 03, 2007
Posts: 9

Iam new to IBM Webspere portal and I need to learn how to access EJB from a portlet.
Can anyone please help me with some examples, tutorials, articles
anything relavent.
I have all the posible links given by IBM, But not much of help.
Iam in need of step-by-step tutorial with a simple example to understand how to access EJB from portlet.

Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968

There's absolutely no difference between accessing an EJB from a portlet as there is from a Servlet. Just do the JNDI lookup, get the home, obtain the remote interface, call the methods and catch the exceptions.

Absolutely no difference at all.

Here's a tutorial on invoking EJBs from a Servlet. No difference with a portlet:

How to write EJB clients with WebSphere and Rational Application Developer

[ November 30, 2007: Message edited by: Cameron McKenzie ]
I agree. Here's the link:
subject: portlet accessing ejb
jQuery in Action, 3rd edition