Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read JMS messages from all the managed servers.

 
Hai Lin
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All,

Please give me some idea for my problem, it's really really annoying me now.

In a weblogic clustering env, I have one clustering server which includes M1 and M2 two managing servers, JMS server 1 (JMSServer_M1 targetted to M1), JMS server 2 (JMSServer_M2) targetted to M2. And I also have one uniform distributed queue (queue name: testQueue) targeted to the cluster.

Then I sent 10 messages to testQueue, found out the 5 messages were put to the queue in M1 and 5 messages to the M2. How can read this 10 messages out? I mean, if I ran a simple java program to get message from the cluster, it only gave either M1's 5 message, or M2's 5 message, but not all the 10 messages.

Any help will be greatly appreicated.

Hai
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks very specific to WebLogic. So moving it there.
 
Renjan Thomas
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I can just suggest a solution for this from what i understud from this post.Let me first tel you what i did....

Created 2 managed servers MS1 - MS2

Created 2 JMS Servers JmsServer1 targetted to MS1 & JmsServer2 targeted to MS2.

Then created a Distributed Queue with jndi name "dq".

Then using a program QueueSend i sent 5 messages to the distributed queue.

Then using the program QueueBrowse.java which comes with the installation of the server (C:\BEA10.1\wlserver_10.0\samples\server\examples\src\examples\jms\queue)-- the path in the installation

I Used the above said program to retrieve the message from the Distributed queue.In the program i mentioned the JNDI name of the Distributed queue.. and i got all the messages which are in the Distributed Queue.

Hope that This will help...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic