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

Similar Messages

  • How to show the ellipse found in the IMAQ shape detect to the image

    I have come out with the VI which had detected the ellipses. The ellipse result shown in the last part just only shows the number of matches and also the ellipses information. The problem is I wanted the ellipse found shown in the image to show where is the ellipse that detected in the LABVIEW but not only showing me the number of ellipse detected. Because I wanted to know the ellipse detected in the image provided that other shape is also in the image. Sorry for the bad English maybe I don't know use English to state my question correctly. Thank you for the helping I stuck in the last part to complete my task.
    PS: I have attach my VI and image that I used in below. The minimum score set it to 990 and it will show the result of 3 numbers of matches. Anyone know how to locate the 3 ellipse in the image? Thank you for the help
    Attachments:
    oval 1.jpg ‏25 KB
    testing.vi ‏51 KB

    Uploaded the wrong vi in the previous.
    This should have been the one uploaded.
    Sorry.
    Attachments:
    testing_1.vi ‏58 KB

  • SQL Error Data Flow Task 1: The buffer manager detected that the system was low on virtual memory...

    I'm relatively new to SQL and this is the error that appeared when I tried importing my data. Not sure how to deal with this. Help please. Thanks a lot!
    Information 0x4004800c: Data Flow Task 1: The buffer manager detected that the system was low on virtual memory, but was unable to swap out any buffers. 14 buffers were considered and 14 were locked. Either not enough memory is available to the pipeline
    because not enough is installed, other processes are using it, or too many buffers are locked.

    Either reduce the amount of data e.g. by lowering the Data Flow Task records max per batch and buffer size
    or install more RAM, or process on a more capable computer.
    Arthur
    MyBlog
    Twitter

  • Windows Server 2008 Server Manager - The WinRM Client Cannot Process the Request.

    Hello,
    I have recently purchased a Dedicated Server, and I have installed Windows Server 2008 R2. I want to use Server Manager because I don't really have that much experience with command line commands, so I wanted to use server manager, I can remotely connect
    to my server but when I use Server Manager I get the error "The WinRM Client Cannot Process the Request, if the authentication scheme is different from Kerberos..." I haven't set up a domain between my PC and the Dedi, as I do not know how/or know
    if this is applicable in this situation.
    Thanks for your time!
    Bill Gates Mate

    Hi,
    If you are using the non-domain management method, please refer the following article to add the trust host.
    The related article:
    Remoting Week: Non-Domain Remoting
    http://blogs.technet.com/b/heyscriptingguy/archive/2013/11/29/remoting-week-non-domain-remoting.aspx
    More third party article:
    The WinRM client cannot process the request. If the authentication scheme is different
    http://technico.qnownow.com/the-winrm-client-cannot-process-the-request-if-the-authentication-scheme-is-different/
    I’m glad to be of help to you!
    *** This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites;
    therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure
    that you completely understand the risk before retrieving any software from the Internet. ***
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • The install has detected that the primary IP address of the system is DHCP

    While trying to install Oracle 10g R2 on RHEL 5.4, I got following error during "Checking Network Configuration requirements"
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The install has detected that the primary IP address of the system is DHCP-assigned.
    Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses. However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly. See the Installation Guide for more details on installing the software on systems configured with DHCP.
    Can any one please help me resolving it. Thanks in Advance

    Nimish Garg wrote:
    during the installation configure the host to be localhost; 127.0.0.1please explain how and what is the effect ??
    also i wanted to know if I ignore this DHCP related warning, what will be the impact after installation on Oracle Software & DatabaseThe impact will be as in the warning that it gave you ... oracle will not function properly.
    It really doesn't matter if the server is "production" or not. A server needs a fixed IP adddress. The IP address is how other computers (and in some cases, processes on the same computer) locate the server. If the addess is DHCP, then you can never know what the address is because it can change. It would be like you changing your telephone number or email address every day, and still expecting people to be able to contact you.
    127.0.0.1 (aka 'localhost) is a fixed address, but it is also non-routable, which means no other machine will be able to contact this one by using that address. Every computer on the planet has that address. It means "me, myself, and I". A request to that address never leaves the machine from which the request originated.
    You stated earlier that "DHCP can't be changed to Static IP", but why not? Why can't your network guys allocate you a fixed IP address?

  • WINRM error : The WinRM client cannot complete the operation within the time spe cified

    Dear All
    Please find
    We have developed a management pack on RMS which is analyzing information from linux by using module with calling winrm.
    In mentioned module before calling winrm through netcat , the agent status will be controlled on target host.
    But this error on specific sles host will halt the executing workflow .
    This workflow will working successfully after couple of intervals and again the error coming up.
    Although the workflow is halting by the mentioned error a  task that used the same module is working fine without any error on that host and
    This workflow is running on other instances of the discovered class correctly
    (on SLES hosts sles11 and sles10 64bit) .
    Error :
     The WinRM client cannot complete the operation within the time spe cified. Check if the machine name is valid and is reachable over the network and  firewall
    exception for Windows Remote Management service is enabled. Error number:  -2144108250 
    The WinRM client cannot complete the operation within the time specified. Check if the machine name is valid and is reachable over the network and firewall exce ption for Windows Remote Management
    service is enabled.
     Linux host :
    SLES 10 32 bit
    SP2

    Hi,
    Any error or warning for the operation manager log under event viewer?
    Based on my research,
    Possible Causes for this issue:
    The host is unreachable due to incorrect name resolution, network outage, or
    host outage
    A network or host-based firewall is blocking TCP port 1270 connectivity to the target host
    Resolutions
    Verify that Management Server can ping the agent host by Fully-Qualified
    Domain Name
    Verify that no network firewalls or host firewall is blocking TCP port 1270
    In addition, check whether you have heartbeat failures in your environment for linux, if so, please go through the below link:
    OpsMgr: UNIX/Linux Heartbeat Failures After Applying KB2585542
    http://operatingquadrant.com/2012/01/12/opsmgr-unixlinux-heartbeat-failures-after-applying-kb2585542/
    Hope this helps.
    Regards,
    Yan Li
    Regards, Yan Li

  • I can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • INS - 40416 the installer has detected that the version of

    Hi,
    While I 'm doing upgradation from 10.2.0.5 to 11.2.0.3 on Windows 2003 getting following Error.
    INS - 40416 the installer has detected that the version of the configured instance of Grid infrastructure is not compatible for upgrade to the release of Grid.
    Is there any configuration issue?
    Thanks
    Raja..

    user12159566 wrote:
    Hi,
    While I 'm doing upgradation from 10.2.0.5 to 11.2.0.3 on Windows 2003 getting following Error.
    INS - 40416 the installer has detected that the version of the configured instance of Grid infrastructure is not compatible for upgrade to the release of Grid.
    Is there any configuration issue?
    Please detail your env !!! You need be more specific... What you are trying to do .. Upgrade database or clusterware?

  • If I've installed an app from the app store and the author's distribution certificate expires, my app will still run or not? Thanks a lot.

    If I've installed an app from the app store and the author's distribution certificate expires, my app will still run in my device or not?
    For example in the case that the author won't renew the certificate itself, i guess his app will be removed from the app store; but what happens to the apps installed in the devices?
    Thanks a lot.

    The author's certificate is only used to authenticate the author when the app is uploaded to the app store.
    The app is then signed by Apple before being added to the app store.
    Nothing will happen to your app except you won't get any updates.
    Evertually, iOS upgrades could stop the app from working if you upgrade iOS beyond what the app supports.

  • How does ABAP client proxy determine the sender business system

    When we use ABAP client proxy to send a message in XI-SOAP format to the integration engine, how does the client proxy determine what is the sender business system, i.e. how does it know what value it should insert in the sender service field in the SOAP envelop.
    For example, at first, the business system X8A_105 corresponds to the technical system X8A_105, so when the client proxy sends out a message, the sender service is X8A_105. Then I delete the business system X8A_105 in the SLD, and create a new business system that is associated with the technical system X8A_105.when the client proxy sends out a message, the sender_service is still X8A_105, why?

    Hi Annie,
    Execute the following function module in your business system and see what name it returns..
    LCR_GET_OWN_BUSINESS_SYSTEM.
    You can always debug the code inside the above FM to find out how it gets the business system name...
    I think the issue should be related to cache. I would also suggest you to logoff from your business system and then login again.
    Regards,
    Sumit
    Message was edited by:
            Sumit Khetawat

  • How to determine client locale from the mail?

    How to determine client locale(language/country) from the mail(header)?
    I investigate that some mails have not got any content-language header...
    Also, If mail is in multipart , I cannot get it throught the contentType....
    e.g some header contain header like this: content-Type: "text/html; charset=Big5"
    but some are : content-Type: multipart/mixed; boundary......";
    So, how can I know the client locale?
    Thanks

    You should be able to get the charset from the content type, as u said. the reason some types don't have a charset, such as multipart/* types, is because they don't contain any content on their own! they only contain nested body parts, each of which should have a charset specified. you're gonna have to get the charset by following the mail structure recursively.

  • How to get the real client ip by the request header like asp/php,etc?

    I want to get the real client ip by request.getHeader("HTTP_X_FORWARDED_FOR"), who use the proxy server to access my site, the way asp/php using, however, I got nothing. Does jsp support the similar header from request, if yes, how to do?
    thanks for your tips.
    frederick

    I want to get the real client ip by request.getHeader("HTTP_X_FORWARDED_FOR"), who use the proxy server to access my site, the way asp/php using, however, I got nothing. Does jsp support the similar header from request, if yes, how to do?
    thanks for your tips.
    frederick

  • How to bind the java client stub and the C++ server's skeleton?

    hi, i'm currently working on a project which a java client invoke a C++ object.
    i've wrote the idl and compile it using idl2cpp and a object is created.
    then i try to compile my java client using vbjc Client. it was done without errors.
    but when i try to run the client (after i run the smart agent and the C++ server) using vbj Client, it promts error which fail to load the class Client.java
    and i've try to run my java client using jre (java Client), the program throws exception --> org.omg.CORBA.BAD_PARAM: minor code: 0 completed: No
    so, wat's wrong with my codes actually??
    it's urgent and i really need you all's help...
    thanks a lot...

    below is my code:
    TimeObject.cpp (C++ server)
    #include "TimeImpl.h"
    // USE_STD_NS is a define setup by VisiBroker to use the std namespace
    USE_STD_NS
    int main(int argc, char* const* argv)
    try {
    // Initialize the ORB.
    CORBA::ORB_ptr orb = CORBA::ORB_init(argc, argv);
    /* // Initialize the BOA
    CORBA::BOA_ptr boa = orb->BOA_init(argc, argv);
    // Create the Time object
    POA_Time::TimeSetting timesetting = new TimeSettingImpl("My TimeSetting");
    // Export the newly created object
    boa->obj_is_ready(timesetting);
    // Ready to service requests
    boa->impl_is_ready(); */
    // get a reference to the root POA
    CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
    PortableServer::POA_var rootPOA = PortableServer::POA::_narrow(obj);
    CORBA::PolicyList policies;
    policies.length(1);
    policies[(CORBA::ULong)0] = rootPOA->create_lifespan_policy(
    PortableServer::PERSISTENT);
    // get the POA Manager
    PortableServer::POAManager_var poa_manager = rootPOA->the_POAManager();
    // Create myPOA with the right policies
    PortableServer::POA_var myPOA = rootPOA->create_POA("sntp_poa",
    poa_manager,
    policies);
    // Create the servant
    TimeSettingImpl timeServant;
    // Decide on the ID for the servant
    PortableServer::ObjectId_var managerId =
    PortableServer::string_to_ObjectId("TimeManager");
    // Activate the servant with the ID on myPOA
    myPOA->activate_object_with_id(managerId, &timeServant);
    // Activate the POA Manager
    poa_manager->activate();
    CORBA::Object_var reference = myPOA->servant_to_reference(&timeServant);
    cout << reference << " is ready" << endl;
    // Wait for incoming requests
    orb->run();
    catch(const CORBA::Exception& e) {
    cerr << e << endl;
    return 1;
    return 0;
    Client.java:
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    public class Client
         public static void main(String args[]) throws IOException, InterruptedException
              try
                   // Initialize the ORB
                   System.out.println("Initializing the ORB");
                   org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, null);
                   // Get the manager Id
                   byte[] managerId = "TimeManager".getBytes();
                   System.out.println("get the manager id");
                   // Locate an account manager. Give the full POA name and the servant ID.
                   Time.TimeSetting time =
                   Time.TimeSettingHelper.bind(orb, "/sntp_poa", managerId);
                   System.out.println("bind the object");
                   // Bind to the TimeSetting Object
                   //System.out.println("Binding to TimeSetting Object");
                   //Time.TimeSetting time = Time.TimeSettingHelper.bind(orb, "My TimeSetting");
                   SntpClient client = new SntpClient();
                   long Offset = client.synchronizeTime();
                   // Set offset
                   System.out.println("Setting offset to" + Offset);
                   time.offset((long)Offset);
                   // Set the system time
                   System.out.println("Setting system time");
                   time.SetTime();
              } catch (org.omg.CORBA.SystemException e)
                   System.out.println("System Exception");
                   System.err.println(e);

  • Why the SCCM client always corrupts the WMI repository?

    Hi All,
    I have a Configuration Manager 2012 R2 CU2 installation with hundred of client/servers.
    From the initial deploy of the SCCM client, we seen that many machines had a Windows slow logon process.
    We searched online for a fix and many people had this problem, suggesting to enable a registry key called
    HKLM\Software\Microsoft\CCM\Ccmeval\NotifyOnly.
    From that date, we fixed the slow logon process problem, but still have problems with operating system's updates installed with SCCM.
    In the most cases, when SCCM install updates, it corrupt the WMI database and at the OS reboot, the updates are rolled back.
    On the same machines, if we install updates from Windows Updates, we have no problems.
    Also, with SCCM installation, we see a lot of "DCOM" or "PerfLib" errors.
    Usually, the remote management of a client with SCCM doesn't works because the WMI repository is corrupted, so each time we need to do uninstall the SCCM client and do this:
    1. Disable and stop the WMI service.
         sc config winmgmt start= disabled
         net stop winmgmt
    2. Run the following commands.
         Winmgmt /salvagerepository %windir%\System32\wbem      (I noticed that you have run this command, but I would suggest that you try it again)
         Winmgmt /resetrepository %windir%\System32\wbem
    4. Re-enable the WMI service and then reboot the server to see how it goes.
         sc config winmgmt start= auto
    This is very frustrating.
    Why the SCCM client create all these problems and how to fix this?
    Thanks for your support.

    I think that my case is not isolate.
    There are a lot of posts like this:
    http://www.windows-noob.com/forums/index.php?/topic/8989-wmi-corruption-sccm-2012-win7-sp1/
    http://trevorsullivan.net/2012/11/21/configmgr-2012-ccmeval-exe-causing-client-corruption/
    The strange thing is that the WMI corruptions only happens on machine where the SCCM client is installed, even if the machines is without any additional software (fresh windows installation).
    In the same time, I need to fix a ProfSvc bug (KB2617858) because the PC become unusable.
    Also, why it starts a WMI rebuild if I deploy the client with the "NotifyOnly" option (the registry key is fine)?
    So, basically, on a fresh windows machine, as it joins to the domain:
    1) the SCCM client install itselfs
    2) it starts to install several windows updates
    3) at the first restart, it try to rebuild the WMI and the ProfSvc bug appears
    May be that the problem is not the SCCM client itself, but a windows update deployed via SCCM client?

  • Can v use the same Client for setting the ALE ??

    Can i use the same client like 080 for my ALE configuaration ?

    Configuring is a Cross-Client(Client Independent) activity.
    Check whether you have necessary access/authorizations to Configure.
    This should be always done in Development client.
    Hope this helps.
    Regards
    Vinayak

Maybe you are looking for

  • Change default setting for ADD TEXT

    90%+ of the time I am adding a text box to a PDF file it is to add a comment reflecting the payment information on a bill I have paid.  I'd like to be able to change the DEFAULT settings for color, size and font.  I've not been able to find where tha

  • Getting started with DefaultFormatter

    I am trying to use a the setOverwriteMode method of DefaultFormatter class to control insert/ovrwriting a JFormattedTextField . However although the DefaultFormatter seems to be created I get a "package does not exist" error when I try to use the set

  • Error importing Javax.xml.parsers.*. what should I do?

    I can not import the javax.xml.parsers.*. could you please let me know what should i do? Thanks

  • Database Based Program

    So I've been tasked with a program that I believe is going to need to make use of a database.  Its not a complicated program, I'm just a bit hung up on the database itself (which will be created specifically for this application - though I'm not sure

  • Error When trying to add new user field to OCHH table

    Hi can you please check the following code ? I am geting an error "Ref count for this object is higher than 0" Dim RetVal, ErrCode As Integer         Dim ErrMsg As String         Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD         oUserFieldsMD = oC