Package org.jboss.jms.server.endpoint.advised

Examples of org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised


/*  78 */     this.failedNodeId = is.readInt();
/*     */   }
/*     */
/*     */   public ResponseSupport serverInvoke() throws Exception
/*     */   {
/*  83 */     ConnectionFactoryAdvised advised = (ConnectionFactoryAdvised)Dispatcher.instance.getTarget(this.objectId);
/*     */
/*  86 */     if (advised == null)
/*     */     {
/*  88 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*     */     }
/*     */
/*  91 */     CreateConnectionResult del = advised.createConnectionDelegate(this.username, this.password, this.failedNodeId, getRemotingSessionID(), getClientVMID(), this.version, this.callbackHandler);
/*     */
/*  96 */     return new ConnectionFactoryCreateConnectionDelegateResponse(del);
/*     */   }
View Full Code Here


/* 211 */     log.trace(this + " adding delegates factory " + uniqueName + " pointing to " + delegate);
/*     */
/* 213 */     this.delegates.put(uniqueName, delegate);
/*     */
/* 216 */     rebindConnectionFactory(this.initialContext, jndiBindings, delegate);
/*     */     ConnectionFactoryAdvised advised;
/* 222 */     synchronized (AspectManager.instance())
/*     */     {
/* 224 */       advised = new ConnectionFactoryAdvised(endpoint);
/*     */     }
/*     */
/* 229 */     Dispatcher.instance.registerTarget(id, advised);
/*     */
/* 233 */     if (this.replicator != null) this.replicator.put("CF_" + uniqueName, localDelegate);
View Full Code Here

/*    */
/*    */   public ResponseSupport serverInvoke()
/*    */     throws Exception
/*    */   {
/* 71 */     log.debug("serverInvoke callbackHandler=" + getCallbackHandler());
/* 72 */     ConnectionFactoryAdvised advised = (ConnectionFactoryAdvised)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 75 */     if (advised == null)
/*    */     {
/* 77 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 80 */     advised.addCallback(getClientVMID(), getRemotingSessionID(), getCallbackHandler());
/*    */
/* 84 */     return null;
/*    */   }
View Full Code Here

/* 64 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 69 */     ConnectionFactoryAdvised advised = (ConnectionFactoryAdvised)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 72 */     if (advised == null)
/*    */     {
/* 74 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 77 */     advised.removeCallback(getClientVMID(), getRemotingSessionID(), getCallbackHandler());
/*    */
/* 80 */     return null;
/*    */   }
View Full Code Here

      }

      public Object execute(Server server) throws Exception
      {

         ConnectionFactoryAdvised advised = (ConnectionFactoryAdvised)Dispatcher.instance.getTarget(uniqueName);
         if (advised == null)
         {
            return -1;
         }
         ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)advised.getEndpoint();
        
         int size = endpoint.getCallbackHandlers().size();
         return new Integer(size);
      }
View Full Code Here

TOP

Related Classes of org.jboss.jms.server.endpoint.advised.ConnectionFactoryAdvised

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.