I am currently trying to deploy an app on JBoss 6.1 which has some JMS MessageListeners in it. The MessageListeners get the connection factory via JNDI
(using Spring), I am using the HornetQ
default connection factory which is named ConnectionFactory
. I am currently just using the default JMS Queues
that JBoss
starts with: DLQ
and ExpiryQueue
When I deploy via JMX
the app has no problem starting.
When I deploy by copying the app in to the deploy directory and start the server the app will fail to start giving the following error message: javax.naming.NameNotFoundException: ConnectionFactory not bound
. This implies to me that the app is starting before HornetQ
starts and is available via JNDI
.
I have looked in to creating dependencies using the jboss-dependency.xml
however I have not been able to get this to work and I am not sure if this is even the correct approach.
How can I ensure that the HornetQ
starts before my app?