This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: resin setup to use Sun One Message Queue
 
It's not a secret anymore!