java - Post a message to a remote JMS queue using JBoss -
It sounds simple but I can not find a simple answer. I want to open a connection Open a session in a remote JMS broker (known for IP and port), a specific queue (known as) and post a message in this queue . Any easy Java API (if possible) to do this? Given that I am running in Jebus, I still do not understand how to make it. Edit I actually gave the problem some thoughts (Hmmm) and if JMS needs to behave like JDBC , Then I have to use the client provided through my MQ implementation. Since we are using SonicMQ for our broker, I have decided to embed the sonic_Client.jar library provided with SonicMQ. This is working in a standalone Java application and our Jabos service. Thanks for the help You have to use JMS, a QueueConnectionFactory and go from there. In fact how can you create QueueConnectionFactory vendor-specific (JMS is basically an example of a driver for message queues, such as for a JDBC database) but there is something on IBM MQ: ...