Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4449842

UnsolicitedNotificationListener does not get exception when connection closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • sparc
    • solaris_2.6

      While waiting for an event notification, if the connection is closed by the
      server (or the client), the listener is notified via its namingExceptionThrown()
      method. However, this doesn't happen for UnsolicitedNotificationListeners.
      If this were to happen for unsol listeners, then clients can use
      this as a general way to monitor the connection for liveness.

      Here is the customer's email.

      From: Steve Taylor <###@###.###>
      To: Rosanna Lee <###@###.###>
      Cc: Chris Reed <###@###.###>
      Subject: RE: Event Notification Question
      Date: Wed, 18 Apr 2001 12:50:06 +0100

      Rosanna, you might like to know that this doesn't happen for
      UnsolicitedNotificationListeners, only regular
      Object/NamespaceChangeListeners.

      Steve Taylor ###@###.###
      SCO, Vision Park, Cambridge, UK


      > -----Original Message-----
      > From: A mailing list for discussing Java Naming and Directory Interface
      > (JNDI) [mailto:###@###.###On Behalf Of Rosanna Lee
      > Sent: 26 March 2001 20:42
      > To: ###@###.###
      > Subject: Re: Event Notification Question
      >
      >
      > > Date: Mon, 26 Mar 2001 14:21:48 -0500
      > > From: Ron Aubin <###@###.###>
      > > Subject: Event Notification Question
      > > To: ###@###.###
      > >
      > > While waiting for an event notification, is there some way the
      > listener can
      > > determine if the directory service, that contains the event
      > source context,
      > > crashes or goes down?
      > >
      > > In other words, how does the listener know if the source
      > context no longer
      > > exists?
      > >
      >
      > The listener's namingExceptionThrown method will be called.
      >
      > _____________________
      > Rosanna Lee
      > Java Software, Sun Microsystems, Inc
      > ###@###.###

            rleesunw Rosanna Lee (Inactive)
            rleesunw Rosanna Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: