ejb@glassfish.java.net

Re: need help on ejb3 in glassfish

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Fri, 16 Oct 2009 09:51:25 -0400

On Oct 16, 2009, at 9:47 AM, Mohanapriyanka_Dasari wrote:

> Hi
>
> Please help me on how to look up EJB3 Remote interface in JSP/
> Servlet.I am using Glassfish server.
>
> hello = (Hello) ic.lookup("firstejb/"+Hello.class.getName()+"/
> remote");

Hi Priyanka,

This JNDI name is Jboss-specific. Please see our EJB FAQ for
information on GlassFish JNDI names.
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINameAssignment

The GlassFish V3 release will fix this problem by including support
for EJB 3.1, which defines portable
EJB JNDI names.

>
> This is how i used but it doesnt work.Please help me this
>
> Thank you.
>
> Regards,
> Priyanka
>
>
>
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use
> of the intended recipient/s and may contain material that is
> CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance
> by others or copying or distribution or forwarding of any or all of
> the contents in this message is STRICTLY PROHIBITED. If you are not
> the intended recipient, please contact the sender by email and
> delete all copies; your cooperation in this regard is appreciated.