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

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


                                      remotingSessionID, clientVMID, versionToUse,
                                      callbackHandler, dupsOKBatchSize);

      int connectionID = endpoint.getConnectionID();

      ConnectionAdvised connAdvised;
     
      // Need to synchronized to prevent a deadlock
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-797
      synchronized (AspectManager.instance())
      {      
         connAdvised = new ConnectionAdvised(endpoint);
      }
     
      Dispatcher.instance.registerTarget(connectionID, connAdvised);

      log.debug("created and registered " + endpoint);
View Full Code Here


   private ServerPeer getServerPeer(Object obj) throws Exception
   {
      if (obj instanceof ConnectionAdvised)
      {
         ConnectionAdvised adv = (ConnectionAdvised) obj;
         ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint )adv.getEndpoint();
         return endpoint.getServerPeer();
      }
      else if (obj instanceof SessionAdvised)
      {
         SessionAdvised adv = (SessionAdvised) obj;
         ServerSessionEndpoint endpoint = (ServerSessionEndpoint)adv.getEndpoint();
         return endpoint.getConnectionEndpoint().getServerPeer();
      }
      else if (obj instanceof ConnectionFactoryAdvised)
      {
         ConnectionFactoryAdvised adv = (ConnectionFactoryAdvised) obj;
         ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)adv.getEndpoint();
         return endpoint.getServerPeer();
      }
      else
      {
         throw new IllegalStateException("PoisonInterceptor doesn't support " +
View Full Code Here

            // fail if I wrapped it during registerConneciton.
            // Need to synchronized to prevent a deadlock
            // See http://jira.jboss.com/jira/browse/JBMESSAGING-797
            synchronized (AspectManager.instance())
            {      
               sce = new ConnectionAdvised(sce);
            }
            try
            {
               sce.closing(-1);
            }
View Full Code Here

               // get the connection.  Then anyone
               // Need to synchronized to prevent a deadlock
               // See http://jira.jboss.com/jira/browse/JBMESSAGING-797
               synchronized (AspectManager.instance())
               {      
                  conn = new ConnectionAdvised(conn);
               }
               try
               {
                  conn.closing(-1);
               }
View Full Code Here

                                      remotingSessionID, clientVMID, versionToUse,
                                      callbackHandler, dupsOKBatchSize);

      String connectionID = endpoint.getConnectionID();

      ConnectionAdvised connAdvised;
     
      // Need to synchronized to prevent a deadlock
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-797
      synchronized (AspectManager.instance())
      {      
         connAdvised = new ConnectionAdvised(endpoint);
      }
     
      Dispatcher.instance.registerTarget(connectionID, connAdvised);

      log.trace("created and registered " + endpoint);
View Full Code Here

   private ServerPeer getServerPeer(Object obj) throws Exception
   {
      if (obj instanceof ConnectionAdvised)
      {
         ConnectionAdvised adv = (ConnectionAdvised) obj;
         ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint )adv.getEndpoint();
         return endpoint.getServerPeer();
      }
      else if (obj instanceof SessionAdvised)
      {
         SessionAdvised adv = (SessionAdvised) obj;
         ServerSessionEndpoint endpoint = (ServerSessionEndpoint)adv.getEndpoint();
         return endpoint.getConnectionEndpoint().getServerPeer();
      }
      else if (obj instanceof ConnectionFactoryAdvised)
      {
         ConnectionFactoryAdvised adv = (ConnectionFactoryAdvised) obj;
         ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)adv.getEndpoint();
         return endpoint.getServerPeer();
      }
      else
      {
         throw new IllegalStateException("PoisonInterceptor doesn't support " +
View Full Code Here

                                      remotingSessionID, clientVMID, versionToUse,
                                      callbackHandler, dupsOKBatchSize);

      String connectionID = endpoint.getConnectionID();

      ConnectionAdvised connAdvised;
     
      // Need to synchronized to prevent a deadlock
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-797
      synchronized (AspectManager.instance())
      {      
         connAdvised = new ConnectionAdvised(endpoint);
      }
     
      Dispatcher.instance.registerTarget(connectionID, connAdvised);

      log.trace("created and registered " + endpoint);
View Full Code Here


   // An aspect over ConnectionAdvised
   public Object handleSendTransaction(Invocation invocation) throws Throwable
   {
      ConnectionAdvised del = (ConnectionAdvised)invocation.getTargetObject();
      ServerConnectionEndpoint ce = (ServerConnectionEndpoint)del.getEndpoint();

      MethodInvocation mi = (MethodInvocation)invocation;

      TransactionRequest t = (TransactionRequest)mi.getArguments()[0];
View Full Code Here

                                      remotingSessionID, clientVMID, versionToUse,
                                      callbackHandler, dupsOKBatchSize);

      String connectionID = endpoint.getConnectionID();

      ConnectionAdvised connAdvised;
     
      // Need to synchronized to prevent a deadlock
      // See http://jira.jboss.com/jira/browse/JBMESSAGING-797
      synchronized (AspectManager.instance())
      {      
         connAdvised = new ConnectionAdvised(endpoint);
      }
     
      Dispatcher.instance.registerTarget(connectionID, connAdvised);

      log.trace("created and registered " + endpoint);
View Full Code Here

   private ServerPeer getServerPeer(Object obj) throws Exception
   {
      if (obj instanceof ConnectionAdvised)
      {
         ConnectionAdvised adv = (ConnectionAdvised) obj;
         ServerConnectionEndpoint endpoint = (ServerConnectionEndpoint )adv.getEndpoint();
         return endpoint.getServerPeer();
      }
      else if (obj instanceof SessionAdvised)
      {
         SessionAdvised adv = (SessionAdvised) obj;
         ServerSessionEndpoint endpoint = (ServerSessionEndpoint)adv.getEndpoint();
         return endpoint.getConnectionEndpoint().getServerPeer();
      }
      else if (obj instanceof ConnectionFactoryAdvised)
      {
         ConnectionFactoryAdvised adv = (ConnectionFactoryAdvised) obj;
         ServerConnectionFactoryEndpoint endpoint = (ServerConnectionFactoryEndpoint)adv.getEndpoint();
         return endpoint.getServerPeer();
      }
      else
      {
         throw new IllegalStateException("PoisonInterceptor doesn't support " +
View Full Code Here

TOP

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

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.