File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet to Session Bean

 
cc95dh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to link/map a stateful session bean to a ServletSession. I have tried putting the remote reference into the ServletSession, but when I try to take it out of the ServletSession, I get a RemoteEJBException. I am using Borland App Server 4.5 trial edition.
Does the underlying framework of EJB know to return the same instance of a bean everytime I do a lookup ? or do I have to supply some parameters in the create method ? Ideally I would like to cache the remote reference in the ServletSession in order to avoid the JNDI lookup
any ideas ?
thanks, dan
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cc95dh",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in again with a new name which meets the requirements.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic