My Services WebSphere Training | JEE Build & Deploy | Automatic Linux Provisioning
Script to create the Queue Manager and Queue
Create QM crtmqm TSTQM1
Start QM strmqm TSTQM1
Run script
runmqsc TSTQM1 < ./setupMQ.mqsc
script is called setupMQ.mqsc
********************************************************************/ * Create Listener */ ********************************************************************/ DEFINE LISTENER (TSTQM1_1420) + TRPTYPE (TCP) + PORT (1420) + CONTROL(QMGR) + REPLACE ********************************************************************/ * Create Queues */ ********************************************************************/ DEFINE QLOCAL('LQ.TEST') REPLACE + DESCR('My Test Queue') + * Persistent messages OK DEFPSIST(YES) + * Shareable SHARE DEFSOPT(SHARED) + * Maximum queue depth MAXDEPTH(100000) ********************************************************************/ * Server - Channel */ ********************************************************************/ DEFINE CHANNEL('SYSTEM.ADMIN.SVRCONN') + CHLTYPE(SVRCONN) + TRPTYPE(TCP) + DESCR('Server connection for WebSphere') + REPLACE
Creating a Queue Connection Factory A QCF is used to know how to communicate with MQ as created by the mqsc script 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
Steve Robinson has been working in IT for over 15 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware consulting. Steve comes from both an administration and development background.
Before moving to JEE, Steve was an accomplished developer and consultant for both IBM Lotus Notes and Microsoft .NET Technologies.
Follow Steve as @stevencrobinson on twitter.
IBM WebSphere Application Server 8.0 Administration Guide
WebSphere Application Server 7.0 Administration Guide