Reading messages from all distributed queues on a cluster (WLS 9.2)

Hi,
I have a following problem with distributed queues on WebLogic Server 9.2 MP1.
Here's a brief description of my setup:
I've got a cluster called 'myCluster', and two cluster nodes on it, 'nodeA' and 'nodeB'. I also have two JMS servers, 'jmsA' and 'jmsB'. Then I have a jms module 'myModule' with a subdeployment 'mySubdeployment' targeted on jms servers 'jmsA' and 'jmsB'. I have a jms connection factory 'TestFactory' that is targeted on myCluster (default targetting), and a jms queue 'TestQueue' (Uniform Distributed Queue) using subdeployment 'mySubdeployment' (targeted to 'jmsA' and 'jmsB').
Now, the queue 'TestQueue' is used as a location where messages are stored when the system has met a problem in the environment that is preventing the normal handling of messages. Messages are kept in this queue until the problem is over, that's when the system administrator uses a browser application that requests the system to read the messages and handle them normally.
The problem is that the cluster node which gets the request seems to be able to read only its own queue and the messages on the other nodes queue are left untouched. I know that I could send a message to the another node for example via topic 'purge_your_messages', but that's not suitable for this case. I need to sort the messages by their ids (set as a message property) and because of that I need exactly one node executing the purge.
Any advice?
- jj
Edited by: user5736915 on 10-Dec-2008 14:10

