JMS messages sometimes not received by Flex client

We have a problem that Flex client is sometimes not able to
receive JMS messages from a JBoss JMS Queue. Most of the time it
works, but if users logout/login using the same account frequently
or you restart JBoss 4.0.4 during their session then it might
happen. Then it doesn't work at all even if you wait. Client is
able to send messages when this problem occurs, which can then be
intercepted by other clients but cannot receive any messages from
himself or from the others. JBoss 4.0.4 is running in cluster mode.
Could it be that there is an old frozen session which is receiving
the messages meant for the new client?(consumer selector is unique
to each user, but if a user logs in twice, the same selector is
used) If I run 2 instances of my JMS test consumer using the same
selector then the consumer which registered later receives the
messages and if it quits, then the older consumer starts receving
them. This doesn't occur in Flex.
Flex is running on Tomcat 5.5.17.
Our messaging-config.xml is
<?xml version="1.0" encoding="UTF-8"?>
<service id="message-service"
class="flex.messaging.services.MessageService"
messageTypes="flex.messaging.messages.AsyncMessage">
<adapters>
<adapter-definition id="actionscript"
class="flex.messaging.services.messaging.adapters.ActionScriptAdapter"
default="true" />
<adapter-definition id="jms"
class="flex.messaging.services.messaging.adapters.JMSAdapter"/>
</adapters>
<destination id="JMSQueueB">
<properties>
<network>
<session-timeout>10</session-timeout>
</network>
<jms>
<initial-context-environment>
<property>
<name>java.naming.factory.url.pkgs</name>
<value>org.jboss.naming:org.jnp.interfaces</value>
</property>
<property>
<name>Context.PROVIDER_URL</name>
<value>jnp://x.x.x.x:1100,jnp://x.x.x.y:1100</value>
</property>
<property>
<name>Context.INITIAL_CONTEXT_FACTORY</name>
<value>org.jnp.interfaces.NamingContextFactory</value>
</property>
</initial-context-environment>
<destination-type>Queue</destination-type>
<message-type>javax.jms.TextMessage</message-type>
<connection-factory>ConnectionFactory</connection-factory>
<destination-jndi-name>queue/B</destination-jndi-name>
<destination-name>B</destination-name>
<delivery-mode>PERSISTENT</delivery-mode>
<message-priority>DEFAULT_PRIORITY</message-priority>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<transacted-sessions>false</transacted-sessions>
</jms>
</properties>
<channels>
<channel ref="my-rtmp"/>
<channel ref="my-secure-amf"/>
</channels>
<adapter ref="jms"/>
</destination>
</service>
Part of our actionscript code:
pmConsumer = new Consumer();
pmConsumer.destination = "JMSQueueB";
pmConsumer.selector = "some jms selector ....";
pmConsumer.addEventListener(MessageEvent.MESSAGE,
presenceMessageHandler);
pmConsumer.addEventListener(MessageFaultEvent.FAULT,
faultHandler);
pmConsumer.addEventListener(ChannelFaultEvent.FAULT,
channelFaultHandler);
pmConsumer.subscribe();
Also Flex seems to be handing channel switching incorrectly,
if rtmp port is firewalled, it won't use amf properly even though
it was given 2 channels in configuration file and JMS messaging
doesn't work. We have to alter the channel set during runtime.
Flex also doesn't automatically switch to other JMS server if
one goes down. Is this a feature or a bug? We have to reset
producer and consumer in order for this to work.

