wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resin setup to use Sun One Message Queue
 
Similar Threads
JMS in JBOSS
Persistent Messages, What heppens if a system is started!
JMS subscription problem
Unknown JMS Destination type
Servlets, MDB and OC4J