I tried to follow the directions in the link, but I was unsuccessful. This is
what I have done so far:
Created a deployment descriptor called glassfish-ejb-jar.xml and placed it
under my WEB-INF directory. Note that my application is a web application
with WAR packaging. I figure that since my MDB is currently working I should
not have to repackage as an EAR. Here are the contents of my
glassfish-ejb-jar.xml
<!DOCTYPE glassfish-ejb-jar PUBLIC "-//GlassFish.org// DTD GlassFish
Application Server 3.1 EJB 3.1//EN"
"
http://glassfish.org/dtds/glassfish-ejb-jar_3_1-1.dtd"> <glassfish-ejb-jar>
<display-name>First Module</display-name> <enterprise-beans> <ejb>
<ejb-name>FixExchangeListener</ejb-name>
<jndi-name>jms/FixExchangeListener</jndi-name> <resource-ref>
<res-ref-name>jms/ConnectionFactory</res-ref-name>
<jndi-name>jms/ConnectionFactory</jndi-name> <default-resource-principal>
<name>guest</name> <password>guest</password> </default-resource-principal>
</resource-ref> <bean-pool> <steady-pool-size>1</steady-pool-size>
<resize-quantity>1</resize-quantity> <max-pool-size>1</max-pool-size>
<pool-idle-timeout-in-seconds>3</pool-idle-timeout-in-seconds> </bean-pool>
</ejb> <message-destination>
<message-destination-name>ExchangeToOmsJavaeeFixQueue</message-destination-name>
<jndi-name>jms/ExchangeToOmsJavaeeFixQueue</jndi-name> </message-destination>
<property> <name>singleton-bean-pool</name> <value>true</value> </property>
</enterprise-beans> <keep-state>true</keep-state> </glassfish-ejb-jar>
When I deploy my war, I get the following errors:
19:35:21.408 WARN
com.sun.enterprise.deployment.node.DeploymentDescriptorNode[ 419] - DPL8007:
Unsupported deployment descriptors element display-name value First Module
19:35:21.414 WARN com.sun.enterprise.deployment.node.runtime.ResourceRefNode[
106] - This bean [FixExchangeListener] has no resource reference by the name
of [jms/ConnectionFactory] 19:35:21.415 WARN
com.sun.enterprise.deployment.node.DeploymentDescriptorNode[ 392] - DPL8007:
Unsupported deployment descriptors element jndi-name value
jms/ConnectionFactory 19:35:21.416 WARN
com.sun.enterprise.deployment.node.runtime.ResourceRefNode[ 120] - DPL8006:
get/add descriptor failure : guest TO
com.sun.enterprise.deployment.node.runtime.ResourceRefNode_at_a5113a
19:35:21.417 WARN
com.sun.enterprise.deployment.node.runtime.MessageDestinationRuntimeNode[
106] - Referencing error: this bundle has no message destination of name:
ExchangeToOmsJavaeeFixQueue 19:35:23.560 ERROR
com.sun.enterprise.util.i18n.StringManagerBase[ 129] - UTIL6550: Error in
local string manager - resource bundle is probably missing.
java.util.MissingResourceException: Can't find bundle for base name
com.sun.enterprise.connectors.jms.system.LocalStrings, locale en_US
What am I doing wrong?
--
[Message sent by forum member 'nbhatia']
View Post: http://forums.java.net/node/788267