File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Servlet to Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Servlet to Session Bean" Watch "Servlet to Session Bean" New topic

Servlet to Session Bean


Joined: May 28, 2001
Posts: 1
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

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at .
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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Servlet to Session Bean
It's not a secret anymore!