JMSTester
JMSTester
runmqsetup.sh setupMQ.mqsc
JMSTesterEAR.ear
In your code your JNDI call to get an Connection Factory object the
JNDI lookup is going to be
context.lookup("java:comp/env/jms/QCF").
In your code your JNDI call to get a queue object from the QCF
object the JNDI lookup is going to
context.lookup("java:comp/env/jms/Queue").
<resource-ref>
<description>
</description>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
<message-destination-ref>
<description>
</description>
<message-destination-ref-name>jms/Queue</message-destination-ref-name>
<message-destination-type>javax.jms.Queue</message-destination-type>
<message-destination-usage>ConsumesProduces</message-destination-usage>
<message-destination-link>jms/Queue</message-destination-link>
</message-destination-ref>
<message-destination>
<description>
</description>
<message-destination-name>jms/Queue</message-destination-name>
</message-destination>
Port is usually 9080 is only one server exist, otherwise you need to
look at the server ports.
You can see above the application is using jms/QCF for the queue
connection factory and jms/Queue for the actual MQ queue. But our
WebSphere as we will see below is not using these names.
Start QM
strmqm TSTQM1
Run script
********************************************************************/
* Server - Channel */
********************************************************************/
DEFINE CHANNEL('SYSTEM.ADMIN.SVRCONN') +
CHLTYPE(SVRCONN) +
TRPTYPE(TCP) +
DESCR('Server connection for WebSphere') +
REPLACE
Lest create the QCF and QUEUE. This SIB is not required for this!
Now lets fix the auth error
Save and go back to QCF and set the authentication alias
Save
Creating a Queue (Destination)
Creating a JNDI resource for a MQ Queue
For you first scope use Cell, then once working you can create a node and or
cluster scope
The actual queue name in MQ is LQ.TEST and is case-sensitive