[jboss-user] [Messaging, JMS & JBossMQ] - Re: No resource manager found for jms/TCF
Nishank
do-not-reply at jboss.com
Wed Apr 9 09:27:45 EDT 2008
Hi all,
After lot of hair pulling I've finally found out the workaround of the problem.
I am not sure whether its a Jboss bug or our application bug.
I will give the steps what i have done to resolve this No resource manger found issue.
This is part of ejb-jar.xml which was giving the problem
<resource-ref id="res_ref_1">
<res-ref-name>jms/TCF</res-ref-name>
<res-type>javax.jms.TopicConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
The corresponding Jboss.xml looks like this:
<resource-ref>
<res-ref-name>jms/TCF</res-ref-name>
<resource-name>jms/TCF</resource-name>
</resource-ref>
<resource-managers>
<resource-manager res-class="javax.jms.TopicConnectionFactory">
<res-name>jms/TCF</res-name>
<res-jndi-name>TopicConnectionFactory</res-jndi-name>
</resource-manager>
</resource-managers>
Generally <resource-name> tag in Jboss.xml provides an indirection to the resource manager. The resource-name and res-name tags should be equal.. In my case both are jms/TCF. This is as per to the documentation of Jboss. But, I dont know this is not working. Rather if I make res-ref-name and res-name tag as equal(jms/TCF) and remove the resource-name tag from Jboss.xml then it starts working fine.
This is a workaround and still I am not sure whether it will work for others or not but for me it is working fine.
If somebody gets a much better solution then please do intimate me.
Any suggestions will be highly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142724#4142724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142724
More information about the jboss-user
mailing list