Make producer to always succeed in sending messages

So, our producers must always succeed to send a message (persistent) even if the messaging system is down.
This just simplifies every integration process and every application logic participating.
The receiving part is - OK. If a message is delivered it would be processed, if not ... we are waiting.
One idea is to persist each message if the sending fails and some helper daemon which will empty this message log from the DB into the messaging system when it is available.
I have heard also about embedding intermediate messiging system into the application, so that it somehow forwards each message to the real messaging system when it is available automatically.
I want to ask if somebody has done this in a generic way?
Or if there is already a solution for this?

jwenting wrote:
I'd venture to state that the chances of the server being down (if properly configured and hosted of course) is actually far smaller than that of the client trying to send data to it being down.
Ergo, the chance of the server being down while the client is up and trying to send data is even smaller, approaching the point where it can be safely ignored or compensated for by simply retrying the send at intervals until it succeeds.Exactly my point. most likely, the server is a box with lots of IT infrastructure around it (monitoring, disk with RAID, tape backups, enterprise database, etc.). now, it's not clear from the original question what the "client" looks like, but if we are talking an average box with and average disk, and little to no IT attention (other than, if it stops working we install a new disk, with a fresh OS), then you are far better off letting the server handle the "persistent" in persistent messaging.
TravelEntity wrote:
Ok, now you're getting into risk management.well, we are talking about persistent messaging. why else would you be using it...?
What is the likelihood of a broker being down on your client, and what happens when it is down. What other solution do you have, and will they guarantee you less risk? I can tell you that having it embedded in the client will not decrease the risk level, unless the network stack on your client is screwed up. In which case, your machine is hosed, and as useful as a brick. And the broker can be set to start with the machine as a service (on unix and windows).You are making my point for me (albeit unintentionally). "the network stack going down" is far from the only potential issue. i assume the "persistent" messages are being written to disk (if not, you risk OOME). what if the messages get corrupted on disk? what if you run out of local disk space? your client jvm may continue running quite happily, but your guarantee just went out the window.

