How to auto create a JMS topic/queue on JBoss in a portable and per-application way?
- by Bozho
It's simple: I have an MDB and an EJB that sends messages to a topic (or queue). JBoss complains that the topic is not bound to the JNDI context.
I want to have the topic/queue to be automatically created at best, or at least to have a standard way to define it, per application (say, in ejb-jar/META-INF)
this question and this blogpost show us how to do it in an application server specific way. This surely works, but:
I want to use the @MessageDriven annotation
I want the setting not to be global for the application server
I want the setting to be portable