Publish/subscribe verification without JNDI

 

A script named PSIVTRun (PSIVTRun.bat on Windows systems) is provided to run PSIVT. The file is in the bin subdirectory of the installation.

To run the test without JNDI, issue the following command:

PSIVTRun -nojndi [-m <qmgr>] [-bqm <broker>] [-t]

For client mode, to run the test without JNDI, issue the following command:

PSIVTRun -nojndi -client -m <qmgr> -host <hostname> [-port <port>] 
                [-channel <channel>] [-bqm <broker>] [-t]

where:

-nojndi

indicates no JNDI lookup of the administered objects

qmgr

is the name of the queue manager to which you wish to connect

hostname

is the host on which the queue manager is running

port

is the TCP/IP port on which the queue manager's listener is running (default 1414)

channel

is the client connection channel (default SYSTEM.DEF.SVRCONN)

broker

is the name of the remote queue manager on which the broker is running. If this is not specified, the value used for qmgr is assumed.

-t

turns tracing on (default is off)

If the test completes successfully, output is similar to the following:

5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights Reserved.
Websphere MQ classes for Java(tm) Message Service 6.0
Publish/Subscribe Installation Verification Test

Creating a TopicConnectionFactory
Creating a Connection
Creating a Session
Creating a Topic
Creating a TopicPublisher
Creating a TopicSubscriber
Creating a TextMessage
Adding text
Publishing the message to topic://MQJMS/PSIVT/Information
Waiting for a message to arrive [5 secs max]...

Got message:
JMS Message class: jms_text
  JMSType:         null
  JMSDeliveryMode: 2
  JMSExpiration:   0
  JMSPriority:     4
  JMSMessageID:    ID:414d5120514d5f63616c6c616e6169734286ac4120002304
  JMSTimestamp:    1102075124453
  JMSCorrelationID:AMQ QM_callanais 
  JMSDestination:  topic://MQJMS/PSIVT/Information
  JMSReplyTo:      null
  JMSRedelivered:  false
  JMS_IBM_PutDate:20041203
  JMSXAppID:QM_callanais
  JMS_IBM_Format:MQSTR
  JMS_IBM_PutApplType:26
  JMS_IBM_MsgType:8
  JMSXUserID:mwhite
  JMS_IBM_PutTime:11584446
  JMSXDeliveryCount:1
A simple text message from the MQJMSPSIVT program
Reply string equals original string
Closing TopicSubscriber
Closing TopicPublisher
Closing Session
Closing Connection
PSIVT finished


uj10730_