|
Hi,
I tried to deploy a simple
EJB and it turned out that in order to get this EJB referenced from my
JSP its reference in JSP code should coincide with the location specified
in both orion-ejb-jar.xml and orion-web.xml. It seems to me that it is not
correct with the spec or I am missing something obvious?
My JSP looks like:
...
InitialContext initial = new
InitialContext();
Object objref = initial.lookup("foo"); fooHome home = (fooHome) PortableRemoteObject.narrow(objref, fooHome.class); fooRemote foo = home.create(); String hello = foo.sayHello(); out.println(hello); ...
My orion-web.xml:
...
<ejb-ref-mapping name="foo"
location="ejb/foo" />
...
My
orion-ejb-jar.xml:
...
<session-deployment name="fooEJB" location="ejb/foo"
wrapper="SessionHomeWrapper1" timeout="1200"
persistence-filename="fooEJB">
... So this
code doesnt work with throwing naming execption, but if I reference EJB
from my JSP as ejb/foo evth works fine!!
Is it a bug?
Thanks in advance.
P.S. The same is with resource
refs.
|
- EJB + SERVLET Egor Savotchkin
- EJB + SERVLET Vitaly Lipovetsky
- Re: EJB + SERVLET Vlad Petric
