users@glassfish.java.net

Re: Call remote EJB3 module from web application.

From: <glassfish_at_javadesktop.org>
Date: Sun, 09 Dec 2007 15:09:12 PST

change this:
<sun-web-app>
<ejb-ref>
<ejb-ref-name>hello</ejb-ref-name>
<jndi-name>[b]java:comp/env/hello[/b]</jndi-name>
</ejb-ref>
</sun-web-app>

to

<sun-web-app>
<ejb-ref>
<ejb-ref-name>hello</ejb-ref-name>
<jndi-name>org.petka.remote.ejb.HelloRemote</jndi-name>
</ejb-ref>
</sun-web-app>

You can simplify it by using annotation alone without any descriptors.

Some ejb3 samples:
https://glassfish.dev.java.net/javaee5/ejb/EJB30.html

JavaEE Tutorial:
http://java.sun.com/javaee/5/docs/tutorial/doc/

Glassfish EJB FAQ:
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=249243