If there is a requirement to send JMS messages to different partners who host jms based interface, I beleive I need to store the details of the partners remote JNDI url, connection factory, destinations etc., to construct InitialContext used to lookup the services for every partner (using ServiceLocator pattern). Is this approach correct, Or is there any better way to handle this.
You could also assume there is a separate module handling these details. This module could be a system that is already part of your business but out of the scope of your project.
A system that has both a synchronous and asynchronous manner of communication. Hopefully this will provide you sufficient hints to proceed.
Police line, do not cross. Well, this tiny ad can go through: