Andrew,

Thanks for the reply. I'm using the following in OrderBean:

* @ejb.ejb-ref
 *      ejb-name="Customer"
 *      view-type="local"
 *      ref-name="Customer"
 *
 * @jboss.ejb-ref-jndi jndi-name="CustomerJNDI"
 *                     ref-name="Customer"

and in jboss.xml I get:

<ejb-ref>
      <ejb-ref-name>ejb/Customer</ejb-ref-name>
        <jndi-name>CustomerJNDI</jndi-name>
</ejb-ref>

and this error message in JBoss:

"...DeploymentException: Error in jboss.xml for Bean Order: ejb-ref
ejb/Customer found in jboss.xml but not in ejb-jar.xml"

I need to be able to either remove the ejb/ from jboss.xml or add to
ejb-jar.xml something like :

<ejb-ref>
      <ejb-ref-name>ejb/Customer</ejb-ref-name>
</ejb-ref>

Or am I doing something wrong?


Richard



If I try :

* @jboss.ejb-ref-jndi jndi-name="CustomerJNDI"
 *                     ref-name="ejb/Customer"

I get two "ejb/" :

<ejb-ref>
      <ejb-ref-name>ejb/ejb/Customer</ejb-ref-name> 
        <jndi-name>CustomerJNDI</jndi-name>
</ejb-ref>



Andrew Stevens wrote:
> 
> Copied to the list, where it should have gone in the first place.  The
> developers don't do private email, that's what paid consultants are
> for...
> 
> On Fri, 2003-03-14 at 16:03, Richard Stack wrote:
> > In the Xdoclet-user Mail Archive I found this message but no further
> > thread. Did you resolve why ejb-ref generates a ejb/MyBeanName in
> > jboss.xml and not in ejb-jar.xml?
> 
> I imagine it was due to the fact he'd used
> 
> * @ejb.ejb-ref
> *    ejb-name="Osoba"
> *    ref-name="ejb/Osoba"
> *           view-type="local"
> *
> * @jboss.ejb-ref-jndi
> *    jndi-name="Osoba"
> *    ref-name="Osoba"
> 
> in his bean - note the ref-name parameters are different?  GIGO.
> 
> > Is there a way to supress the auto creation of ejb/ ?
> 
> Specify a ref-name yourself that doesn't include it?
> 
> Andrew.
> 
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to