Hi,
It was in earlier version of the OS that you could turn Bonjour On and Off.
If this can be done in Leopard and Snow Leopard I have not found it yet. (But I don't look that often and nor for very long)
This Forum may help with that
I would also try a PRAM reset. (on Both computers)
Shut down the computer.
Restart it holding down APPLE(or ⌘)ALT+PR Keys until you have heard three Start Up Bongs.
7:18 PM Tuesday; December 8, 2009
Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

Similar Messages

  • Instant messages are not received

    Instant messages can't be received to contacts that are online. The status for these contacts is changing until the message is not received (offline-online although the contact is always online). When the contact writes your smth, the message is delivered. It happens on the latest skype version and on the beta version too. I also tried to remove the skype and clean up the register and install the beta version only after that.

    Lync is aware of active conversations. This is how it works:
    You are signed in to three different endpoints (let's say A,B & C)
    someone sends you an IM, you'll get a notification on each endpoint
    You decide to answer on endpoint B
    Each consecutive IM between those 2 endpoints will only be send to endpoint B.
    Only when someone in the conversation closes the IM (or it timed out) and the other party sends a new IM, a new popup toast is shown on all devices.
    In point 4 it's very normal that Lync only sends to endpoint B since it know's you're active there. I would consider it annoying if a conversation I already had is also opened on a different endpoint. You would close it anyway....  If you want to continue
    the conversation, you go to Outlook conversation history (in your Exchange mailbox) and continue the conversation from there so the other party gets contextual information.
    Once the conversation is closed or timed out (point 5), Lync is not sure on which device you are so it send a new toast to every signed in endpoint. It could be that you changed PC or switched to mobile in between.
    That's how it works and this behavior cannot be changed. I actually think it works fantastic.
    Certified IT Professional Lync Server 2010 / Exchange 2007 -
    http://www.uwictpartner.be
    If you think my post is the answer to your question, please mark it as answer so future visitors can easily find it.
    My Lync 2013 deployment doesn't work like that. If I'm signed in on three devices (my work PC, my phone, and my home PC), I never know which of the 3 a new IM will come in on. It seems to randomly choose it. 

  • JMS subscription stays active after the Flex client exits

    Folks,
    I have BlazeDS deployed in Tomcat 6.0.18. My Flex UI application
    subscribes to a JMS Topic in GlassFish.
    My problem is that the JMS subscription stays active after the
    Flex client exits.
    Can I add code to handle this scenario? Shouldn't BlazeDS pick this up
    automatically when the TCP connection closes?
    Thanks,
    Shane

    Hi Shane,
    I think this question is answered by my response to the following post:
    http://www.adobeforums.com/webx/.59b7c936/2
    -Alex

  • 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 ???

  • How to set Priority of JMS message in the Receiver adapter

    Hi,
    How can I set the priority of message going to MQ in the receiver JMS adapter. I tried to set a value in the <b>JMS message Priroty</b> field. But it is not working.
    In the receiving  queue manager the default priority of the queue which receives data is set to 0.
    Can anyone suggest how to get this done.
    Thanks in Advance
    Abinash

    Hi Ravi,
    If I am not wrong You are referring to article <b>Queues for Prioritized Message</b>. But this is about how to Prioritize message inside XI.
    What I am intresetd in is to set a message priority (for example "2")for the message going to MQ. That is when the message reached the detination queue the priority of this message should be 2 in the queue.
    Thanks
    Abinash

  • Some incoming messages are not received in outlook

    Using Iphone 4.
    Most of the time I receive messages from a POP account on the IPhone and on my Outlook2010 client. Once in a while I receive one or more on the IPhone and they never show up in Outlook.
    This is DNSExist Squirrel mail server. The messages are not removed from the server account after they are received by the iPhone. Outlook is setup to remove the messages 1 day after they are received and appears to be doing so.
    These messages come from different senders.
    The Settings.Mail.Account.Advanced.DeleteFromServer setting is set to "Never".
    Some of the messages appear to be flagged as received by IPhone in a way that make Outlook treat them like they have already been received.
    I will post on DNSExist also

    I believe that the messages sill show up eventually.
    While I've no experience using Outlook with POP3, I have experience with Outlook 2011 on Mac and 2010 on Windows with Microsoft Exchange. Both OS X and Windows Outlook appear to have a bug whereby they defer display of new messages for a seemingly random amount of time (even if you tell it to "Send/Receive Messages" by clicking on the item in the ribbon or from the menu). The messages are on the server, and, if you monitor the messages in the activity bar at the bottom of the Outlook window, it seems to see the messages and transfer them, but they simply don't show up in the application.
    Some messages appear immediately, others don't. We've not been able to determine precisely what differentiates those that do and those that don't. Some messages don't appear in Outlook for hours after they post on the server.
    This is widely observed throughout the company, and home users report similar behavior (again, I can't tell if they are using POP3 or not).
    We've reported the bug to Microsoft.
    Your iPhone is doing the right thing. I know of no current fix or work-around for the bug in Microsoft Outlook.

  • Nokia 6610 Messages are not received

    I bought a new Nokia 6610, I have recieved all contacts sms ratherthan my one friend, I myself a sent sms from his mobile, after few seconds we have received a delivery report, but in my mobile, there was no message, when I put the sim another mobile, I can recieved the same user's sms, whats problem?? can any one suggest, I think the user may be add in screening name, but i could not found this option in my mobile

    I have a basic Nokia prepaid phone....My issues is that One contact can not receive my sms..One day he could, the next he cant...I have stood next to him and sent one and nothing..I get "Message sent" and he gets nothing...Im being charged for my message and it is in my sentbox....Can anyone help me with this problem..Im using Telsra preepaid and have called to ask what the problem maybe but all seems well on my end..Ive turned Phone off and removed Sim to another phone which has failed to rectify the situation....He hasnt put me on a block list and I have no numbers in my screening application on my mobile..I did however send him mesage that failed to sent because credit was to low and after recharging He no longer receives any messages from me but can from others...I can also recieve messages from him.....Any suggestions would be much appreciated as I cant get much info elsewhere....
    Ta...

  • Mail 2.1.3 with Comcast ISP - delayed email messages AND not receiving them

    Having recent issues with Mail 2.1.3 and Comcast as my ISP. I was not receiving messages and receiving others delayed. Sending is fine, unless I get "timed out", where I have to input all of my Comcast account passwords one at a time. I've talked to Comcast and my bank (the issue is that I'm not receiving all of my bill notifications from the bank via e-mail). The bank said they sent the email. Comcast said there aren't any problems on my account, and their webmail (via a browser) shows I received the email, but it never showed up in Mail - where I check for it. (Comcast's webmail via the browser doesn't work well, because I can only view one account at a time. With Mail, I can view all email accounts at the same time.) I've tried restarting the Airport Base Station, the Comcast modem, and the iBook. So, any ideas for a fix, or is it finally time to cave in and buy a newer computer? Thanks for the help!

    Hi Carron,
    Not certain, but this can fix myriad Mail problems...
    Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
    Move this Folder to the Desktop...
    /Users/YourUserName/Library/Caches/Mail/
    Move this file to the Desktop...
    /Users/YourUserName/Library/Mail/Envelope Index
    Reboot.
    If that doesn't do it try these & reboot...
    /Users/YourUserName/Library/Mail/MessageRules.plist
    /Users/YourUserName/Library/Mail/MessageRules.plist.backup

  • App Email Message: Can not receive mail

    I am adding my email accounts on an Iphone 3gs and 4.
    I'm adding some accounts Hotmail..me validates the account and asset sincronize mail, contacts and calendar.
    For in the Iphone 4 I get in the middle of the screen:
    You can not receive mail
    Failed to connect to server
    In no case 3gs I think ... it's like add me give this error. But after work, check email and puts Updated right now. Sometimes this error before I went out to time. No truth why.
    regards

    Hello morrit,
    After reviewing your post, it sounds like you are not able to receive emails on one iPhone. I would recommend that you read this article, it may be able to help the issue.
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Make sure your settings are correct using Mail Settings Lookup.
    Restart your iOS device.
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Tap the affected email account.
    Tap Delete Account.
    Add your account again.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Switched to Android but iPhone text messages are not received

    PLEASE HELP! I sold my 3GS on 3 network and switched to a Galaxy S3 on Orange. I have ported my number across. Before I sold my iphone I did a factory restore. My problem is that when iphone users send me a text message, I do not receive it. Their phones still think I am on iMessage. I need to know how to disable my iMessage account even though I have no access to an iphone. I have removed the device from my apple support profile and also from icloud.com. I have absolutely no idea how to solve this and I'm pretty disappointed with Apple that by doing a factory reset, didn't remove my number from the imessage account. Any help would be greatly appreciated.
    Thanks
    Gareth

    you don't.  you tell her to turn off iMessage on her old iPhone

  • Why is mail sending messages but not receiving?  problem just started.

    not sure that anything has changed on my imac recently.  i am running 10.7.3.  i can send mail but it's not receiving.  help appreciated.

    benhill00,
    Please look over Apple's Mail Setup, Troubleshooting etc.. link. I suspect a setting has just gotten "confused" or become corrupt somehow. Frequently all you need to do is go into the Mail's Account settings and re-input the settings.

  • TS2755 iMessage sometimes not received, when messages in Mac is active and iphone is not

    Hi,
    Lately i didn't receive some messages only later to find them in my Mac's Messages application.
    What i understand from this, is that if my iPhone suffers from temporary disconnectivity then the iMessage is still routed to the Mac,
    but will never be pulled by the iphone .
    If that is the case then when i am in an elevator or out of power , then the iMessage center
    knows i have iMessage "on and active" and it will send it to my Mac and the iPhone will never be notified.
    Correct?
    Thanks
    Yair AKA Zvilich

    The iMessage and Facetime servers are down for the day. People have been having issues since this morning. I called Apple myself and they told me to just wait until this evening and try again but warned that could not be fixed until tomorrow.
    Wait until then and see what happens. You can always call Apple and get a direct update if you still have issues and think it should be fixed.
    Regards,

  • JMS adapter could not receive message from Tibco EMS topic

    I'm trying to consume message from tibco EMS topic using Oracle SOA JMS adapter. Can anyone please let me know the steps to do this. Appreciate your help.
    Thanks,
    SB

    Increase Log level for cube.activation to debug and check the logs by stopping & starting the activation agent(I mean Retire and activate the process) .. It should give a clue on what's happening..

  • JMS message is not picked up by the listener

    We have created a queue in a cluster. We have an application that listens to a queue. Messages from another application will post message into this queue which is inturn picked up by the listener process.
              We posted a message to the queue long back.But it was not picked up by the application. Then, again we sent two more messages. These recent two messages were picked up by the application.
              We looked into the queue using QueueBrowse program from weblogic samples. On running the program, it sometimes shows that the first message (which was not picked up) is still there in the queue. Sometimes, it shows that there is no message in the queue.
              Have you faced any such scenarios earlier? Please help me knowing why this is happening.
              Thanks in advance.

    I also found in my queue listener's log the following exception stack trace.
              weblogic.jms.common.LostServerException: weblogic.rjvm.PeerGoneException: ; nested exception is:
                   java.io.EOFException
                   at weblogic.jms.client.JMSConnection.jmsPeerGone(JMSConnection.java:908)
                   at weblogic.jms.dispatcher.DispatcherWrapperState.peerGone(DispatcherWrapperState.java:691)
                   at weblogic.jms.dispatcher.DispatcherWrapperState.callback(DispatcherWrapperState.java:552)
                   at weblogic.rjvm.RJVMImpl$HeartbeatMonitorListenerDeliverer.execute(RJVMImpl.java:1412)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              Is this exception related in any way to the above stated issue?

  • "Sent Messages" folder not receiving new sent mails after a server change

    My provider just moved my account to another server. The IMAP accounts needed to be re-established on my wife's PC in her program. So we know the files are all there on the new server.
    Funny thing is that it's not working on Mail on my iBook. And when these changes took place, my sidebar contents in Mail changed on me. I have sent some mail to various places since this happened, but none of these new mails have copies which are saved in my "Sent Items" or "Sent Messages" folders. So I have no record now of anything new since the change happened. I DO have copies of mail in there that are pre-change.
    I checked my preferences for mailbox behaviors, and the "Store Sent Items on the Server" is checked, so I'm not sure what's up.
    For the record I'm running OS X 10.4.7 and Mail 2.1.
    I have deleted and re-established my two email accounts in Mail in order to make them re-establish new links with the server, so I'm seeing my folders, but no new mail sent is showing up in my Sent Messages folder.
    I would appreciate if anyone knows if there could be an issue with Mail, my new host's servers, or what. It looks like a Mail issue to me, since my wife's PC is reading everything fine (and she is running Thunderbird as her client).
    Thanks!
    iBook G4   Mac OS X (10.4.7)  
    iBook G4   Mac OS X (10.4.6)  
    iBook G4   Mac OS X (10.4.7)  

    You're welcome.
    I don't think it's your fault. Different IMAP servers use different naming conventions, and the Mailbox > Use This Mailbox For command is meant to let you tell Mail which folder should be used for what purpose, but you shouldn't have to use it just to prevent your mail from being lost. At the very least, Mail should be able to use its own default Sent Messages folder without you having to do anything. I don't know why Mail fails to do this properly so often.
    Worse yet, not only does Mail sometimes fail to use the Sent Messages folder that's already there, but it doesn't even warn you that it's failing to save your sent messages as you've told it to.

Maybe you are looking for