I have a requirement to send message to the broker with the JMS connection of the ESB container.
I was planning to use XQServiceContext.getCurrentJMSConnection() to get the connection and use it for sending messages but later I realized the XQServiceContext will be available only when a message comes in to the service.
I need the JMS connection as soon as the ESB container is started, so I believe I can’t use XQServiceContext.getCurrentJMSConnection().
Is there a way to get the JMS connection of the ESB container as soon as it is started?
Please advice.
Many Thanks,