|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSeries Pub/Sub |
« View previous topic :: View next topic » |
Author |
Message
|
mvoicu |
Posted: Thu Oct 25, 2001 8:52 am Post subject: |
|
|
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 |
|
 |
brpope |
Posted: Thu Oct 25, 2001 2:56 pm Post subject: |
|
|
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 |
|
 |
mvoicu |
Posted: Fri Oct 26, 2001 6:16 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|