You should add the dependency to the ConnectionFactory on your Bean description, to inject the dependency
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?
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:
And yes, you could also add the ConnectionFactories definition at your file.
Thanks for the suggestion Clebert.