Package org.jboss.jms.client

Examples of org.jboss.jms.client.Closeable


     
      // Cycle through the children this will do a depth first close
      for (Iterator i = clone.iterator(); i.hasNext();)
      {
         HierarchicalState child = (HierarchicalState)i.next();     
         Closeable del = (Closeable)child.getDelegate();
         try
         {
            del.closing();
            del.close();
         }
         catch (Throwable t)
         {
            if (trace)
            {
View Full Code Here


      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      Closeable endpoint = (Closeable)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      long id = endpoint.closing();
     
      return new ClosingResponse(id);
   }
View Full Code Here

      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      Closeable endpoint =
         (Closeable)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.close();
     
      return null;
   }
View Full Code Here

      this.sequence = is.readLong();
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      Closeable endpoint = (Closeable)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      long id = endpoint.closing(sequence);
     
      return new ClosingResponse(id);
   }
View Full Code Here

     
      // Cycle through the children this will do a depth first close
      for (Iterator i = clone.iterator(); i.hasNext();)
      {
         HierarchicalState child = (HierarchicalState)i.next();     
         Closeable del = (Closeable)child.getDelegate();
         try
         {
            del.closing(-1);
            del.close();
         }
         catch (Throwable t)
         {
           //We swallow exceptions in close/closing, this is because if the connection fails, it is naturally for code to then close
           //in a finally block, it would not then be appropriate to throw an exception. This is a common technique
View Full Code Here

      super.read(is);
   }

   public ResponseSupport serverInvoke() throws Exception
   {
      Closeable endpoint =
         (Closeable)Dispatcher.instance.getTarget(objectId);
     
      if (endpoint == null)
      {
         throw new IllegalStateException("Cannot find object in dispatcher with id " + objectId);
      }
     
      endpoint.close();
     
      return null;
   }
View Full Code Here

     
      // Cycle through the children this will do a depth first close
      for (Iterator i = clone.iterator(); i.hasNext();)
      {
         HierarchicalState child = (HierarchicalState)i.next();     
         Closeable del = (Closeable)child.getDelegate();
         try
         {
            del.closing(-1);
            del.close();
         }
         catch (Throwable t)
         {
           //We swallow exceptions in close/closing, this is because if the connection fails, it is naturally for code to then close
           //in a finally block, it would not then be appropriate to throw an exception. This is a common technique
View Full Code Here

/* 53 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 58 */     Closeable endpoint = (Closeable)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 61 */     if (endpoint == null)
/*    */     {
/* 63 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 66 */     endpoint.close();
/*    */
/* 68 */     return null;
/*    */   }
View Full Code Here

/* 56 */     this.sequence = is.readLong();
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 61 */     Closeable endpoint = (Closeable)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 63 */     if (endpoint == null)
/*    */     {
/* 65 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 68 */     long id = endpoint.closing(this.sequence);
/*    */
/* 70 */     return new ClosingResponse(id);
/*    */   }
View Full Code Here

/*     */     }
/*     */
/* 299 */     for (Iterator i = clone.iterator(); i.hasNext(); )
/*     */     {
/* 301 */       HierarchicalState child = (HierarchicalState)i.next();
/* 302 */       Closeable del = (Closeable)child.getDelegate();
/*     */       try
/*     */       {
/* 305 */         del.closing(-1L);
/* 306 */         del.close();
/*     */       }
/*     */       catch (Throwable t)
/*     */       {
/* 312 */         if (this.trace)
/*     */         {
View Full Code Here

TOP

Related Classes of org.jboss.jms.client.Closeable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.