ibm mq - wso2esb & WMQ 7.5 -


i've problem: need send messages (only send) ibm mq 7.5. in case have lot of dynamic queues on several managers, isn't possible send messages via jndi (like described in wso2 doc). ibm mq has jms extension can send messages directly queue manager , queue specifying in q name (for example "queue://qm1/qname1"). need specify connection factory these

<bean id="mqconnectionfactory" class="com.ibm.mq.jms.mqqueueconnectionfactory">         <property name="port" value="${mq.port}"/>         <property name="transporttype" value="${mq.transporttype}"/>         <property name="hostname" value="#{props['host']}"/>         <property name="queuemanager" value="#{props['mq.manager']}"/>         <property name="channel" value="#{props['mq.chanel']}"/>     </bean> 

but doesn't find how can specify factory in wso2esb. can me?

the obvious question here "if using dynamic queues, how know name of queue want send to?"

the obvious answer question "it's in reply-to fields."

assuming message received in rqstmsg , want send replymsg, might this:

messageproducer replyproducer = session.createproducer((queue rqstmsg.getjmsreplyto()); // create replymsge here replyproducer.send(replymsg); 

you specified "only send" there's possibility not replying request messages. (although if case, how determining dynamic queue names outside context of request message interesting question.) if in fact not have message replyto fields set, can specify fully-qualified name of destination:

mqqueue destq = new mqqueue(rqmname, rname); destination dest = (destination) destq; 

you set remote qmgr name in rqmname , remote queue name in rname, use destination normal.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -