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:
- accept xml mesaage ui.
- create mq connection factory details of port,host , queue.
- create jms connection mq connection factory.
- create jms session off jms connection.
- create jms message producer off jms session.
- create jms textmessage containing xml file.
- 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.