How to reconnect in case of a JMS connection lost

If JMS connection is lost during the exceution of the program, how to reconnect to the destination.
please help me.
thanks in advance.

BTW, SJS MQ (The MQ with the J2EE Reference Implementation) also supports that.
If you are using a queue, you should not loose messages. This is what the JMS spec is all about. If you are using a topic (message broadcast) then you would need to set the client as a durable subscriber, this way, if the client is not connected, the messages are kept for him to come back.
Another point, if the connection is lost because the message broker went down, then all messages that were not consumed on that destination are lost, if they were not persisted.
If the messages are persisted then you should have all the messages still available when you restart the broker and reconnect to it. Now since brokers try to be smart about persisting and minimise the disk I/O, you need to learn how the persistence of your broker works, and make sure you configure it to the performance/reliability balance you require for your application.
TE

Similar Messages

  • How to reconnect without using the "keep alive" plug-in?

    How do we issue a reconnect in SQL Developer? Has anyone figured out how to reconnect without having to disconnect, then connect again?
    Since SQL Developer takes SQL*Plus commands, I figured I could use "connect user@instance", but that doesn't work.
    Help! Is there a request for enhancement for this one?
    We are on Oracle 11gR1 (11.1.0.7) and SQL Developer 3.0.0.4 Build MAIN-04.34.
    Thanks,
    Alex.

    In 3.1 EA3, the context menu for a connection now contains a Reconnect option, just below Disconnect. It should become enabled only when a shared connection established for a worksheet / object viewer is broken. It should work for both Oracle and supported non-Oracle connections. Upon reconnect, a dialog will appear warning the connection has been reset.
    Some limitations:
    1) There is no UI to reconnect a broken connection for an unshared worksheet.
    2) Components other than worksheets and object viewer tabs using a shared connection may not function properly after reconnect.
    3) An example of (2) is the Schema Browser. It is necessary to close and reopen it after the connection it shares has been reconnected.
    Reconnect has been tested on Windows and Linux, on Oracle and MySQL, by shutting down/restarting the database, by saving/restoring the machine state of a VM running the database, by physically disconnecting/reconnecting the machine running the database from the network, and by ALTER SYSTEM KILL SESSION. It has not been tested with any sort of firewall or database session timeout, however.
    We hope this minimal implementation will cover the majority of use cases.
    Regards,
    Gary
    SQL Developer Team

  • Maximum JMS Connections

              Hi,
              I would like to know what is the maximum JMS connections weblogic server can
              handle anytime. And where do we set this parameter? we have a group of Message
              Listeners listening to a Queue on weblogic by opening JMS connections at the same
              time. So I was wondering how many JMS clients can Weblogic handle?? And also does
              it impact the performance of weblgic server.
              Thanx,
              Sankas
              

              Thanks for the information guys. It was very helful.
              -Sankas
              Tom Barnes <[email protected]> wrote:
              >Each remote JVM to the WL server multiplexes network calls over a single
              >socket
              >connection, and each remote JVM may have many JMSConnections into the
              >WL server. A
              >single server can support thousands of remote JVMs, and tens of thousands
              >of
              >JMSConnections -- even with the default thread-pool sizes. Clustering
              >and
              >distributed destinations can help one scale higher. Of course, performance
              >and
              >scalability are highly application and hardware dependent, and the best
              >thing to do
              >is create a benchmark that emulates your particular apps characteristics
              >and see
              >how it scales...
              >
              >Tom, BEA
              >
              >Sankas wrote:
              >
              >> Shean,
              >> I did not have anything in mind. But if you see the weblogic console
              >there
              >> is a default parameter "JMS Thread Pool Size = 15" under the Server
              >section in
              >> the services/JMS Tab .
              >> I thought this was the JMSConnections count in the server.
              >> Well I think it would be good to know how far can we go
              >> with the JMS connections thing.
              >>
              >> Thanx,
              >> Sankas
              >>
              >> "Shean-Guang Chang" <[email protected]> wrote:
              >> > It will depend on the memory resource you used for the JVM (both
              >WLS
              >> >server
              >> >and client). There is no design limit for this. Do you have a number
              >> >in
              >> >mind?
              >> >"Sankas" <[email protected]> wrote in message
              >> >news:[email protected]...
              >> >>
              >> >> Hi,
              >> >> I would like to know what is the maximum JMS connections weblogic
              >> >server can
              >> >> handle anytime. And where do we set this parameter? we have a group
              >> >of
              >> >Message
              >> >> Listeners listening to a Queue on weblogic by opening JMS connections
              >> >at
              >> >the same
              >> >> time. So I was wondering how many JMS clients can Weblogic handle??
              >> >And
              >> >also does
              >> >> it impact the performance of weblgic server.
              >> >>
              >> >> Thanx,
              >> >> Sankas
              >> >
              >> >
              >
              

  • Trying to reconnect airport express to time machine but express not showing up in base station.  unfortunately clicked forgot in airport utility and express no longer shows up.  how to reconnect?

    trying to reconnect airport express to time machine but express not showing up in base station.  unfortunately clicked forgot in airport utility and express no longer shows up.  how to reconnect?

    I would recommend setting the wireless encryption on the AirPort Express BEFORE configuring it for the AirPort Extreme in this case. This issue also comes up often when configuring AirPorts into a WDS.
    If setting up security in my recommend order does not work, temporarily connect the Express by Ethernet to the Extreme; make the security changes, and then, move the Express back to the desired location.

  • How WebLogic7.0 & 8.1 JMS connect to MSMQ?

              Hi Sir,
              Is it possible that i use WebLogic JMS connect to MSMQ(Microsoft)?
              If it possible, how can i configure/implement ? Do I have to create adapter class
              for MSMQ?
              Thanks
              Yos
              

    You may be able to find a JMS wrapper for MSMQ (search
              google), in which case you can integrate using the same
              methods as for any other JMS vendor.
              Another option is to use the the WL JMS C client
              within a MS program, or even to use "ActiveJMS"
              .net wrapper from sourceforge to wrap WL JMS
              within a MS program.
              Another option is to call into MS (or vice-versa)
              using WL's JCOM feature.
              Another option is to integrate using web services -
              which is the method often pushed by MS.
              "weblogic.developer.interest.webservices"
              Another option is to consult the WLI newsgroup,
              "weblogic.integration.developer" to see if WLI
              has pre-built MSMQ adapters.
              Tom
              Yos wrote:
              > Hi Sir,
              > Is it possible that i use WebLogic JMS connect to MSMQ(Microsoft)?
              > If it possible, how can i configure/implement ? Do I have to create adapter class
              > for MSMQ?
              > Thanks
              > Yos
              

  • How to reconnect to a database if connection is lost during execution

    How to reconnect to a database if connection is lost during execution of the program.
    Please help me.
    thanks in advance.

    First close the old connection with "connection.close();" Catch all exceptions in case close() fails. Then open a new connection just like you opened the original one.

  • How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column

    Please Help!!!
    How to write a case statement for the totals column of two different years (2013 and 2014) of the same month so that I can get a +/- column.
                                      January 2014         January
    2013                            +/-
                    Region   Entry   Exit  Total    Entry   Exit   Total   (Total of Jan2014-Total of Jan2013)
                    A               2         3      
    40        5       7        30                    40-30= 10

    What is a table structure? Sorry cannot test it right now..
    SELECT <columns>,(SELECT Total FROM tbl WHERE Y=2014)-(SELECT Total FROM tbl WHERE Y=2013)
    FROM tbl
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to use a case ststement in interface?

    how to use a case statement in interface?
    My requirement is in interface for one column for
    Eg: In source column if a.b=c.d then i need to write as "Source"
    else when a.c=d.e then i need to write as "Target".
    please can you help in solving this.
    Regards,
    Sridhar

    You will literally write in the "Implemenation", the following:
    Case when a.b=c.d then "Source"
    Else
    "Target"
    End

  • Keeping count of how many times a case structure has been entered.

    I have a "Case" structure (when a button is pressed, it is "case True").
    I want to keep track of how many times this "case True" has been entered.
    How can I do this?
    Solved!
    Go to Solution.

    For that you need to have a shift register or a feedback node and keep counting whenever the case structure case is executed the count will be increased by one see the attached snippet.
    Good Luck
    The best solution is the one you find it by yourself
    Attachments:
    CaseStructure count.png ‏10 KB

  • How to find out status of JMS Connection ( connected or closed )

    Is there a way to find out the status ( connected or closed ) of JMS Connection at any point of time . JMS Connection interface doesn't seem to have any isAlive( ) sort of method ?
    I'm using a shared instance JMS Connection and if someone calls connection.close() on this instance the code starts flunking.

    Crap isn't it! Would also be useful for creating a JMS connection pool, or for testing connections that stay open for time time and may be closed by network problems etc.
    I can think of a couple of options (haven't tested them so may be flawed)
    1. Extend your vendors QueueConnectionFactory object to return a decorated Connection, which adds an isAlive() method and records internally whether someone has called .close(); This could be tricky if you use JNDI to retrieve the QCF - you'll have to bind your custom QCF and remove the old one. Much easier if you use a bean factory like Spring.
    2. You may be able to do this with the underlying vendor's API. If you choose this option put all the vendor specific code in a separate class and abstract it behind an interface. In future if you change to a JMS provider that does not support this feature, you can always change your isAlive() method return true no matter what;
    3. Wrap the JMS sender / receiver in an Adapter class. The adapter delegates send / receive methods to the wrapped class, but if it receives a JMS exception will reconnect and try again. A second JMS Exceptions should be thrown back to the client. All your client code sees is a single send / receive method as if it was using a normal JMS sender / receiver.

  • I lost my connection when I was using internet and when I want to reconnect to airport it give me connection timeout error, I changed my password on router but still doesn't work. How can i fix my problem?

    Hi,
    I lost my airport connection when I was using internet and when I wanted to re-reconnect to airport it gave me connection timeout error, I changed my password on router but still doesn't work. How can i fix my problem?

    Hello there hastibahreini,
    It sounds like you were using your Wi-Fi network from your Airport base station and the connection cut out. You have reset the password on the device but the issue persists. I would try the 3 resets outlined in the following article in order to help resolve the issue. If it persists, is the Wi-Fi connection issue happening on more than one device or computer?
    Resetting an AirPort base station FAQ
    http://support.apple.com/kb/ht3728
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How to use the cases in button action?

    Hi Experts,
    I want to get a prompt message if the field is empty.I got it but at the same time if the field is filled I want the other action to be performed that is to call a BAPI and give me output.How can I give two events for the same action.
    How to use the cases in button action?
    So, please guide me.Urgent need
    Regards
    Nutan

    Hi Nutan,
    if I understand you, then you have a simple validation. Therefore you can use the validation functionality of VC for your components. An alternative could be by writing a new ABAP RFC function module like:
    BAPI Input parameters as input and BAPI output parameters as output and an additional return code or string for a message:
    IF I_FIELD IS INITIAL.
      E_RETURN_CODE = "THE FIELD IS EMPTY."
    ELSE.
      CALL FUNCTION <YOUR_BAPI>
      <BAPI PARAMETERS>
    ENDIF.
    I hope that helps.
    Best Regards,
    Marcel

  • How to set ApplIndentityData header field in JMS adapter

    Hi Guys ,
        I have one requirement for update the field in SAP JMS header. I am using transport protocol for IBM Websphere MQ in JMS adapter.
    While sending data to IBM Websphere MQ Queue via JMS Adapter, need to set the field called ApplIndentityData with the appropriate value which is populate to a MQHRF2 header of a message.
    So, regarding that where will do it? Means JMS receiver adapter or IBM MQ level. If JMS receiver adapter, I think using ASMA, So please guide me how to set this filed value in JMS adapter or share any document you have.
    Thanks & regards
    Vijaykumar S

    Hi RejaSekar,
           I reffered your blog and did the below settings in JMS module and ASMA settings. 
    1) Changed the mode for u201CJMS-Complaintu201D instead of u201CWebsphere MQ(non JMS)u201D
    2) Additional JMS message properties tab created below property name and java type.
           LocalName    --> String
           Partname      -->  String
    3) In module parameter tab added the below module name and key
        AF_Modules/DynamicConfigurationBean   -->  LocalEnterpriseBean  -->  RFH2HEADER
    4) Under parameter Tab
         RFH2HEADER       -->   key.0      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER       -->   key.1      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER      -->  value.0    -->    LocalName
         RFH2HEADER      -->  value.1    -->    PartnerName
    Kindly check the above settings whether this is correct or wrong. If anything wrong please let me know what we need to change JMS receiver adapter.
    Actually my requirement is need to set these parameters and set the value to that parameters and pass in to /usr folder of a WebsphereMQ message.
    Kindly check and help me out.
    Thanks & regards
    Vijayakumar S

  • HOw to test the jms connection?

    HI all,
    how to test the jms connection in xi?
    regards
    kish

    HI,
    We can see the JMS sender or reciver side .. in RWB .. see  communicaiton channel mononitoring,., also..
    We can access it through browser.. it depends upon the proocol type .. like sonic or webspeare MQ..or ...
    see below links
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/886a3c3a860657e10000000a114084/frameset.htm
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    content conversion https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/97171dd3-0401-0010-5195-b43f556e6ce9
    Chilla

  • How to obtain a case number for License transfer process

    How to obtain a case number for License transfer process.

    Good to know - Here you have the user-2-user forum for "Adobe Reader".
    For anything "License" related you will want to be using the "contact" feature to meander about until you can get a "licensing work group" point of contact.
    The path starts here:
    Contact Customer Care
    Be well...

Maybe you are looking for

  • Error while transporting Datasources in Production

    Dear All, I have facing a problem while transporting objects pertaining to BI Cockpit in Production. Earlier I had transported all the obects (in more than one transports) in Quality (from Development). After testing the objects, I had imported the s

  • HELP! HELP! Please.... Cannot send email via SMTP....

    Hi, Not posted here before but this really is a last ditch attempt to get my email working. I'm at my wits end with this. I reported a problem that I could not send mail via SMTP (with Outlook) last December (2014). I kept getting a message from the

  • Problem in installing Adobe flash player...

    I am trying to instal Adobe Flash Player 11.7.700.169 (16.7 MB) this version but getting "Actionlist not found" this error, where the real problem might be pls help me out...

  • How to shop the global store

    I'm finding iTunes quite frustrating at the moment.  I live in the UK and like Japanese music. Some Japanese music is a available on iTunes UK, but bands like Glay (probably best described as the U2 of Asia) isnt available, yet on ping I am able to f

  • Sims on macbook pros

    Will the game Sims cause problems on my macbook pro?