-
Notifications
You must be signed in to change notification settings - Fork 33
Description
(Please tag this as a use case)
When I watched the latest JMS 3.0 ideas presentation one of the things I felt was missing was a way to indicate the correct destination and connection factory.
For example, in the "all together" example the destination is hardcoded in an annotation stereotype and the message consumer itself uses some nameless (default?) connection factory.
I regularly have to work with software that has to support swappable MOM and configurable destination names. The traditional approach is to use JNDI to refer to both, but it doesn't work that well without an actual EE server where someone has to configure the connection factory and the destination in some vendor-specific way.
In an ideal case I should be able to package my software along with all the Jakarta Messaging implementations I need in a container that picks the configuration from either environment variables or an injected configuration file at startup and initializes my connection factories, message consumers and destinations.