Package org.jboss.jms.delegate

Examples of org.jboss.jms.delegate.ConnectionEndpoint


        {
         Map.Entry entry2 = (Map.Entry)iter2.next();
        
         String sessionID = (String)entry2.getKey();
        
         ConnectionEndpoint endpoint = (ConnectionEndpoint)entry2.getValue();
        
         log.debug("            " + sessionID + "------>" + System.identityHashCode(endpoint));
        }
     }
     log.debug("*** Dumped conn map");
View Full Code Here


/* 54 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 59 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 62 */     if (endpoint == null)
/*    */     {
/* 64 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 67 */     return new ConnectionGetPreparedTransactionsResponse(endpoint.getPreparedTransactions());
/*    */   }
View Full Code Here

/* 55 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 60 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 63 */     if (endpoint == null)
/*    */     {
/* 65 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 68 */     endpoint.start();
/*    */
/* 70 */     return null;
/*    */   }
View Full Code Here

/* 50 */     this.size = is.readInt();
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 55 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 58 */     if (endpoint == null)
/*    */     {
/* 60 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/* 62 */     return new ConnectionGetIDBlockResponse(endpoint.getIdBlock(this.size));
/*    */   }
View Full Code Here

/*  74 */     this.xa = is.readBoolean();
/*     */   }
/*     */
/*     */   public ResponseSupport serverInvoke() throws Exception
/*     */   {
/*  79 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*     */
/*  82 */     if (endpoint == null)
/*     */     {
/*  84 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*     */     }
/*     */
/*  87 */     return new ConnectionCreateSessionDelegateResponse((ClientSessionDelegate)endpoint.createSessionDelegate(this.transacted, this.acknowledgmentMode, this.xa));
/*     */   }
View Full Code Here

/*     */   {
/* 120 */     Map endpoints = (Map)this.jmsClients.get(jmsClientVMId);
/*     */
/* 122 */     if (endpoints != null)
/*     */     {
/* 124 */       ConnectionEndpoint e = (ConnectionEndpoint)endpoints.remove(remotingClientSessionID);
/*     */
/* 126 */       if (e != null)
/*     */       {
/* 128 */         endpoints.remove(e);
/* 129 */         this.activeConnectionEndpoints.remove(e);
View Full Code Here

/*     */     {
/* 350 */       List sces = new ArrayList();
/*     */
/* 352 */       for (Map.Entry entry : endpoints.entrySet())
/*     */       {
/* 354 */         ConnectionEndpoint sce = (ConnectionEndpoint)entry.getValue();
/* 355 */         sces.add(sce);
/*     */       }
/*     */
/* 362 */       for (ConnectionEndpoint sce : sces)
/*     */       {
/*     */         try
/*     */         {
/* 366 */           log.debug("clPearing up state for connection " + sce);
/* 367 */           sce.closing(-1L);
/* 368 */           sce.close();
/* 369 */           log.debug("cleared up state for connection " + sce);
/*     */         }
/*     */         catch (JMSException e)
/*     */         {
/* 373 */           log.error("Failed to close connection", e);
View Full Code Here

/*     */       {
/* 482 */         Map.Entry entry2 = (Map.Entry)iter2.next();
/*     */
/* 484 */         String sessionID = (String)entry2.getKey();
/*     */
/* 486 */         ConnectionEndpoint endpoint = (ConnectionEndpoint)entry2.getValue();
/*     */
/* 488 */         log.debug("            " + sessionID + "------>" + System.identityHashCode(endpoint));
/*     */       }
/*     */     }
/*     */     Iterator iter2;
View Full Code Here

/* 54 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 59 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 62 */     if (endpoint == null)
/*    */     {
/* 64 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 67 */     endpoint.stop();
/*    */
/* 69 */     return null;
/*    */   }
View Full Code Here

/* 69 */     this.checkForDuplicates = is.readBoolean();
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 74 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 77 */     if (endpoint == null)
/*    */     {
/* 79 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 82 */     endpoint.sendTransaction(this.req, this.checkForDuplicates);
/*    */
/* 84 */     return null;
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.delegate.ConnectionEndpoint

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.