aspose file tools*
The moose likes Java in General and the fly likes resin setup to use Sun One Message Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "resin setup to use Sun One Message Queue" Watch "resin setup to use Sun One Message Queue" New topic
Author

resin setup to use Sun One Message Queue

Shruti Gupta
Greenhorn

Joined: Sep 30, 2005
Posts: 2
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: resin setup to use Sun One Message Queue