If the JMS server is down......

If the JMS Server is down when the java application client is sending a message to the server, how can I save this message in order to send it when the server has restarted?
If you have some good solutions, please tell me and we can discuss them! Thanks......

Your solution depends a lot on the JMS provider you're using. Some providers support clustering, such that your client will transparently send to which ever server in the cluster is available. However, clustering in a messaging system typically has different semantics than what you might be used to (or expect). You need to carefully study your provider's documentation to see if it fits your requirements.
Your provider might also support message routing. Then you can use a local server, which resides on the same machine as your client. The local server will forward to a remote server when ever that server is available. This is basically store and forward. Some providers allow you to start the server in-process with the client, so you get store and forward where's it's guaranteed that if the client is up so is the server.
- Bjarne.

Similar Messages

  • How the JMS client detect if the JMS server is still running?

    I have a JMS server running on Weblogic and a JMS client running as a standalone application on my local machine. I ran into the problem that if the JMS server is down for a period of time and then get re-started, the JMS client will lose its connection to the server. Since JMS client is just passively listening to the topic it subscribes, it will have no information about the status of the JMS server. Therefore it will not be able to receive any new message if the JMS server is restarted.
    I wonder if there is a way I can have the JMS client automatically detect if the connection to the server is lost or reset. I tried to use a while loop in JMS client that does a JNDI loopup every minute to check if the JMS server is up. But if the WL server is down, the JMS client will just catch an exception and crash.

    Hi,
    You should use an exception listener that allows a client to be notified of a problem asynchronously. As your client only consumes messages, it would have no other way to learn that its connection has failed.
    Hence, you should implement the interface ExceptionListener (let says MyExceptionListener) and define your reconnection logic in the method onException(JMSException exception). MyExceptionListener has to be registered with your connection with the method:
    public void setExceptionListener(ExceptionListener listener) throws JMSException
    Hope it helps,
    Arnaud
    www.arjuna.com

  • What is the right behaviour when jms server is down

    Hi,
    several jms implementation behave differently while trying to connect to the jms server which is not available or when the jms server is suddenly down in the middle.
    For example:
    iBus Mobile - handles reconnections internally, doesn't throw exceptions. I can only know that i am in the disconnected mode from ExceptionListener.
    ActiveMQ and openJMS throw exceptions when they can not connect to the jms provider or when the provider is lost in the middle
    Sun MQ has "number of reconnection" parameter which internally tries to reconnect "number" times and after that he throws exception.
    While the initial connection failure i can handle in while loop , busy waiting for successful connection, i can not handle the later case, when connection is lost in the middle.
    I thought that seemless reconnection is part of jms implementation.
    Our application requires smooth working even when there is no connection to jms.
    How to handle this issue? I think the behaviour of the most jms described is not so logical in terms of jms requirement.
    Slava.

    SwiftMq is a commercial product, also it also throws
    exception when the broker is not running. Yes, it is a commercial product and high quality. But transparent reconnect is disabled by default in SwiftMQ Router Standard (it is enabled by default in SwiftMQ High Availability Router), hence you get an exception. So always check the docs before you suggest wrong behavior.
    To enable transparent reconnect, check these links:
    http://www.swiftmq.com/products/router/swiftlets/sys_jndi/introduction/index.html
    ("JNDI Provider URL" to enabled transparent reconnect for JNDI)
    http://www.swiftmq.com/products/router/swiftlets/sys_jms/clients/remote/reconnect/index.html
    Since this is a general JMS forum, you might use the SwiftMQ forum if you have specific questions:
    http://www.nabble.com/SwiftMQ-JMS-Forum-f15660.html
    But keep in mind that SwiftMQ costs money. It is not for free.
    I think only iBus is the one who implements
    transparent connection and reconnection for 100%Haven't heard from them a couple of years. Are their business still operating? At least their message server wasn't updated since a couple of years.
    -- Andreas

  • Deployment of Web Application when the managed Server is down .....

    Part of our installation, we want to deploy our web application on to a managed server.
    So, we use the JMX API calls to deploy the web application. But, at the time of this deployment the managed server is not brought up. So, our expectation was that when the managed server is brought up later, it will automatically STAGE the web application from Admin Server and then, deploy it in the managed server.
    But, what is happending is that the web application is not being deployed to the managed server (even though the web application is configured to be deployed in the specified managed server in the config.xml and it is set as the default application of the managed server application).
    We are using WebLogic 7.0 SP2 on RedHat Linux 7.2.
    Can anyone help to deploy web application on to a managed server when the managed server is down ?
    Thanks,
    Selva-
    [att1.html]

    This is currently being fixed in 7.0 line, contact [email protected] and reference
    CR110687
    Cheers
    mbg
    "Selvamohan Neethiraj" <[email protected]> wrote in message news:[email protected]..
    Part of our installation, we want to deploy our web application on to a managed server.
    So, we use the JMX API calls to deploy the web application. But, at the time of this deployment the managed server is not brought up. So, our expectation was that when the managed server is brought up later, it will automatically STAGE the web application from Admin Server and then, deploy it in the managed server.
    But, what is happending is that the web application is not being deployed to the managed server (even though the web application is configured to be deployed in the specified managed server in the config.xml and it is set as the default application of the managed server application).
    We are using WebLogic 7.0 SP2 on RedHat Linux 7.2.
    Can anyone help to deploy web application on to a managed server when the managed server is down ?
    Thanks,
    Selva-
    [att1.html]

  • The application server is down at this time

    I am getting the following error message when I try to access PeopleSoft via PIA:
    "The application server is down at this time.
    CHECK APPSERVER LOGS. THE SITE BOOTED WITH INTERNAL DEFAULT SETTINGS, BECAUSE OF: bea.jolt.ServiceException: Invalid Session"
    1. In configuration.properties file, PTWEBSERVER password is encrypted, the userID is not locked-out, even the table PSOPRDEFN says the password is encrypted
    2. I tried using IP address and computer name in configuration.properties file, both the ways I am not able to resolve the issue
    If you have any ideas please let me know.
    Jay Tedla

    Might sound silly , but stop webserver and appserver . Boot appserver , boot webserver using startpia.cmd to see if webserver can communicate with appserver.

  • Adobe captivate data not sending at the end of webinar. Is the adobe server still down?

    Adobe captivate data not sending at the end of webinar. Reads "unknown error." Is the adobe server still down? This has been ongoing all of july 2014.

    So the engineer came and, of course, everything was working ok. He did fit some kind of RF filter on my main socket, and 'changed the pair' on one of the outside cables. Since then, I've only had a noisy line once, and seem to have been connected for 3 days solid, which is a record!
    I've switched back to my BT Home hub 3, which guavas me more stats. The line has previously given me up to 6mb/s, now only getting 1.6.
    Do you think, now the line seems more stable, with the stats below I should be able to maintain a higher speed now?
    Thanks
    Line state: Connected
    Connection time: 3 days, 02:19:39
    Downstream: 1.601 Mbps
    Upstream: 444.9 Kbps
    ADSL Settings
    VPI/VCI: 0/38
    Type: PPPoA
    Modulation: G.992.3 Annex A
    Latency type: Interleaved
    Noise margin (Down/Up): 17.7 dB / 22.6 dB
    Line attenuation (Down/Up): 44.8 dB / 27.0 dB
    Output power (Down/Up): 18.6 dBm / 12.6 dBm
    FEC Events (Down/Up): 3144673 / 0
    CRC Events (Down/Up): 14434 / 38
    Loss of Framing (Local/Remote): 0 / 0
    Loss of Signal (Local/Remote): 0 / 0
    Loss of Power (Local/Remote): 0 / 0
    HEC Events (Down/Up): 111873 / 10
    Error Seconds (Local/Remote): 1011 / 4

  • Hello my phone will not activate due to the activation server being down what can i do

    hello i just updated my iphone 3gs and i get this message saying that the activation server is down try again later and i put my sim card in and my sim card says searching  i dont know what to do can someone please help me

    has your device ever be jail broken or hacked

  • Basically my fone just decided to say invalid sim so by looking on the internet ive restored my device, after doing this it still came up with no service and invalid sim, itunes say that the activtion server is down at the mo, i wanted to know wen the act

    Basically my fone just decided to say invalid sim so by looking on the internet ive restored my device, after doing this it still came up with no service and invalid sim, itunes say that the activtion server is down at the mo, i wanted to know wen the activtion server will be back online and will it solve my problem with no service and invalid sim error

    I was quite surprised by that. And I've been off for a little because I've been giving final exams at the college where I work. Now with break I will be spending a little more time on here until I have to start getting ready for the Spring semester. I have experienced a couple of interesting posters in the past week though. I wa afraid one was going to reach through the CAT 5 and grab me around the neck.

  • Getting the below error while using the JMS server.

    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160064> <There was an error while making the initial connection to the JMS resource named EMSTopicFactoryNonXA from within an EJB or a servlet. The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory EMSTopicFactoryNonXA failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160082> <There was an error while making the initial connection to the JMS resource named com/lehman/fit/ice/agg2/TopicConnectionFactory from the EJB "Agg2BatchBean" inside application "Agg2". The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory com/lehman/fit/ice/agg2/TopicConnectionFactory failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    Note:-weblogic version 9.1sp0
    Please suggest me how to resolve the above exception.

    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160064> <There was an error while making the initial connection to the JMS resource named EMSTopicFactoryNonXA from within an EJB or a servlet. The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory EMSTopicFactoryNonXA failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160082> <There was an error while making the initial connection to the JMS resource named com/lehman/fit/ice/agg2/TopicConnectionFactory from the EJB "Agg2BatchBean" inside application "Agg2". The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory com/lehman/fit/ice/agg2/TopicConnectionFactory failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    Note:-weblogic version 9.1sp0
    Please suggest me how to resolve the above exception.

  • How to not run a gateway instance if the target server is down

    I have a DirectoryWatcher gateway instance that runs every 10
    min looking to do a series of actions when a file is added to a
    directory on another server. This other server is down periodically
    and my gateway instance fails. Then when the server comes back up,
    I have to restart the gateway because it has failed. How do I tell
    the gateway instance to not run if the server it is looking at is
    down or the directory in this case is unavailable?

    listeners have a timeout period.  if the target computer is going through a reboot cycle, the downtime should be short enough that you can setup a timeout.  Set one that is long enough so that you do not trigger a failure event, and the timepsan allows for the target server to come back online before the timeout expiration.
    Another way that is more robust is to create a seperate application, perhaps one built on Visual Studio or even a scripthost that does a simple ping of the destination server every 10 seconds or so.  When the server is not found, you can do a shutdown of your CF.    (you can shutdown any application from another application).   Once you can re-ping the server, relaunch your gateway listener.  If the listener cannot support what you want to do, just write another program that will perform your logic for you.
    People have it within them to change
    Proud user of Adobe products, and webmaster of the Theravive counselor network , built on Dreamweaver, and Photoshop.  Toss in a little Visual Studio, but who's keeping score!

  • JMS server shuts down when quota_threshold reached

    Hi,
    Using weblogic 10.3.2. We are using WLS JMS Queues and are having the below issue. We are using filestore as a persistence during peak times huge number of messages are queued and the space on the disk gets filled up where no more messages are able to be persisted but some how WebLogic keeps accepting the messages and we end up restarting the servers to make sure messages starts getting processed. Is there a way if the space on the disk gets full we don't accepts any messages in the queues and once the space gets available start accepting the messages over again. Is there any out-of-the-box functionality available that it automatically detects this kind of behavior and WLS JMS to stop eccepting the new messages till have enough space.
    <There was a failure while performing paging I/O
    weblogic.messaging.kernel.KernelException: Error writing messages for paging
    at weblogic.messaging.kernel.internal.PagingImpl.performPagingIO(PagingImpl.java:578)
    at weblogic.messaging.kernel.internal.PagingImpl.run(PagingImpl.java:488)
    Caused By: weblogic.store.PersistentStoreException: [Store:280019]There was an error while writing to a file store file
    at weblogic.store.io.file.Heap.multiWrite(Heap.java:479)
    at weblogic.messaging.kernel.internal.PagingImpl.performPagingIO(PagingImpl.java:576)
    at weblogic.messaging.kernel.internal.PagingImpl.run(PagingImpl.java:488)
    Caused By: java.io.IOException: Error writing to file, No space left on device, errno=28
    at weblogic.store.io.file.direct.DirectIONative.write(Native Method)
    at weblogic.store.io.file.direct.DirectFileChannel.write(DirectFileChannel.java:173)
    at weblogic.store.io.file.StoreFile.write(StoreFile.java:255)Thanks

    Thanks for the info but the question is how do I know what quotas to set. So the one getting the above error weblogic jms should stop taking any messages until there's enough space available. As currently it keeps accepting the messages and we den up restarting the servers.
    Currently under JMS Server configurations everything is set to -1 and in connection factory timeout is set to 10 ms.
    Thanks

  • Role of the JMS server

    Sorry for posting this kind of question, but after reading several times BEA documentation regarding JMS and clustering, I still do not understand the purpose of a JMS server.
              Questions:
              1. What is really a JMS server for? What is its purpose?
              2. Do I need to create and deploy one JMS server per node in a cluster, or I just need one?
              Thank you for your assistance.

    While a DD is location transparent within a cluster, no matter which nodes it runs on, a DD is not required to get location transparency. Any physical destination with a JNDI name is transparently accessable from any server in the same cluster, or any remote client connected to any server in the same cluster - just by looking up the JNDI name. This works the same way other JNDI advertised resources work (EJBs, JDBC connections, etc.)
              A DD is useful for load-balancing, performance, and high-availability. It does this by providing a virtual destination that consists of multiple physical destinations. There is usually little point in a DD that only consists of a single destination, or that has all of its destinations on a single host machine/WL server. To get the full use out of a DD, configure a JMS server on more than one cluster node, and configure the DD to use a physical destination on each one.
              Whether or not you choose to use a DD is application specific. I estimate that the majority of applications don't, but performance sensitive applications, or apps that have high HA requirements typically do. Note that DD apps must typically be able to tolerate out-of-order message processing due to the very nature of DDs (WL 9.0s unique "unit-of-order" feature is designed to address this issue).
              Tom

  • How long will the iCloud server be down?

    Apple says the server is down, but that it should have been back up by noon.  It's still out.  Anybody else having this problem?

    The Apple Support Page, http://www.apple.com/support/icloud/systemstatus/  says there are <1% of users affected and
    "01/08/2012 09:43 PST
    Users may be unable to access Mail. Service is expeted to be restored by 8pm PST today.
    All messages will be delivered at that time."
    As I reply (01/08/2012 05:46 pm CST) we still have about 4 hrs (if I haven't screwed up the time zone conversion) to wait.

  • My iPad 2 on iOS 6 can't activete, the activation server is down?

    Hello
    I upgradet my iPad 2 to iOS 6 yesterday, the upgrade went well, but after the upgrade several of the app's on the iPad did not work. (Starts up and shots down again!)
    Then i tried to restore the iPad again, it looked to work OK, but it can't activate, i get an error messages saying that the activation server is not availabel.
    Any boby else with the same problem?
    PS: I have tried activation over iTunes with the same result!
    Best regards
    Martin

    Have you fixed the issue we have exactly the same problem? Thank you

  • I cannot access itunes store from itunes. Is the site server still down?

    I cannot access itunes store on itunes. Is the server still down?

    Hey fanilow12,
    The article linked below details a number of troubleshooting steps that can help restore your ability to connect to the iTunes Store.
    Can't connect to the iTunes Store
    https://support.apple.com/en-us/HT201400
    Regards,
    Allen

Maybe you are looking for

  • How do I get the Next Button to appear on a form?

    I have a form built off of a view. I pass a parameter from a report through a link to launch the form with the appropriate values. I would like user to then be able to navigate to the next set of information from the report without having to navigate

  • HP envy 5530 - how to print in black ink only

    How do I print in black and white only on my Ipad? i am using air print and it prints in color This question was solved. View Solution.

  • White screen - Laptop doesn't recognise own display as default

    Hi all, I've had a search on the forum for the same issue but there doesn't seem to be any issue exactly matching this, so posting. I bought an IdeaPad Flex 14 about 9 months ago. It was fine up til about 6 months ago. Then it started to boot to a wh

  • Struts file upload and download

    hai, Am new to struts...my specification is onclick of button i should open a filedialog box ,from where we will select a document.am able to do this and am able to get file name , size,type using formfile in action class.but i dont know how to uploa

  • How do i integrate GMail into Enterprise Portal using a URL iView?

    Hi, Can some one tell me ohw i can integrate GMail or any other Mail into portal using URL iView or any other iView?