users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 May 2007 14:47:40 PDT

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