I'm trying to setup a message driven bean and am getting an error
during deployment that I don't understand. Here is the error the
I am getting:
Auto-deploying jmsdemoEjb.jar (ejb-jar.xml had been touched since the
previous deployment)... done.
Error deploying
file:/C:/utils/oc4j/j2ee/home/applications/jmsdemo/jmsdemoEjb.jar homes: No
javax.jms.Destination found at the specified destination-location
(java:comp/env/jms/theQueue) for MessageDrivenBean cache/CacheMDBean
This seems to be telling me that 'theQueue' is not of the type
javax.jms.Destination, correct?
Here is my jms.xml:
<jms-server port="9127">
<queue-connection-factory
location="java:comp/env/jms/theQueueConnectionFactory" />
<queue
name="The Queue"
location="java:comp/env/jms/theQueue" >
<description>The JMS Demo Queue</description>
</queue>
<!-- path to the log-file where JMS-events/errors are stored -->
<log>
<file path="../log/jms.log" />
</log>
</jms-server>
And here is my ejb-jar.xml:
<message-driven>
<ejb-name>cache/CacheMDBean</ejb-name>
<ejb-class>com.optimaxx.server.rms.CacheMDBean</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>auto-acknowledge</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>java:comp/env/jms/theQueueConnectionFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<res-ref-name>java:comp/env/jms/theQueue</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
And finally here is my orion-ejb-jar.xml:
<message-driven-deployment name="cache/CacheMDBean"
connection-factory-location="java:comp/env/jms/theQueueConnectionFactory"
destination-location="java:comp/env/jms/theQueue" >
<resource-ref-mapping name="java:comp/env/jms/theQueueConnectionFactory"
/>
</message-driven-deployment>
Any ideas? When I pull up a JNDI browser and look at what's registered, my
browser
shows theQueueConnectionFactory being of type
com.evermind.server.jms.EvermindXAQueueConnectionFactory, and thQueue being
of
type com.evermind.server.jms.EvermindQueue. So I think everything is setup
correctly,
but I must be missing one silly little thing. help! ;)
Darryl Dieckman