dev@glassfish.java.net

Glassfish and JNDI names for MDBs

From: Peter Williams <Pete.Williams_at_Sun.COM>
Date: Mon, 08 Oct 2007 14:42:59 -0700

I have an ear with a mis-configured MDB and, as expected, on deployment,
the deploy fails with the message:

MDB00017: [AltOneMDBBean]: Exception in creating message-driven bean
container: [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS
resource not created : ]
com.sun.enterprise.connectors.ConnectorRuntimeException
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource
not created :
        at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1528)
        at
com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1379)
        at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
        ...

Is there a way to discover the JMS resource name that Glassfish was
looking for? The error message is of no use in this respect.

Furthermore, for this app, the MDB did not specify either mapped-name in
the annotation or a jndi-name in sun-ejb-jar.xml. I was attempting to
discover what the automatically assigned JNDI name, if any, would be.
Even though the deploy failed, the server did write out
metadata-complete descriptor files and the sun-ejb-jar.xml computed by
the server does not assign a JNDI name for this MDB.

Does this mean the server does not automatically assign default JNDI
names for JavaEE5 MDBs? Should it have? (Since an external resource is
involved, I can certainly see issues with doing so.)

-Peter