java - JMS and MQ (without JNDI) -


created webpage user can paste xml file , after clicking submit option, xml file go other system ( test environment). system running on ibm (mq) , have use jms it. have queue, port, host name. has similar example can use direction?

basically, need do:

  1. accept xml mesaage ui.
  2. create mq connection factory details of port,host , queue.
  3. create jms connection mq connection factory.
  4. create jms session off jms connection.
  5. create jms message producer off jms session.
  6. create jms textmessage containing xml file.
  7. send message jms queue via producer.

will try add code example in while, in meantime each step able find multiple examples online.

dont forget close jms message producer, jms session , jms connection in block resources.


Popular posts from this blog