Configuration of multi JMS service for a single listener having single MQ
I have a requirement where I have to read from a single MQ but based on different messages I need to create different work orders.
Specifically, one existing MQ will be used as a source and I need to create only one listener to avoid multiple ear deployment. Is there any way I can configure single Listener with multiple service JMS. I did try to find solution in community forum but not able to find suitable answer.
You can easily use a field in the message body or header (e.g., worktype) to make the decision what type of work orders to create in the service activity, all using a single listener. Also I don’t understand why you think you need multiple ear deployment for more than 1 MDB. You can have as many MDBs as you want all within a single ear deployment.
I know that I can deploy multiple MDBs in a single ear file but the problem currently I am facing is the listeners are building phase by phase and need ear deployment every time a new listener/MDBs will create.
Also as supporting legacy or existing application the XMLs can not be modified or rebuild. So introducing a new tag is not a feasible option.