users@glassfish.java.net

Re: Help with sun-ejb-jar.xml setup for Remote EJB reference syntax

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Wed, 30 May 2007 21:49:01 -0400

Hi, Mike
   Can you post your sun-ejb-jar.xml so we can take a look?
 
  - Hong

glassfish_at_javadesktop.org wrote:

>I am able to access a remote EJB using the following syntax in a local EJB,
>
>@EJB ( mappedName="corbaname:iiop:mlingk.theocc.com:3700#ejb/risk")
>RiskServer rs;
>
>I am also able to put a reference in the sun-web.xml
> <ejb-ref>
> <ejb-ref-name>ejb/risk</ejb-ref-name>
> <jndi-name>corbaname:iiop:mlingk.theocc.com:3700#ejb/risk</jndi-name>
> </ejb-ref>
>
>and then lookup the reference java:comp/env/ejb/risk in a Servlet and make calls fine.
>
>However, I am unable to lookup the values in the sun-web.xml from an EJB (which I'm assuming is normal), but if I try to enter the values in the <ejb> section of the sun-ejb-jar.xml I get the following error message
>
>DPL8006: get/add descriptor failure
>
>for both ejb-ref-name and jndi-name. Can somebody tell me the correct syntax for these entries in the sun-ejb-jar.xml file? Also, I only have the interface definition in the local enterpise application.
>
> Thanks for any help, Mike
>[Message sent by forum member 'mlingk' (mlingk)]
>
>http://forums.java.net/jive/thread.jspa?messageID=219545
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>