Browsers and receivers always attach to a single member of a distributed destination.
WebLogic MDBs, on the other hand, automatically handle the task of attaching receivers to every member, and are quite simple to code and use these days. If you have the option of using WL MDBs, I recommend using them. (There's no equivalent for browsers.)
Spring won't do the same OOTB, but there does appear to be a work-around for the Spring receiver issue (albeit not for browsers - just receivers). Here's a sample Spring impl that attaches a subscription to each and every member of a distributed topic:
http://sleeplessinslc.blogspot.com/2011/12/weblogic-jms-partitioned-distributed.html.
If the above isn't helpful, and you must cycle through every message on every server in the cluster, then you'll need write special case code to check each separately. There are two common options for enumerating the destinations and working with each one - the JMX mbean "message management" APIs (WLST Jython scripting or Java based) and the weblogic.jms.extensions destination availability APIs.
HTH,
Tom

Similar Messages

  • Reading Message from Foreign JMS Queue in SOA Suite 11g.

    Hi,
    I am trying to read a JMS message that has been put into a JMS Queue on a remote weblogic Server.
    The steps that I know is that I need to create a foreign JMS Server and then probably use JMS Adapter to subscribe to the message that is lying in the remote queue.
    Has anybody been able to achieve this kind of scenario working for a remote JMS queue? Also, is this supported by JMS Adapter in SOA11g?
    Any help will be appreciated.
    Regards,
    Varun Maheshwari

    Hi Atheek1,
    Thanks for your reply.
    The confusion that is pondering me is that do I need to create a Foreign JMS Server or should I create a JMS adapter and override the properties.
    I have tried the steps for creating a Foreign Server from the below link
    Unable to access remote JMS Queue through JMS Adapter
    But I am not able to find the Foreign Server created and any connection factories and Destinations related to foreign Server in my JMS Destination while configuring JMS Adapter.
    I am not sure how to do step2 as entailed by you.
    Could you please explain me in little detail on how to do this or redirect me to some blog or forum which will be really helpful.
    Cheers,
    Varun

  • I upgraded the software on my iphone 4 and now it's downloading every email message from all my accounts (all previously read). 200 at a time. Manual delete is a problem since there are 3500. Suggestions?

    I upgraded the software on my iphone 4 and now it's downloading every email message from all my accounts (all previously read). 200 at a time. Manual delete is a problem since there are 3500. Suggestions?

    Wow, just posting and it seems that there is a solution that is working for me...
    What I've did is I turned off iTunes Match on my iPhone, then turned in on again. Now in my iTunes library on my mac I can get the duplicates to be matched or uploaded to iCloud with a right-click, add to iCloud. iTunes Match starts to check the songs and everything is done correctly. Pretty nice!

  • How to read message from JMS queue as a ByteMessage

    Hi,
    i want to browse a xml message from a JMS queue(in Weblogic 8.1) as a ByteMessage instance and then need to put it into byte array .
    Then i want to read each byte by byte from that array.
    Can any one please help me to solve it.
    (i am using java language in the program to browse message from a queue).
    Thanks in advance.
    Regards,
    Deba

    You can refer to the following link for the detailed steps :-
    Link :[http://www.informit.com/articles/article.aspx?p=170722&seqNum=3]

  • How to pick(or consume) messages from Woblogic JMS Queue only when DB is UP

    Hi,
    I have a requirement to pick(or consume) messages from Woblogic JMS Queue only when DB is UP.
    When DB is down, messages should remain in queue. When DB is up, messaged should be picked on scheduler basis.
    We are using SOA suite 11g(BPEL or mediator,JMS Adapter).
    What is the best way to achive it in SOA 11g.
    I tried, but when I setup a Consumer, there is no control over there. Messages are picked automatically.
    Please advise.
    Thanks
    Ram

    something wrong with the design.
    why dont you set the retry options in the fault policies?
    So if the external DB is down you could reprocess them after specified interval or make it go to human retry queue.
    Then you could use SOA api to retry all of them.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Chat messages from all contacts

    I use Skype 5.8 for Iphone. I would like to get messages - chat messages from all contacts, not only from which I have in my contact list. Is anybody can help me how to do it on Iphone?

    ask your children to change their applid to stop receiving that or if they are on iCloud to just delete the account on the iPod and then when it asks to keep or remove contacts from the iPhone. make sure to remove so they will no longer see those contacts
    -if they are syncing with a mac or pc just uncheck contacts from the Info tab on your iPhone from iTunes if you are not using iCloud.

  • I'm getting a "can't access icloud" message from all devices.

    I'm getting a "can't access icloud" message from all devices. According to Apple the system isn't down. Any ideas? My password is correct.

    A full reset fixed the problem.

  • Iphone receiving read messages from mac mail

    My iphone used to only receive unread emails as long as entourage on my mac wasnt open. Now i have moved to mac mail and my phone is receiving read messages from mac mail. Is there a setting im missing that will make my phone only receive new messages?
    I still want my mac mail to receive these same emails later as it used to work.

    You would still receive read e-mails in the inbox on your iPhone (and vice-versa) if you used IMAP but they would show as having been read and not as new. IMAP keeps all mail clients synchronised. The only alternative would be to use POP to download to your phone and IMAP to download to your laptop and create another folder on your computer and move mail over to it when read. By default, POP only downloads from the inbox so your phone would not download it again. IMAP would leave a copy in the folder you have created on the server in case you have problems with your laptop. If you delete read e-mails on your laptop, you can set it to remove them from the server after a fixed time and they would remain there until then but your phone would not download them again.

  • WLST: how to move messages from a JMS queue to another queue

    Hi all,
    I'm looking for an example for moving messages from a JMS queue to another JMS queue using WLST.
    Do you have an example about that or a piece of code as starting point ?
    Thanks in advance
    ferp

    http://www.javamonamour.org/2011/09/wlst-move-jms-messages.html

  • Reading message from inbox

    I want to write a J2ME application which will read message from inbox.i used the following code to open fileconnection with inbox
    FileConnection filecon = (FileConnection)
    Connector.open("file:///c:/system/mail/directory");
    I am using Nokia 6610i.I am getting the following error:"The requested protocol does not exist file:///c:/system/mail/directory"
    Can anyone help me out?

    Hi
    If you want to be able to store data and then retrieve it, the you can use RMS, but if you want to get data already stored on your phone then you need the FileConnection API. There is no work around this as far as I know.
    Mihai

  • Why cannot I delete all messages from all my devices?

    I have 3 Apple devices (personal MBP, work MBP, and iPhone). I run messages on all of them. If I send/receive a message from someone, I receive it on all devices, but I have to delete the message from ALL my devices - deleting it one just doesn't work. It is like Messages works like email with POP instead of email with IMAP. Extremely  frustrating, and I believe that this is working as designed. Why???

    for the   Points
    Neither of us said we liked it.
    Like you I think it is flawed and certainly a misuse of the word Sync.
    8:01 pm      Saturday; January 3, 2015
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Debatching is possible when we are reading messages from JMS queue

    Hi all,
    If i place a message in a queue can i read the message from JMS using BPEL ( JMS Adapter ) or OSB( JMS Transport ) like batcth rather than reading the whole message in to the OSB or BPEL at the same time .
    is this option is available in OSB/BPEL ??
    Thanks
    Phani

    Hi all,
    If i place a message in a queue can i read the message from JMS using BPEL ( JMS Adapter ) or OSB( JMS Transport ) like batcth rather than reading the whole message in to the OSB or BPEL at the same time .
    is this option is available in OSB/BPEL ??
    Thanks
    Phani

  • Reading message from two queues and sort according the time stamp

    Hi
    I have a requirement where i have to read the message from two queue .. and sort according the Time stamp ( Field in payload ) and send it ot the Webservice ..
    How i acheive using the BPM..
    in the BPM i have to collect the message for every 20 sec ... and then sort it tout ...
    S V

    Do you mean from two sender? What do you exactly mean by "reading from two queues"?
    Regards,
    Prateek

  • Reading old message from Topic or queue

    How i can read old message from jms topic or queue?

    It depends on what you mean by "old" and what your JMS implementation is. Old as in expired or as in previously delivered?
    Sending expired or previously delivered messages with DropboxMQ is as simple as moving the message files around using a shell or file explorer.
    http://dropboxmq.sourceforge.net
    Dwayne

  • How to Read Message from JMS Queue using Business Service(ALSB3.0)

    Hi,
     My Project Set up is as follows(using ALSB3.0).
    1>One Proxy Service with transport as HTTP.
    2>The Proxy service is calling another Business Service.
    3>The Business Service has transport layer as JMS.
    So here the business service is posting Request Message into the JMS queue.
    I want at the same time it(The Business Service) should listen to another queue and from there it should read Response Message and forward back to the caller proxy service.
    Can any one help me regarding this...
    Thanks in advance...
    Deba

    Hi ,
    Problem in : Reading / writing messages to the JMS Queue -
    I am stuck with the same problem and I am not able to proceed futher, Can you please help me out in sending an example of how to do right configurations in ALSB and on the server. I read the documentation but still I dont see messages in the queues.
    please help me out. can you post a small sample example
    thanks
    adi

Maybe you are looking for

  • Can't get embedded OC4J to work on Jdev  10.1.3.0.4

    I completed half of the tutorial "Building XML-Enabled JavaServer Faces Application" to the point where I am asked to run the ADF application and I get the error "06/09/27 21:55:32 Error parsing internal-settings.xml: server-extension-provider class

  • How to handle Column with Adobe Output Designer 5.7 ??

    Hello, I have to handle lists of articles with 2 columns pages. 1 article = 1 title + 1 text. When the data has filled up Column 1 on page 1, it will go to the top of Column 2, on page 1. When the fist page is filled then it goes to Page2 Column 1. I

  • NHL Gamecenter Live on ATV2 Freezing

    I am able to watch NHL Gamecenter Live on other devices (iPhone, iPad, iMac and XBox) without any problem.  But on the ATV2, the picture freezes about every 30 seconds to a minute.  This lasts for about 15 seconds then picks up where it had frozen. 

  • Adding a field in the standard transaction bbpsc01 of SRM

    Hi All, The requirement is that a new field (tracking no) needs to be added in the screen of bbpsc01 transaction in SRM using a BADI. The field 'tracking no' is available in the standard table BBP_PDBEI. The BADI definition BBP_UI_CONTROL_BADI looks

  • Service Type A/R Credit Memo Based on Item Type A/R Invoice???

    Hi  Experts, How can we Raise Service Type A/R Credit Memo  for An A/R Invoice Which is Based on Item Type A/R Invoice??? We Need this Solution for A/R Invoice Which has been Claimed for Shortage but Actually No Return of Stock to us. Regards, M.Sent