I just ran Pet Store EJB JAR through EJX to create a
jboss.xml.  I loaded the existing ejb-jar.xml as type "EJB+jBoss" and
added entries for the EJB references.  Here's an example:

beans TheCart, TheCatalog
TheCart has an EJB reference to TheCatalog:
   ejb-ref-name=ejb/catalog
   ejb-link=TheCatalog

        When I go into the jBoss configuration section, there's a blank
for "JNDI Name" for the referenced bean.  I enter "TheCatalog".  The
output jboss.xml has:

   ejb-ref-name=ejb/TheCatalog
   jndi-name=TheCatalog

        This is clearly wrong, and jBoss refuses to start.  The
ejb-ref-name in the output should match the one in ejb-jar.xml, namely
"ejb/catalog" not "ejb/TheCatalog".
        Now, I'm not sure I should even be using this setting, since the
referenced EJB is named by the ejb-link.  But I'm extra unsure how it came
up with the ejb-ref-name it used, which is something I never typed in
anywhere - it's a mix of new and old!

        Finally, this only happened on 2 or 3 of 10 EJB references.  If
no one has any immediate thoughts, I'll enter a bug report.

Aaron


Reply via email to