Similar Messages

  • I can't make any call but i can send message

    Dears
    the black berry 8310 the pin ####### model # 8310 IMEI ****************** prd 15562-011
    I can send and receive messages but i cant make any calls.  please let me know what do know???
    thx
    EDIT: Removed personal information

    Try a Battery Pull:
    1. Remove the battery while phone is turned on
    2. Wait a few seconds before inserting it again
    3. Allow the long boot up process to finish (takes a few minutes usually)
    This clears most software issues that occur on blackberries from time to time. You could also use Quickpull, a free app that simulates a battery pull without physically removing the battery: http://store.berryreview.com/product.asp?id=27660&n=QuickPull-Free
    A battery pull reclaims memory lost during application usage and clears minor software errors that creep in over time. The blackberry runs an OS just like your PC runs windows and the battery pull is the equivalent of a reboot/restart on your computer.
    Under Options>Mobile Network, check the settings there. You may be roaming and hence your data services could be "Off when roaming" and  your network selection mode could be set to "Home only". Change these and it may work.
    Other than that, I would suggest talking to your service provider since this may be an issue at their end.
    Kijana
    Please remember to:
    1. Mark Accept as Solution on the appropriate post once your issue has been resolved
    2. Give Kudos to helpful posts (click the star next to the post)
    Thanks

  • My iPhone does not receive calls, make calls, send message (text, imessage)

    Hey, so recently I've got my iphone (4) and I have updated to ios 5.0.1 the next day I got it. The problem is that my phone sometimes doesn't make phone calls, receive ones or send message( imessage and text message) properly. And when I try to call someone when my phone is acting that way and then say 'end' it just gets locked. But after waiting SO long it starts working but I never could understand the problem. I hope you can help me...

    Hi,
    Try testing the iPhone without any accessories.
    This article: http://support.apple.com/kb/HT1737 provides general tips that will resolve most issues related to making and receiving calls.
    Try contacting the cellular service provider, if the issue persists after trying the tips in the article above. This article: http://support.apple.com/kb/HT1937 provides support resources for iPhone service providers.
    -Jason

  • Conditionally sending messages to multiple consumers

    How would I best accomplish this requirement?
    I have one system which produces messages
    Multiple systems may want to consume those messages
    I want the producer to be able to send messages conditionally
    In one instance perhaps I send same message to each consumer
    However in another case maybe I only want to send a message to consumers A and B
    It would be OK if I could flag certain messages to be for certain consumers, and then those consumers only retrieve those messages designated to them. However I dont think this is possible as any such flag the consumer would have to read once it actually consumes the message and reads it, I dont think there is any way for the queue to make that decision for them.
    So it sounds like what I need is a hybrid of point-to-point and publish-subscribe
    I want a universal way to conditionally send messages to one or more consumers, and the conditions are dynamic.
    Any suggestions?
    Must it be a PTP with separate queue for every application?

    lozina wrote:
    Interesting... message filters. I like it.
    So with this approach, I can send some messages to everyone, and other messages I can have tailored to specific subscribers?pretty much.
    But the subscriber does not actually have to "fetch" each message to determine if the message is meant for him or not, right? When using message filters this act at the queue, not at the client? Basically I want to avoid a client downloading 1,000 messages only to find out none of them are for him. unfortunately, that's probably up to the implementation. the implementation may choose to work that way (download every message and check it), or it may have a way of applying the filter at the server. however, the filters work only on the message properties, so the impl may be able to just get message headers and filter w/out getting the entire message. you'll have to test with the jms impl you are planning on using and see how that works.
    Thanks!
    [Edit] these are called Message Selectors right? yes.
    And looks like they are specified at the time the client looks up the queue in JNDI?yes, these are provided at subscription time.
    Now is this limited to publish-subscribe?no you can use selectors when subscribing to a queue as well. but, queues won't scale very well to lots of consumers (and are hard to manage with dynamic numbers of consumers).

  • Ichat-AIM error. can no longer send messages to offline buddies

    I was always able to send messages to offline buddies before until today when I received this message:
    "AIM error
    Your message could not be sent.
    You cannot send any more offline messages."
    After receiving this message I was no longer able to send messages to any of my offline buddies, not just the one that I was IMing at the time . I was using an AIM sn that I created before I bought my macbook (I just got my macbook in January). Please help me! How can I go back to the way things were? I've been scouring the online forums and have not been able to find a solution to my problem! please help!
    (iChat Version 4.0.3 (605))

    Hi,
    Welcome to the  Discussions
    iChat does not have a setting for changing this.
    iChat can not send Off Line Messages but can receive them if you don't block them with the AIM System Message Chat that comes at the same time.
    iChat 4 can send them and receive them.
    The Incoming ones can be blocked in th same way.
    I have no info if blocking Incoming ones causes the Outgoing ones to be stopped as well.
    As iChat does not have this feature you would need to download a client (for AIM) that does allow you to change the Setting.
    AIM for Mac is still at version 4.7 and does not seem to have a setting for this.
    I would look at AdiumX or ProteusX
    8:54 PM Friday; June 20, 2008

  • I have iPad 2 with wifi and no 3G. I want to use iMessage to talk to a friend in Russia from here in the UK. For some reason I can't send messages to her. Please try to make your answers basic and easy to follow as I'm not any good with technology :)

    Hi everyone!
    I'm wanting to use iMessage to talk to a friend in Russia. She has iPhone 4s and I have ipad2 wifi only. For some reason I can't send messages to her but I can to UK iPhones.
    Please could you make your answers easy to understand and in plain English I I'm not good with technology and I'm not up to date on the jargon :)
    Thanks in advance to anyone who can help!

    Hi everyone!
    I'm wanting to use iMessage to talk to a friend in Russia. She has iPhone 4s and I have ipad2 wifi only. For some reason I can't send messages to her but I can to UK iPhones.
    Please could you make your answers easy to understand and in plain English I I'm not good with technology and I'm not up to date on the jargon :)
    Thanks in advance to anyone who can help!

  • Since i have updated to IOS 7.1 my phone no longer can make calls, connect using 3G or send text messages. can someone help please?

    since i have updated to IOS 7.1 my phone no longer can make calls, connect using 3G or send text messages. has anyone else had this trouble? i've tried resetting the phone, but had no luck. i can recieve calls and texts, but cannot make calls, text or use the 3G.
    please can anyone help?

    Yes! All the above. I have to buy a new phone. I contacted my phone company and there is nothing they can do 

  • Recipient who used to have iPhone. Messages always try to send as imessage instead of text.

    I have a coworker who used to have an iPhone. Every time I message him, it trys to send as imessage and fails.  Then I have to tap the ! and choose send as text.
    I've delted the entire text string.  I've completely removed him from my address book and re-added him.  How do I tell the iPhone to always send messages to him as a text?
    Thanks

    Seems like your doing a lot of leg work for your friend. 
    Use the search function at the top right of the forum - this topic has been brouight up in many threads.
    He/She would deregister their iphone from the apple server..  Sorry don't know the link or website.

  • I recently started using iPhone 4S. But I can't make messaging to anyone. It is updated to iOS 6. Everytime I send message, it shows me message is not delivered! Is it an issue with all iPhone 4S, iOS 6?? Help me! Thanks in advance !! :)

    I recently started using iPhone 4S. But I can't make messaging to anyone. It is updated to iOS 6. Everytime I send message, it shows me message is not delivered! Is it an issue with all iPhone 4S, iOS 6?? Help me! Thanks in advance !!

    Try resetting your phone by holding down the home and off button until the apple symbol comes up. Then if still doing, restore your phone in itunes from your backup.

  • The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    The "always match my default message font" option in the Signature preferences from Mac Mail does not work if e-mail is received in other Mail Software. How can I make it work?

    I found this plugin which solved pretty much all of my mail font rendering problems.  It is designed for Lion, so don't know whether it will work but thought I would offer it up.
    http://noware-it.zxq.net/

  • HT1937 Hello, I have a 3GS but I cannot either make calls or receive them but I can send messages, could anyone help me, pleaseeeee?

    Hello, I have a 3GS but I cannot either make calls or receive them but I can send messages, could anyone help me, pleaseeeee? I do not know what to do. Many thanks.

    Do a reset (Hold Sleep/Wake and Home buttons about 10 secs or more till Apple logo appears, ignore the Slide to Power Off that appears)
    Note: You will not lose any data.
    if that didn't help, talk to your carrier.

  • I downloaded the whatsapp app to my new iphone, and when i wanted to create an account, i could not, it said, unable to send message. I downloaded it several times later, but i still could not create the account, it always said, unable to send, help

    I downloaded the whatsapp app to my new iphone, and when i wanted to create an account, i could not, it said, unable to send message. I downloaded it several times later, but i still could not create the account, it always said, unable to send, help

    I recommend reaching out to Citrix via their support system -
    http://www.citrix.com/products/receiver/resources-and-support.html
    The receiver app has a specific list of servers it's compatible with, if the server is not on the list the app won't work in OS X.
    http://support.citrix.com/servlet/KbServlet/download/28492-102-671726/Receiver%2 0for%20Mac%2011%204%20FAQ%20v1_1235.pdf
    Do you know what server you're connecting to?

  • I have full signal and have wifi but I'm can't send messages or receive them. I can't make phone calls either.

    HI
    I have full signal and have wifi but I'm can't send messages or receive them. I can't make phone calls either. it picks and chooses when I can receive them and make calls. It only works everytime I turn my phone off.

    Try turning on Airplane mode for a little bit (20-30 seconds) and turn it back off. see if that doesn't allow you to re-connect.
    In my current project my office receives no signal at all. I have to do this almost every time I leave the office in order to get a signal.

  • Why cant i send messages through imessage or FaceTime it always tells me that there was an error message and it failed

    so for a while my macbook air hasnt allowed me to facetime or send messages.. it tells me that the server encountered an error processing registration please try again later.. what could be wrong

    This could be a complicated problem to solve, as there are many possible causes for it. Test after taking each of the following steps that you haven't already tried. Back up all data before making any changes.
    Before proceeding, test on another network, if possible. That could be a public Wi-Fi hotspot, if your computer is portable, or a cellular network if you have a mobile device that can share its Internet connection. If you find that iMessage works on the other network, the problem is in your network or at your ISP, not in your computer.
    Step 1
    Check the status of the service. If the service is down, wait tor it to come back up. There may be a localized outage, even if the status indicator is green.
    Step 2
    Sign out of iMessage on all your Apple devices. Log out and log back in. Try again to sign in.
    Step 3
    Restart your router and your broadband device, if they're separate. You may have to skip this step if you don't control those devices.
    Step 4
    From the menu bar, select
     ▹ About This Mac
    Below the "OS X" legend in the window that opens, the OS version appears. Click the version line twice to display the serial number. If the number is missing or invalid according to this web form, take the machine to an Apple Store or other authorized service center to have the problem corrected.
    Step 5
    Take the steps suggested in this support article. If you don't understand some of the steps or can't carry them out, ask for guidance.
    Step 6
    From the menu bar, select
     ▹ System Preferences ▹ Network
    If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. If the box marked SOCKS Proxy is checked, uncheck it. You don’t need to change any other settings in the window. Click OK and then Apply. Test.
    The result may be that you can't connect to the Internet at all. Revert the change if that happens, or if iMessage still doesn't work. Remember that you must Apply any changes you make in the preference pane before they take effect.
    Step 7
    Select from the menu bar
     ▹ System Preferences… ▹ Flash Player ▹ Storage
    and click
    Block all sites from storing information on this computer
    Close the preference pane.
    Step 8
    Make sure you know the ID and password you use with iMessage. Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Use the search box in the toolbar of the Keychain Access window to find and delete all items with "iMessage" or "com.apple.idms" in the name. Log out and log back in.
    Step 9
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    If iMessage worked in the guest account, stop here and post your results.
    Step 10
    Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you start up, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. After testing, restart as usual (i.e., not in safe mode) and test again.
    If iMessage worked in safe mode, but still doesn't work when you restart in "normal" mode, stop here and post your results.
    Step 11
    Reset the NVRAM.
    Step 12
    Reinstall OS X.
    Step 13
    If none of the above steps resolves the issue, make a "Genius" appointment at an Apple Store, or contact Apple Support.

  • I can only send messages to other iPhones and I am not allowed to make or receive calls

    I can only send messages to other iPhones and I am not allowed to make or receive calls at all not even iphones.

    You must have a SIM card installed ( if applicable ) and have your iPhone activated to make calls or text mobile phones.

Maybe you are looking for