|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Defining Topic using JMSAdmin.bat |
« View previous topic :: View next topic » |
Author |
Message
|
rasad74 |
Posted: Mon Nov 05, 2001 10:07 am Post subject: |
|
|
Novice
Joined: 29 Oct 2001 Posts: 10
|
Hi,
The type of error I am getting makes me wonder may be I am not defining my topic in a correct way or something. Here is the command I use to define my topcic:
DEF T(test) TC(MQ)
the above command binds the topic
"test" to MQ entity "com.ibm.mq.jms.MQTopic"
Now reading the documentation on MQTopic it says The constructor takes one argument which should be a uniform resource identifier (URI). For MQSeries classes for Java Message Service(JMS) Topics, this should be of the form:
topic://TopicName[?property=value[&property=value]*]
That makes me wonder the pattern I used
"DEF T(test) TC(MQ)" to define my topic in MQSeries using JMSAdmin.bat may not be correct.
So anyone out there who used a JMSAdmin.bat before would like to share their experience if they did anything special to define their topic? Help is appreciated.
Thanks,
Rehan
|
|
Back to top |
|
 |
bower5932 |
Posted: Tue Nov 06, 2001 10:58 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The TC parameter specifies the type of client that you were attempting to send to: MQ or JMS. It determines whether or not the JMS header is put on the message. I'm not a pub/sub expert, but I believe you need to do something like:
define t(ivtT) topic(MQJMS/PSIVT/Information)
For what it is worth, I got the above from the jmsadmin input for the pub/sub ivt. |
|
Back to top |
|
 |
abmanesh |
Posted: Wed Nov 07, 2001 11:31 am Post subject: |
|
|
Apprentice
Joined: 06 Nov 2001 Posts: 39
|
Hi,
Try the following steps to define publish/subscribe JNDI MQ Administered objects using the JMSAdmin tool.
• Create a JNDI context.
The following command was used to create the JNDI context named ‘ psCtx'.
DEF CTX(psCtx)
• Change to the context you just created using the command
CHG CTX(psCtx)
• Create a TopicConnectionFactory .
The following command creates a TopicConnectionFactory named ‘psTcf ’
referring to the QueueManager ‘ITSOG.QMGR1 ’ on host named ‘ITSOG ’
listening on the default port 1414 .The server connectio channel used
for client connectio is ‘JMS.SRV.CHNL ’
DEF TCF(psTcf)TRANSPORT(CLIENT)QMANAGER(ITSOG.QMGR1)HOST(ITSOG)
PORT(1414)CHANNEL(JMS.SRV.CHNL)BROKERQMGR(ITSOG.QMGR1)
BROKERCONQ(SYSTEM.BROKER.CONTROL.QUEUE)
BROKERPUBQ(SYSTEM.BROKER.DEFAULT.STREAM)
BROKERSUBQ(SYSTEM.JMS.ND.SUBSCRIBER.QUEUE)
BROKERCCSUBQ(SYSTEM.JMS.ND.CC.SUBSCRIBER.QUEUE)
• Define the JNDI topic
The following command creates a Topic named ‘psTopic ’ for the topic
named SampleTopic under the root topic of JmsTest.
DEF T(psTopic)TOPIC(JMSTest/SampleTopic)
Hope this helps.
Regards,
Manesh
Quote: |
On 2001-11-05 10:07, rasad74 wrote:
Hi,
The type of error I am getting makes me wonder may be I am not defining my topic in a correct way or something. Here is the command I use to define my topcic:
DEF T(test) TC(MQ)
the above command binds the topic
"test" to MQ entity "com.ibm.mq.jms.MQTopic"
Now reading the documentation on MQTopic it says The constructor takes one argument which should be a uniform resource identifier (URI). For MQSeries classes for Java Message Service(JMS) Topics, this should be of the form:
topic://TopicName[?property=value[&property=value]*]
That makes me wonder the pattern I used
"DEF T(test) TC(MQ)" to define my topic in MQSeries using JMSAdmin.bat may not be correct.
So anyone out there who used a JMSAdmin.bat before would like to share their experience if they did anything special to define their topic? Help is appreciated.
Thanks,
Rehan
|
|
|
Back to top |
|
 |
rasad74 |
Posted: Wed Nov 07, 2001 4:10 pm Post subject: |
|
|
Novice
Joined: 29 Oct 2001 Posts: 10
|
Hi,
Thanks abmanesh,
bower5932 and StefanSievert.
Your suggestions were excellent and very helpful.
By defining a topic the way abmanesh and bower5932 suggested my program worked successfully.
have a great day
Rehan
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|