For which JMS exceptions do I have to reconnect?

Hi,
          I have a plain Java application that listens to a JMS queue on BEA WebLogic 7.0. I would like to automatically reconnect whenever it is necessary, e.g. in case of a restart.
          My question: Is it necessary to reconnect whenever an JMS exception is received in the ExceptionListeners of the Connection/Session?
          Or in other words: Can/Should I call the reconnect code (close session, close connection, connect again) on all exceptions that I receive in the listeners or are there some exceptions that can/should be ignored, e.g. there was some problem that is signaled to the listeners but the connection/session/queue is still working and reconnecting can be avoided?
          If so, how can the "serious" exceptions be determined? By the type (e.g. weblogic.jms.common.LostServerException)?
          Of course, I would like to avoid a reconnect, because it seems to be an expensive call.
          Thanks for any help,
          Peter

I think that except in the cases of multicast pub/sub "DataOverrun" and "SequenceGap" exceptions and applications that throw RuntimeExceptions or Errors from "onMessage()" , exception listeners exceptions are infrequent and, in my experience, pretty much always indicative of a true failure that requires reconnect (machine or server failure).
          Unfortunately, I don't think there is a way to distinguish application generated RuntimeExceptions/Errors from other JMS exceptions thrown to onException(). (Best practice, don't allow apps to do this.)

Similar Messages

Maybe you are looking for

  • Query  button in Master/Detail form

    Hello All, I created a Master / detail form...looks good for a blind query and for a specific column value... The problem is When the user selects query button ,how do I show records that the logged in user has created. Am already storing username in

  • MySites in read only mode.

    Hi, Our Office 365 MySites are in read only mode. I suspect that this could be due to an upgrade, however it has been long and the sites have not returned to edit mode. Is anyone else facing this issue?

  • How to handle optional elements in Simple Transformation

    Greetings! I'm working on an ST that needs to be able to serialize an ABAP itab to XML which may or may not contain certain elements depending on the customer to whom the file is being sent.  Additionally, we receive a file that uses the same schema

  • Lost SCA and want to modify code ?

    Hi, I've read Guenter Schiele's blog on "How to Migrate Developed Software Components to a New Release in NWDI" <a href="/people/guenter.schiele/blog/2007/02/12/how-to-migrate-developed-software-components-to-a-new-release-in-nwdi:///people/guenter.s

  • ASM in RAC database

    I couldn't find this thing any where.. Are there any mandatory initialization parameters that must be set to start ASM instance in RAC Database?