A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Calling an ejb from a servlet
Joined: Oct 05, 2006
Apr 14, 2008 14:33:00
I've got a stateless session bean with a remote interface
deployed to a
4.2.2 server. My client code to
the bean works to perfection.
However, I decided to put it in a web app and use the bean.
My 1st question is if my webapp is deployed to the same
server, does my InitialContext environmentdiffer from that
in my client code?
My next question is What could cause a PortableRemoteObject exception
when I call narrow(). Could it be I need to have a Local interface
Joined: Aug 15, 2004
Apr 14, 2008 15:50:00
well, are you using
2.x or 3.0, and how did you test your ejb
SCJP 1.4, SCWCD 1.4, SCBCD 5, SCJD 5
I agree. Here's the link:
subject: Calling an ejb from a servlet
How to generate stubs
HFEJB: ejb deployable jar content ?
Location of stub and Remote Interface...Urgent pls
Running a RMI Application
EJB 2.1 in 3.0 Container
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014