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 IndexIBM MQ Java / JMSMQSeries Pub/Sub

Post new topicReply to topic
MQSeries Pub/Sub View previous topic :: View next topic
Author Message
mvoicu
PostPosted: Thu Oct 25, 2001 8:52 am Post subject: Reply with quote

Newbie

Joined: 24 Oct 2001
Posts: 3
Location: Boca Raton

Hello everyone,

I have a couple of issues that I would like to raise and have your attention.

I have installed a MQSeries 5.2.1 on my W2K machine. I have added the extentions for Pub/Sub (ma0c_ntmq52.exe) and the Java classes. I addition I have setup my environment as per in "MQSseries using Java" Redbook.
On top of these, I have setup a JNDI for my TCF and Topic.


Issues:
1) Running the JMSPubSub.java example from the samples diretory I got an warning:
- unable to load message catalog - mqji
Am I missing something on my environment?

2) The same example has been change to allow to publish a message 1000 times by adding the following code:
...
msg = tSess.createTextMessage();
System.out.print( "Text to publish : " );
String payload = in.readLine();
msg.setText(payload);
// ...and publish it
for(int i=0; i<1000; i++){
tPub.publish(msg);
System.out.println("Sending message#"+i);
Thread.sleep(500);
};
break;

In the same way the subscriber section has been changed to reflect the receiving of the same amount of messages.
So far, compiling and running on two prompts , I haven't seen any problems.
Now, start a couple more command prompts and run a subscriber on each of them. As a result, you are going to see is that the subscribers will receive the messages. AFTER A WHILE , start one more subscriber, as you've done before, and SURPRISE, the previous started subscribers WILL STOP receiving messages without any errors or warnings.
Could anyone explaine this to me or give me an advise on what is going on?

Thx,
Mihai

[ This Message was edited by: mvoicu on 2001-10-25 10:02 ]
Back to top
View user's profile Send private message MSN Messenger
brpope
PostPosted: Thu Oct 25, 2001 2:56 pm Post subject: Reply with quote

Novice

Joined: 01 Aug 2001
Posts: 10

(1) CLASSPATH has to be updated to point to the location of the *.properties files. (e.g., on my machine (C:MQSeriesjavalib")
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
mvoicu
PostPosted: Fri Oct 26, 2001 6:16 am Post subject: Reply with quote

Newbie

Joined: 24 Oct 2001
Posts: 3
Location: Boca Raton

Thx, for the replay.
Yes, I do have the path into my CLASSPATH.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSMQSeries Pub/Sub
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.