Hi All,
I am trying to create a Message Driven Bean listening to a Sun One Message Queue (TestQ) which is already created. The Message Driven Bean is deployed in resin 3.0.14. However, whenever I try to run the application, the get the error -
javax.jms.ResourceAllocationException: [C4073]: A JMS destination limit
was reached. Too many Subscribers/Receivers for Queue : Untitled_Destination_Object
I am not able to understand as to why the bean is going to Untitled_Destination_Object queue. Can somebody please help if I am missing anything in the configuration files.
--------WEB-INF.xml--------
<jndi-link jndi-name="java:comp/env/jms"
factory="com.sun.jndi.fscontext.RefFSContextFactory">
<init-param java.naming.provider.url="file:///c:/imq_admin_objects"/>
</jndi-link>
<resource jndi-name='TestQFactory' type='com.sun.messaging.QueueConnectionFactory'>
</resource>
<resource jndi-name='TestQ'
type='com.sun.messaging.Queue'>
</resource>
<ejb-server config-directory="WEB-INF">
<jms-connection-factory>TestQFactory</jms-connection-factory>
<jndi-name>java:comp/env/jms</jndi-name>
</ejb-server>
----------------------------------------------
---------Message.ejb----------------
<ejb-jar xmlns="http://caucho.com/ns/resin">
<enterprise-beans>
<message-driven>
<ejb-name>SimpleMessageBean</ejb-name>
<ejb-class>example.SimpleMessageBean</ejb-class>
<connection-factory>TestQFactory</connection-factory>
<destination>TestQ</destination>
</message-driven>
</enterprise-beans>
</ejb-jar>
----------------------------------------------------------
Any help is appreciated.
Thanks and Regards,
Shruti