-
1. Re: Unique problem with Messaging
clebert.suconic Oct 14, 2008 1:13 PM (in response to pradeeps)You should add the dependency to the ConnectionFactory on your Bean description, to inject the dependency
-
2. Re: Unique problem with Messaging
pradeeps Oct 14, 2008 1:50 PM (in response to pradeeps)Thanks for the instant reply Clebert.
I am new to JBOSS.
The logs clearly show that JBOSS is deploying my RAR before it got around to creating the queues and ConnectionFactory which the RAR is using.
In my applicationContext.xml I am setting the dependency in the beans definition.
Where do I specify the dependency that will make sure that JBOSS does not deploy my RAR before it has had the opportunity to create the resources like ConnectionFactory?
Thanks. -
3. Re: Unique problem with Messaging
clebert.suconic Oct 14, 2008 2:11 PM (in response to pradeeps)This would be a question more appropriate to JMX or JBAS users forum.
I'm not sure how users usually create RARs.
But look on docs for the depends on MBean definitions. Something like:<depends>jboss.messaging.connectionfactory:service=ConnectionFactory</depends>
And yes, you could also add the ConnectionFactories definition at your file. -
4. Re: Unique problem with Messaging
pradeeps Oct 16, 2008 9:10 AM (in response to pradeeps)Thanks for the suggestion Clebert.