ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Defining Topic using JMSAdmin.bat

Post new topic  Reply to topic
 Defining Topic using JMSAdmin.bat « View previous topic :: View next topic » 
Author Message
rasad74
PostPosted: Mon Nov 05, 2001 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
bower5932
PostPosted: Tue Nov 06, 2001 10:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
abmanesh
PostPosted: Wed Nov 07, 2001 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
rasad74
PostPosted: Wed Nov 07, 2001 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Defining Topic using JMSAdmin.bat
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.