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: Thu, 31 May 2007 17:35:49 -0400

Hi,
   In your <ejb> element, you need to have a <ejb-name> subelement
first. How else would the server know which ejb is trying to reference
this other Foo ejb. :-)

- Hong

glassfish_at_javadesktop.org wrote:

>We have tried various versions of this, but they all seem to throw errors.
>
><?xml version="1.0" encoding="UTF-8"?>
><!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 EJB 3.0//EN" "http://www.sun.com/software/appserver/dtds/sun-ejb-jar_3_0-0.dtd">
><sun-ejb-jar>
> <enterprise-beans>
> <ejb>
> <ejb-ref>
> <ejb-ref-name>fooejbref</ejb-ref-name>
> <jndi-name>corbaname:iiop:host2:3700#Foo</jndi-name>
> </ejb-ref>
> </ejb>
> </enterprise-beans>
></sun-ejb-jar>
>[Message sent by forum member 'mlingk' (mlingk)]
>
>http://forums.java.net/jive/thread.jspa?messageID=219816
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>