My JMS Consumer receives messages at uneven time gaps

I have two applications, say APP1 and APP2. Both of these are connected through JMS Bridges.
APP1 is hosting the PUSH bridge to APP2.
There was an uneven delay in the messages that are received at APP2.
I have checked the logs and found that there is a time gap between APP1 posting the message on the JMS queue and APP2 receiving it.
This is not happening for all the messages that are moving in between these applications, but it is consistently reoccuring.
Many of the messages are received within 2Secs at APP2.But some of the messages are taking upto 30secs to show up at APP2.
There is no network load between these applications.
I want to understand why this is happening? and how to resolve this?
Could anyone help me out?
Thanks,
Aditya
Edited by: Aditya@AU on Jun 11, 2009 11:59 PM

Are you using OpenMQ (also known as Glassfish MQ, Java System Message Queue) ? If yes, are you using OpenMQ 4.4's JMS Bridge feature ?

Similar Messages

  • Scaleability of JMS Clients Receiving Messages

    How do you scale the receipt of messages in a JMS client for messages from the same topic?
    Given a topic, I would like to enable concurrent receipt and processing of messages by many concurrent listeners where a single message is only consumed once by any of the listeners. Even more, I would like to scale by having many clients with possibly many listeners servicing the same topic where a single message is only consumed/processed once.
    However, based on the documentation (see below) it appears sessions only enable a single thread of execution to be simultaneously running servicing incoming messages one at a time! And adding subscribers implies the delivery of a single message to each subscriber creating duplicate processing of the same message.
    Quote from JMS Tutorial: "The session used to create the message consumer serializes the execution of all message listeners registered with the session. At any time, only one of the session's message listeners is running."

    Hi vincegeorge,
    To be able to have several consumers actively using message listeners concurrently you could create each consumer on a different session. This would get around your problem of concurrent receipt and processing of messages when using message listeners.
    The second problem, ensuring that each message is received by only one TopicSubscriber is much more difficult. As each subscriber will receive every message that is sent to the particular topic then each subscriber will be sent a copy of that message. The only exception to this rule is if you have set a "message selector" for the consumer. If you knew exactly which subscribers were active at the publisher end then you could set a property on the message, e.g. SubscriberID=1, on the message and then each subscriber could set a message selector to say that they only wished to receive messages with the property SubscriberID set to their particular number. To notify the publisher which subscribers are active you could have a special destination that contains heartbeat messages informing everyone of their subscriberID.
    However, is it possible instead though that you could use a queue. This would be much easier to code (no message selector and no need to keep everyone informed of which subscriberID's are available) as the queue would ensure that only one receiver ever consumed the message.
    Hope this helps a little,
    Tom Jenkinson
    Arjuna Technologies Limited

  • Upgraded 10g - 11g: Standalone JMS not receiving messages async (listener)

    I had a small application that received messages from the oracle database through JMS (asyncronously). It worked when the database was 10g, but the messages are no longer being received through the JMS listener (staying in queue table) after the database was upgraded to 11g.
    I used another 10g instance on the same server - and it is still working on 10g.
    Is there some sort of configuration - specific to 11g - that needs to be done to accomplish the same thing in 11g?

    As I've no idea what version of 10g or 11g and you've posted no code my only possible recommendation is that you hit the docs: http://tahiti.oracle.com and look at what changed.

  • IOS8.1.1 Notifications for offline received messages

    Hello,
    I have a problem since update on iOS 8 (currently iOS 8.1.1). The problem is with notifications (facebook, facebook messenger, youtube...).
    Notifications will show on the screen for messages received online, but for message received offline it never shows up.
    For example: if I received facebook message offline, when I connect on wifi nothing comes out on the screen. So I need to open facebook messenger and read the message. If I was online and received message in that time, then notification will show up normally.
    I checked all settings, turned on backround refreshing and cannot find where the problem is. My iCloud is turned off, does it change anything?
    Please can you help me to solve this?
    Thank you very much.

    Hello Lawlord10,
    When you go to Settings > Notification Center, what do the settings for each app say? It sounds like they are turned off and you would need to change them to what you want. If they are right, then I would reset all the settings on your iPhone to put them back to it’s default with erasing the data on your iPhone. You can do that at Settings > General > Reset > Reset All Settings. 
    iOS: Understanding notifications
    http://support.apple.com/kb/HT5891
    Reset iPhone settings
    http://help.apple.com/iphone/8/#/iph7a2a9399b
    Regards,
    -Norm G. 

  • JMS consumer is not receiving any messages. am i missing something ?

    Hi bellow is the consumer code, my consumer is not receiving any messages even though there are messages in the queue. I have tried to debug the code. but the consumer is not calling the onMessage() method even though there are messages in the queue. Please guide me on the same. if i am missing something.
    package org.icrm.cons;
    import javax.jms.Connection;
    import javax.jms.Destination;
    import javax.jms.ExceptionListener;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.MessageConsumer;
    import javax.jms.MessageListener;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import org.apache.activemq.ActiveMQConnectionFactory;
    public class JConsumer implements ExceptionListener,MessageListener{
         public static void main(String[] args){
              JConsumer consumer = new JConsumer();
              System.out.println("here 1");
              consumer.consumeMessage("MyQueue");
         public void consumeMessage(String queueName){
              try{
                   System.out.println("here 2");
                   ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61616");
                   Connection connection = connectionFactory.createConnection();
                   connection.start();
                   connection.setExceptionListener(this);
                   Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
                   Destination destination = session.createQueue(queueName);
                   MessageConsumer consumer = session.createConsumer(destination);
                   //ASync
                   consumer.setMessageListener(this);
                   //Sync
                   /*Message message = consumer.receive(1000);
                   TextMessage textMessage = (TextMessage)message;
                   String text = textMessage.getText();
                   System.out.println("Received : " + text);
                   consumer.close();
                   session.close();
                   connection.close();
              }catch(Exception e){
                   System.out.println("Caught: " + e);
                   e.printStackTrace();
         public void onException(JMSException arg0) {
              System.out.println("JMS Exception occured.  Shutting down client.");
         public void onMessage(Message message) {
              try{
                   TextMessage textMessage = (TextMessage)message;
                   String text = textMessage.getText();
                   System.out.println("Received: " + text);
              }catch(JMSException e){
                   e.printStackTrace();
    }

    Hey,
    I commented the following line of code. and i got all the messages.
    //consumer.close();
    //session.close();
    //connection.close();but then when should i close the consumer, session and connection object ???

  • JMS Consume message array

    Hello everybody,
    I'm using Oracle SOA Suite 11. I have some transactions and create an object like
    <data>
    <id>1</id>
    <value>aa</value>
    <a>aa</a>
    </data>
    I put many of these object to JMS Queue.
    In another process I want to take set of these objects from queue and put these data to db. I don't want to take one by one. How can I consume set of these objects from JMS Queue ?
    Thanks,
    Best Regards,

    Hi,
    Can be done with Oracle AQ and Websphere MQ but not with standard JMS as far as I know...
    Receiving messages in a WebSphere MQ message group
    http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.etools.mft.doc%2Fac25700_.htm
    Oracle Streams AQ Operations
    http://docs.oracle.com/cd/B19306_01/server.102/b14257/aq_opers.htm#BCFBJHCG
    There is also message groups for Apache Active MQ (Free?), but not sure if covers what you need...
    http://activemq.apache.org/message-groups.html
    Please let me know if this was helpful...
    Cheers,
    Vlad

  • Weblogic Spring MDP consumer unable to receive message

    Hi,
    we have a weblogic cluster(2 machine, 2 instance per machine)
    I have configured JMS server in each instance and a distributed Queue
    DominName : hmidomain Weblogic 10.0MP1
    And four instance of managed server and JMS server
    gdmsdomain(admin)
    instance11,JMSServer11
    instance12,JMSServer12
    instance21,JMSServer21
    instance22 ,JMSServer22
    Each JMS server is targeted to the corresponding Instance
    connection factory and Uniform Distributed Queue target my cluster , sub deployment is Default Targetting.
    I have a spring application with has Message Driven Pojo ,which has 4 listener container, each one are configured to connect to one instance
    when I run the application in Tomcat all the consumer are evenly distributed to the instance and Able to receive messages.
    when I try to deploy the same spring application in another weblogic server(different machine and different domain)
    The setup of this server
    DominName : wasdomain Weblogic 10.0
    hmidomain(admin)
    No cluster, I deploy the application in admin server itself I face the following problem
    1) Consumers get registered but unable to receive messages
    2)If I restart the server, then they are able to receive messages, until I do a update to the application. If I do an update to the project it fails to reload and leads to a server restart.
    Initially I got exception as java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[system, Administrators]
    After adding the security credentials for JNDI template, I don't get this exception but still it does not work.
    the connection and Queue are not secured.
    I am not using any bridge or SAF. but not sure if it has anything to do with Domain security.
    As you might have seen above, that I have unique name for all resources and both the Domains are in same network , no firewalls
    As mention earlier the Spring MDPworks fine in tomcat with out any issue.
    I have not posted any config codes, If you need it, please let me know.
    Any help to fix this issue is appreciated.
    Thank you
    Edited by: Kannan Mugundan on Jan 30, 2010 1:49 AM
    Edited by: Kannan Mugundan on Jan 30, 2010 1:52 AM

    Kannan Mugundan wrote:
    Hi,
    we have a weblogic cluster(2 machine, 2 instance per machine)
    I have configured JMS server in each instance and a distributed Queue
    DominName : hmidomain Weblogic 10.0MP1
    And four instance of managed server and JMS server
    gdmsdomain(admin)
    instance11,JMSServer11
    instance12,JMSServer12
    instance21,JMSServer21
    instance22 ,JMSServer22
    Each JMS server is targeted to the corresponding Instance
    connection factory and Uniform Distributed Queue target my cluster , sub deployment is Default Targetting.
    I have a spring application with has Message Driven Pojo ,which has 4 listener container, each one are configured to connect to one instance
    when I run the application in Tomcat all the consumer are evenly distributed to the instance and Able to receive messages.
    when I try to deploy the same spring application in another weblogic server(different machine and different domain)
    The setup of this server
    DominName : wasdomain Weblogic 10.0
    hmidomain(admin)
    No cluster, I deploy the application in <font face="tahoma,verdana,sans-serif" size="1" color="#000">admin</font> server itself I face the following problem
    <P>1) Consumers get registered but unable to receive messages
    2)If I restart the server, then they are able to receive messages, until I do a update to the application. If I do an update to the project it fails to reload and leads to a server restart.
    Initially I got exception as java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[system, Administrators]
    After adding the security credentials for JNDI template, I don't get this exception but still it does not work.
    the connection and Queue are not secured.
    I am not using any bridge or SAF. but not sure if it has anything to do with Domain security.
    As you might have seen above, that I have unique name for all resources and both the Domains are in same network , no firewalls
    As mention earlier the Spring MDPworks fine in tomcat with out any issue.
    I have not posted any config codes, If you need it, please let me know.
    Any help to fix this issue is appreciated.
    Thank you
    Edited by: Kannan Mugundan on Jan 30, 2010 1:49 AM
    Edited by: Kannan Mugundan on Jan 30, 2010 1:52 AM</P>You can give a more complete description of your needs, It will be better for answering your question.

  • TS4268 Ever since I uploaded i0s7 I haven't been able to receive I messages or face time. I have took it to the apple store and they couldn't figure it out. I have also followed the trouble shooting from I tunes and still can't get it working

    Ever since I uploaded i0s7 I haven't been able to receive I messages or face time. I have took it to the apple store and they couldn't figure it out. I have also followed the trouble shooting from I tunes and still can't get it working

    Hi,
    Strikes -
    Go into compositionReady and have 3 variables you will be able to set them like this
    strike1 = 0;
    strike2 = 0;
    strike3 = 0;
    So on the wrong item click have
    if(strike1 == 0) {
    PLAY STRIKE1 ANIMATION
    strike1 = 1;
    else if(strike2 == 0) {
    PLAY STRIKE2 ANIMATION
    strike2 = 1;
    else if(strike3 == 0) {
    PLAY STRIKE2 ANIMATION
    strike3 = 1;
    So this will make it so when the wrong item is clicked each strike will be played in order.
    Random Scrolling -
    You should look into the Math.Random function to make things random in edge.
    This is an example of the Random function. It will generate a random number up to 100.
    var random = Math.floor (Math.random () * 100);
    Lose Screen Score -
    So we can create another variable in compositionReady for the lose score.
    score = 0;
    Now when the user gains a point to add to the score you could do this code on the click
    score++;
    which would add 1 to the score, However you can add however much you like to the score doing "score + 2" and so on.
    To edit a text with the score at the end which I'm assuming you will want to do you will use .html
    so $("Text").html("You score is " + score);
    I hope this helps!

  • How can I stop iOS from opening a recently received message when I click on the messages app to compose an unrelated message to a different contact? I want to read it later, when I have time to reply, and I don't want to forget to go back to it.

    iPhone messages automatically open when I don't want them to
    One of my first ever flip phones had a wonderful function where you could choose a checkbox next to received messages to make them appear read or unread. This was very convenient for messages which you read, but don't have time to reply to immediately, and want to remember to come back to later.
    In contrast, the latest, greatest iPhone not only does not have this rudimentary message management function, but it goes one step further in the wrong direction. If there is just one received, unread message, and you click on the messages icon, the new message will automatically be opened. It is opened irrespective of whether you have time to read it right away, irrespective of if you simply wanted to compose a new message or go back to another already read message. It just opens the new one, and then you are in a position where you have to read it and respond to it right there, or risk forgetting about it and failing to reply to it altogether. I sometimes receive a lot of messages over a period of a few hours, so it is very easy to lose track of these half-read messages in the mayhem. I have missed countless messages because of this problem. Incidentally, if there is more than one received message, then the application doesn't automatically open any of them, which is much better, because you can at least choose when you want to open one of the unread messages. But ideally, you should be able to go through your list of received messages and check or uncheck them as read or unread at any time, so that you can easily find messages that still need to be replied to, or reconsidered.
    Does anybody have a solution to this problem? It strikes me as a simple data management solution that should be, but is not an option in the basic functionality of the app. Frustrating!

    Is this an IMAP account?
    If so, delete the messages in Mail from all folders and quit Mail.
    Go the the website and clear the messages from all folders there.
    Reopen Mail and verify the messages have been deleted for all folders.

  • Message Inbox: Long time to receive messages

    Hi All,
    My client is on 8.8 PL15. They complain that it takes a very long time to receive Approvals in th Messages/Alert Overview window, although the Update Messages in General Settings > Services is set to be 1 minute. They complain that they need to log out and back in again in order to receive messages, before they can approve.
    Does somebody maybe know what could cause the delay?
    Kind regards
    Carin

    Hi All,
    The users cleaned up the Inbox and Outbox Messages, but the Approval Messages are still coming through slowly!
    1. Some Authorisers do not even get the messages, while others do, even after they logged off and on again.
    2. Also follow the following scenario: The user is logged on on a laptop and on a terminal. On the Terminal, the approvals almost come through instantly, but on the laptop, it takes forever. If you log off and back on again it then comes through.
    Can anybody help?
    Regards
    Carin

  • I purchased a magazine using the Zinio app which I'd recently downloaded on to a recently purchased iPad. I received an error message at the time (can't recall the details) but have since been invoiced for the $8.99. How can I get the Magazine I purchased

    I purchased a magazine using the Zinio app which I'd recently downloaded on to a recently purchased iPad. I received an error message at the time (can't recall the details) but have since been invoiced for the $8.99. How can I get the Magazine I purchased?

    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • How to configure my JMS QUEUE serve only one message at a time?

    Hi All,
    I have requirement where I need to develope a JMS QUEUE in weblogic. This MDB has to serve only one message at a time. Is there any way to configure via annotations or in weblogic server settings ?
    Any help would be really appreciated...
    Thank you,
    K.

    I'm not aware of any way to configure the max pool size via annotations, you might try posting to the EJB newsgroup (please post back the answer). Of course you can set the size via an EJB descriptor, as per the MDB chapter of the Performance and Tuning guide in the edocs.
    By the way, if you have ordered message processing requirements, I highly recommend taking a look at the WebLogic JMS "Unit-of-Order" (UOO) feature as per the UOO chapter of the JMS programmer's guide. For a variety of reasons, the UOO features is often, by far, the best option for handling such requirements. If this feature applies to your use case, then there would be no need to force single threaded message processing in some sort of manual fashion (the feature enforces this for you).
    Tom

  • I continue to receive message that "We could not complete your iTunes Store request. An unknown error occurred (4002). Please try again later." This has been happening every time iTunes Match runs in background. Any suggestions for a cure?

    I continue to receive message that "We could not complete your iTunes Store request. An unknown error occurred (4002). Please try again later." This has been happening every time iTunes Match runs in background. Any suggestions for a cure?

    Found a potential solution here:
    https://discussions.apple.com/thread/4332757
    Gsleeroy
    Re: error 4002 in itunes match do you have a solution? 
    Sep 23, 2012 10:08 AM (in response to matracaelcan)
    Hi All,
    I had this problem today myself, and was frustrated repeatedly by the '4002' error.
    I have literally just fixed the issue by doing the following steps:
    1: Go to the 'Store' tab and select 'Turn Off iTunes Match'
    2: Return to the 'Store' tab and select 'Update Genius'
    3: Wait for this to complete succesfully, the return to the 'Store' tab once more and select 'Turn On iTunes Match'.
    4: iTunes Match will now go through the motions and should succeed!
    I hope this helps

  • I have an iPhone 5c that was purchased 10 months ago,, suddenly i can no longer make or receive phone calls, send text messages and the time is always wrong

    I have an iPhone 5s that no longer makes nor receives phone call, the time will never stay corrected. Anyone with any thoughts?

        samjohns146,
    Making sure you can use your phone when you need it is certainly a concern of every consumer. I am sorry to hear you are having trouble with your phone but you have reached the right place for assistance. Has your phone completed any recent software updates at all? Let's try resetting the network settings http://vz.to/1ovdCBD to see if that resolves the issue. Please keep us posted on the outcome.
    CandiceH_VZW
    Follow us on Twitter at @VZWSupport

  • Mail stops receiving messages after a period of time

    Every since installing Mavericks my Mail app stops receiving messages after a period of time. I know because I get the email on my phone, but I try to grab them in Mail and nothing. If I restart Mail then they come through.
    I'm using Gmail as my email provider. Is anyone else suffering with this? Is there a work around?

    Workaround or not, this is an annoyance, and that's a nice way of putting it. Coming from Mountain Lion, when Mail was working flawlessly, having to deal with this issue is just plain ridiculous. What happened to the Mail application? I don't understand how Apple could screw this up to badly.
    Every time I restart or reset the connection to the servers, the Mail app is downloading thousands of messages (I can see the display on the bottom-left). I have no idea what it's doing or why, for that matter. If Apple doesn't fix this soon, I will seriously be forced to look for an alternative, which saddens me greatly. I really like Mail, but if it cannot reliably get my mail simply because I've left it open too long, or hidden it behind another window, I will stop using it.
    What's worse is that I've had similar issues with other applications like iPhoto and iTunes. Whatever is happening to Mail is probably not just application-specific. It's probably OS-specific. I hope Apple is working on it and that we will see a major update to Mavericks soon. All I know is that, right now, I'm seriously regretting upgrading to Mavericks.

Maybe you are looking for

  • RV220W inconsistent user access

    Does anyone else happen problems with inconsistent access? I have created 7 QuickVPN users on router and on QuickVPN client. They all work except two. Have deleted and reinstalled on router and in QuickVPN to no avail. Changing the user name by one l

  • How to play next audio book file/chapter?

    Trying to setup an ipad2 for my mother and load some of her audio books on it.  The audio books are mostly in mp3 format with some being in m4a.  Books are marked as audio book format. Problem is that when placed on the ipad and accessed by going thr

  • Synchronizing with MS Outlook

    Does anyone know how I can synchronize my list of contacts in MS Outlook with my list of contacts in my Java web application? Thanks in advance!

  • UNIX Process

    I have a Unix Process, constructed on C Language, this process access a shared library to perform some tasks.. Can I create a java program to run as a shared library ??? I want delete this C Shared Library and create a java shared library... Is it po

  • OHW 2.0.6. Error in clicking the search tab

    I've replaced ohw-2.0.2.jar by ohw-2.0.6.jar and now I have 500 Internal Server Error when clicking the Search tab. java.lang.NullPointerException      at oracle.help.web.navigator.searchNavigator.SearchDispatcher.getSources(Unknown Source)... ---