Reading Messages from a uniform distributed queue without an MDB

WebLogic Server Version: 10.3.4.0

I am currently facing a problem trying to read messages from a queue of distributed uniform with a spring JMSTemplate Weblogic.
We have a cluster created with 2 servers.
Each server in the cluster has it's own server JMS (JMSServer-1, JMSServer-2), each has its own persistent store
We have a JMSModule. This JMSModule contains a factory connections (Subdeployment = sub1 Target = mycluster) and also contains a uniform tail (Subdeployment = sub1 Target = MyCluster) distributed

A peak at our Spring JNDITemplate configuration looks like:
< bean id = "messagingJndiTemplate" class = "org.springframework.jndi.JndiTemplate" >
< property name = "environment" >
< Accessories >
< prop key = "java.naming.factory.initial" > weblogic.jndi.WLInitialContextFactory < / prop >
< prop key = "java.naming.provider.url" > t3://some.server.name1,some.server.name2:8001 < / prop >
< / Accessories >
< / property >
< / bean >

It seems that every time that I call the JMSTemplate.browse function in my client, I'll read the messages in the server 1. Then the next bed request messages that are found on server 2. Each request is sent around in circles.

I then tried to change the JMSModule. The new JMSModule contains a factory connections (Subdeployment = sub1 Target = mycluster) and also contains a uniform distributed Queue (Subdeployment = sub2 Target = JMSServer-1, JMSServer-2)

After this change, it seems that every time that I call the JMSTemplate.browse function, I'll read the messages in any server, I have a session with my client. If I'm logged on server 1, I can only see messages in Server 1 and vice versa.


My question is, how to configure Weblogic to pass messages from TWO servers in my cluster? I guess since it was a cluster installation, I would get some sort of uniform distributed queue unique view to access via JNDI, but appears not to be the case.
Thanks in advance.

Browsers and receivers always attach to a single member of a destination distributed.

WebLogic BMD, on the other hand, automatically handle the task of fixing the receivers to each Member and are fairly simple to code and use these days. If you have the possibility to use WL BMD, I recommend their use. (There is no equivalent for the browsers).

Spring does not have the same STANDARD, but it seems not be a workaround for the spring receiver number (but not for browsers - receivers only). Here is a sample spring impl that attaches a subscription for each Member of a subject is distributed:
http://sleeplessinslc.blogspot.com/2011/12/WebLogic-JMS-partitioned-distributed.html.

If the foregoing is not useful and that you must scroll through each message on each server in the cluster, then you must write special code case to check each separately. There are two options to list the destinations and work with each of them - 'messages management' JMX mbean API (WLST Jython scripting or Java-based) and the availability of destination weblogic.jms.extensions API.

HTH,

Tom

Tags: Fusion Middleware

Similar Questions

  • JMS Timestamp in a uniform distributed queue on Weblogic Console

    Dear Experts,

    I should need a clarification on how JMS Timestamp is valued in a uniform distributed queue. Let me explain better:

    I'll use the JMS timestamp to re - order the messages retrieved from the uniform distributed queue. East - reliable? How can I synchronize this JMS property to make sure it is not dependent on the physical machine where distributed uniforms are deployed a queue?

    Thank you very much
    Mike

    Hi Mike,.

    From your brief description it sounds to the AUP is a perfect fit. It is specifically designed to handle this use case and works in all conditions. The application must define a PUA on each message, in accordance with the documentation. See chapter of AUP of the programmer's guide:

    http://download.Oracle.com/docs/CD/E14571_01/Web.1111/e13727/uoo.htm#i1049853

    Tom

  • How to read messages from a blocked number?

    How to read messages from a blocked number?

    You do not have.

    You need to unlock and then you can read the messages that comes after unlock it.

  • How to put on a uniform Distributed queue/topic break

    Good day to all.  I'm under WebLogic 10.3.6.0.  When I create a standard queue or a topic, I have a control tab on the settings of the queue.  In this tab control, I can pause all of good things, production, consumption.

    When I went to HA, I made a uniform distributed queue.  I don't have the control tab.  The only option I see is to pause at startup.  Pause for a direct queue was very helpful.  How can you do with a distributed queue?

    Well, actually it does:

    "You can pause or resume the insertion during execution for all destinations on a JMS server, to a group of destinations that link to the same JMS model or to different destinations. The most recent configuration change always have priority, regardless of the level at which it is made (Server JMS, JMS model or level of destination). »

    So when you use a JMS server for your distributed destination, you can pause production, insertion and consumption on the JMS server.

    the Tracking tab shows what queues distributed it is 'manage '.

    by using the tab control, you can suspend and resume operations.

  • BAM consume does not correctly uniform distributed queue?

    Hello

    We see that the EMS uses not correctly uniform Distributed queue, this is a limitation or're missing us some configurations?

    Thank you.

    Finally understood... looks like that BAM EMS does not create many consumers connecting to a UDQ

    Technical support article: BAM doesn't have several consumer for JMS (Doc ID 1493533.1) queues

    Open enhancement, delivery possible in 12 c

  • JMS uniform distributed Queue control unit, problem when a node crashes

    Hello
    I have the code according to which a post (with all of the control unit) to a line of uniform distribution in a cluster with two servers (Server1 and Server2) members.
    UDQ - addressing a subdeployment mapped to two servers JMS pointing to each of the Member servers
    -Factory connections using default targeting (I tried mapping them to deployment Sub too)

    serverContext javax.naming.InitialContext = new javax.naming.InitialContext ();
    javax.jms.QueueConnectionFactory qConnFactory = (javax.jms.QueueConnectionFactory) serverContext.lookup (jmsQConnFactoryName);
    javax.jms.QueueConnection qConn = (javax.jms.QueueConnection) qConnFactory.createConnection ();
    javax.jms.QueueSession qSession = qConn.createQueueSession (false, Session.AUTO_ACKNOWLEDGE);
    javax.jms.Queue q = (javax.jms.Queue) serverContext.lookup (jmsQName);
    weblogic.jms.extensions.WLMessageProducer qSender = qSession.createProducer (q) (weblogic.jms.extensions.WLMessageProducer);
    qSender.setUnitOfOrder ("MyUnitOfOrder");
    javax.jms.ObjectMessage message = qSession.createObjectMessage ();
    < String, Object > HashMap map = new HashMap < String, Object > ();
    Map.put ("something", "SomeObject" "");
    message.setObject (map);
    qSender.send (message);
    } catch (Exception e) {}
    }

    Steps followed:
    1 post a message of "Server1."
    2. the message picked up by "Server2."
    3. all fine
    4. stop "Server2."
    5 post a message of "Server1."
    6 ERROR: ' chopped format member of MyAppJMSModule! MyDistributedQ is MyAppJMSModule! MyJMSServer-2@MyDistributedQ who is not available.

    WebLogic version: 10.3.5

    Is there a way (except Path Service configuration) to operate "with control unit" for a UDQ, even if some Member servers go down this code?

    Thank you very much for your time.

    If you want to avoid using the Service path, then the alternative is to make members of highly available destination. This will help to ensure that the host for a particular Member PUA is in place.

    One approach to HA is to set up "service migration." For more information, see the white paper of the automatic Migration of Service to
    http://www.Oracle.com/technology/products/WebLogic/PDF/WebLogic-automatic-Service-Migration-whitepaper.PDF

    In addition, I recommend SEO best practices for JMS beginners and advanced users
    http://docs.Oracle.com/CD/E17904_01/Web.1111/e13738/best_practice.htm#JMSAD455 to help WL configuration in general.

    Hope this helps,

    Tom

  • Message Listener listens only 1 queue in the configuration of distributed queues!

    Hi guys,.

    This may be the wrong place for this post.

    We have created a system of e-mail with the OSB proxies come and messages between distributed queues. After all this messages autour brewing, the messages themselves in a distributed queue where a java client is waiting to pick up the results. Our problem is that it is only reading one of the queues in this queue distributed.

    The following is the code segment that wants the message with a specific id:
    public Message (String queueName, String messageId) receiveMessage throws {FrameworkException}
    BytesMessage, bytesMessage = null;
    If (null == queueSession) {}
    init();
    }
    try {}
    Queue receiveQueue = lookupQueue (queueName);
    QueueReceiver queueReceiver = null;
    Channel selector = null;
    If (null == messageId) {}
    queueReceiver = queueSession.createReceiver (receiveQueue);
    } else {}
    selector = "JMSCorrelationID = '" + messageId + "'";
    queueReceiver = queueSession.createReceiver (receiveQueue, selector);
    }

    bytesMessage (BytesMessage) = queueReceiver.receive ();
    queueReceiver.close ();
    } catch {...


    QueueReceiver.receive () will listen to all members in a distributed queue (spread over 2 servers managed in a cluster)?

    Thank you very much

    No.. Since you have a single consumer, he can listen to only one destination member.

    Is your java client to run in Server or an external client? If its operation in Server convert the client to an mdb.

    Since this one issue of jms, try to post in the forum of jms:
    WebLogic Server - JMS

  • Reading, replying, deleting messages from Message Hub without user interaction

    I need access to the hub of the Message to read the messages/email from particular sender.  The app would have read the message, extract information such as the e-mail address of the sender of the message and reply to the sender. I want to achieve this goal without the user intervention or interference to end of self-test.

    For example, I get a message in the Blackberry hub, Application research and read a message from a specific sender. It retrieves information and answers back to the sender. After the response is sent, the message should be deleted. But this should happen as soon as the Application is started. There is therefore no interference of the user while encoded in the files of the CBC.

    There are some Message PIM application example that does something similar. But there is user interaction required to send the message. I have a few minor changes and hard-coding an email address. It sends an email to this address, but I need to press the button 'send '. I want to do as soon as the application is started without interacting with a graphical interface to test the object.

    Is it possible to do it in the background and the GUI only shows information such as the email/message received, sent to answer?

    I read the reference to MessageService, Message etc to the http://developer.blackberry.com/native/reference/cascades for more information on the API.

    In fact, you can. In the example of Messages , the "Send" feature is attached to a button, so you can raise yourself when you play with the app, but really you as a developer could haved called at any time... It's that they function key:

    void MessageComposer::composeMessage()
    {
        const MessageContact recipient = MessageContact(-1, MessageContact::To, QString(), m_recipient);
        const QByteArray bodyData = m_body.toUtf8();
    
        // Create a message builder to create/modify the message
        MessageBuilder *builder = (m_mode == CreateMode ? MessageBuilder::create(m_accountId)
                                                        : MessageBuilder::create(m_accountId, m_messageService->message(m_accountId, m_messageId)));
    
        builder->subject(m_subject);
        builder->removeAllRecipients();
        builder->addRecipient(recipient);
        builder->body(MessageBody::PlainText, bodyData);
    
        // Send the new message via current account
        m_messageService->send(m_accountId, *builder);
    }
    

    However, this does not require permission to access_pimdomain_messages, which most of the users will not give you unless you have a good enough justification (because it lets you do things like that).

    What you can't do, is use the card of composer of email without user interaction, which is normally how you would like to send an email. This does not require the permission of messages, such as the user has total control over what is sent (if anything).

  • How to use thunderbird on ipad for 2nd email account without deleting the messages from the server

    you want to monitor ebay wifes messages as is my account too. his ebay on server other than Gmail account. you want to be able to remove monitor messages from my Ipad 2 but not the server, which therefore removes his mail before she gets it.

    instead of delete messages from your ipad, he would work to change your view of only unread messages? in this way, they would still be on the server so that it can read but would not remain on display in your Inbox.

  • What can I do to remove a box pop up indicating "Message from Web page" and the message reads "object does not support this property or method".

    What can I do to remove a box pop up indicating "Message from Web page" and the message reads "object does not support this property or method".

    Hello

    1 how long have you been faced with this problem?

    2 have you made changes on the computer before this problem?

    3. when exactly you get this error message?

    The following threads may be useful:

    http://answers.Microsoft.com/en-us/IE/Forum/IE8-windows_other/message-from-webpage-not-implemented/d09fa331-92c6-4CD3-bc89-9a2c03e304fe

    http://answers.Microsoft.com/en-us/IE/Forum/IE8-windows_other/message-object-doesn

  • Someone is sending emails with my windows live address to all my contacts without my permission, spamming other mailboxes with what looks like messages from me.

    Someone is sending emails with my windows live address to all my contacts without my permission, spamming other mailboxes with what looks like messages from me.

    Help with this!

    Apparently, someone broke your Hotmail account. Change your password immediately. For more information, visit these web pages:

    Compromised account - unauthorized account access
    Hotmail hacked? Take these steps
    Hotmail: Tips to help protect your account

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • Message from extended to reinstall and cd/dvd player is not reading or writing.

    Original title: my cd/dvd is not reading or writing.

    My cd/dvd is not reading or writing.  I get a message from extended player of resettlement.  How and where?

    Hello

    (1) that you get this error only when the reading and writing of CD/DVD?

    (2) you have any third-party software installed on the computer CD/DVD drive?

    (3) have you made any recent hardware or software changes to the computer before the show?

    You can perform the following methods and check if it helps.

    Method 1:

    Run Microsoft Fixit tool in the following article and check if it helps.

    Your CD or DVD drive cannot read or write media:
    http://support.Microsoft.com/mats/cd_dvd_drive_problems/

    Method 2: You try to perform the steps in the following article

    Your CD or DVD drive is missing or is not recognized by Windows or other programs: http://support.microsoft.com/kb/982116

    Registry warning: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: http://support.microsoft.com/kb/322756/

    I hope this helps.

  • When I stop I get message from windows, but cannot read it leaves the screen

    When I shutdown stops, she arrives with a message from windows, but leaves the screen before you can read it

    There is a place to CANCEL but you can't do anything, so he continues to stop.

    Hello Joan.

    Have you tried the key break on your keyboard? Try and see if it helps you.

    Kind regards

    BearPup

  • Messages from the queue JMS in DB

    Hello world

    I tried to insert messages from the JMS queue in DB through Ombudsman.

    my data format is exactly as below (this response is in fact of B2B)

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < your: runReportResponse xmlns: ta = ' http://saashr.com/Ta "xmlns:SOAP - ENV =" " http://schemas.xmlsoap.org/SOAP/envelope/ ' > < your: produitLogiciels > 'Worker_ID', "use ".

    Seeker ID', 'Work order ID', 'First Name', 'Name', 'ID of the timesheet', 'Date', 'In Time', 'Meal out 1', ' 1-lunch break', 'Eating out 2', 'meal '.

    "" "" "2 a jump in", "meal break out 3", "lunch 3 in ', ' Time Out ', 'Hours', 'Full path of Department',"Full path to work","Leave the name","Break", 'Status', 'employee Id '.

    "" "'1', '1', '1',"Caroline", 'Badillo', ' ', ' 11/01/2016","08:54 p', '',' ', '',' ', '',' ',"--"," -"," Lake Forest/905 ","Overhead"," "," - "", 'New', "1012312" "

    ' ' '2', '2', '2', 'Manual', 'Baker', ' ', ' 11/01/2016 ", '04:58 ', '', '',' ',' ', '',' ', '09:04 a',"04:06 "," Lake Forest/905 ","Overhead",""," - ", 'New',"1002978 '"

    "3", "3","3", 'Robert', 'He', ' ',' 11/01/2016 ", '09:35 a', '', ' ', '',' ',' '," "," 03:24 p ',' 05:49 Lake Forest/905 "," ", 'Overhead',' ',' '-', 'New', '1002978'"

    "" "" '4', '4', '4', 'Raul', 'Bernard', ' ', ' 11/01/2016 "," 02:53 p', '',' ', ' ', ' ', '',' ', "07:38 p", '04:45 ', ' Lake Forest/905 ","V-Blend"," "," ", 'New', '1008238 '.

    < / your: produitLogiciels > < / your: runReportResponse >

    I need to insert data into the framework < your: produitLogiciels > tag in the table DB.

    For me that I need to parse each line online, and each comma separated string in the column value.

    Example:


    WORKER_ID JOB_SEEKER_ID WORK_ORDER_ID FIRST_NAME LAST_NAME and so on all the columns here

    1                           1                              1                        Caroline            Badillo

    2                           2                              2                         Manuel             Barrera   

    3                           3                              3                         Robert              He

    Thanks in advance for your expertiese.


    Kind regards

    Ashok E

    Hey Ashok,

    I think you could achieve quickly with one of the following 3 options:

    • You could indeed use the Native Format to parse the XML
    • You can use XSLT to perform analysis of the even if this could become a delicate process
    • (preferred solution) If the message is sent by B2B, assuming you have the document definition for this message, that you can disable translation on the agreement and so the message will be sent as XML, validated by the XSD generated by the document editor.

    I would like to know if this was helpful.

    See you soon

    Tiago

  • I created another account but now to read the emails from one account I need to select read messages rather than go straight to my Inbox on each account why?

    I just added a different e-mail account, but to receive my emails that I have to click on my e-mail address high in "BOLD", in the left sidebar in thunderbird and then click on the button "read messages" so I can receive e-mails in my Inbox. It is with my default email account and my new account, I've set up an hour ago.
    Thank you

    You may have the default display settings.

    Turn on the "Folders pane" can help you navigate better. I got used to the look of 'style Outlook' at some point.

    To do this:
    Select ' VIEW > layout > pane of folders "in the menu bar. If the police you always visible menu bar, you can activate it by pressing 'Alt + v' keys, then select ' layout > Folders pane.

    I like the standard view + have the message pane (F8 is the shortcut for this one).

    I hope this helps.

Maybe you are looking for