Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

portlet accessing ejb

 
hw khan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Thanks,
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic