Examples of ConnectionDelegate


Examples of org.apache.qpid.transport.ConnectionDelegate

        SocketAddress address = network.getLocalAddress();
        if (address instanceof InetSocketAddress)
        {
            fqdn = ((InetSocketAddress) address).getHostName();
        }
        final ConnectionDelegate connDelegate = new ServerConnectionDelegate(broker,
                fqdn, broker.getSubjectCreator(address));

        ServerConnection conn = new ServerConnection(id,broker);

        conn.setConnectionDelegate(connDelegate);
View Full Code Here

Examples of org.apache.qpid.transport.ConnectionDelegate

        SocketAddress address = network.getLocalAddress();
        if (address instanceof InetSocketAddress)
        {
            fqdn = ((InetSocketAddress) address).getHostName();
        }
        final ConnectionDelegate connDelegate = new ServerConnectionDelegate(broker,
                fqdn, broker.getSubjectCreator(address, transport.isSecure())
        );

        ServerConnection conn = new ServerConnection(id,broker);
View Full Code Here

Examples of org.apache.qpid.transport.ConnectionDelegate

        SocketAddress address = network.getLocalAddress();
        if (address instanceof InetSocketAddress)
        {
            fqdn = ((InetSocketAddress) address).getHostName();
        }
        final ConnectionDelegate connDelegate = new ServerConnectionDelegate(broker,
                fqdn, broker.getSubjectCreator(address, transport.isSecure())
        );

        ServerConnection conn = new ServerConnection(id,broker, port, transport);
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

      {
         throw new TransactionInProgressException("Cannot call commit on an XA session");
      }

      ConnectionState connState = (ConnectionState)state.getParent();
      ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
 
      try
      {
         connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
      }
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

      remotingConnection = newState.remotingConnection;
      idGenerator = newState.idGenerator;
      serverID = newState.serverID;
      versionToUse = newState.versionToUse;
     
      ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
     
      for(Iterator i = getChildren().iterator(); i.hasNext(); )
      {                
         SessionState sessionState = (SessionState)i.next();
        
         ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();

         // create a new session on the new connection for each session on the old connection
         ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.
            createSessionDelegate(sessionState.isTransacted(),
                                  sessionState.getAcknowledgeMode(),
                                  sessionState.isXA());

         sessionDelegate.synchronizeWith(newSessionDelegate);
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

         {
            throw new TransactionInProgressException("Cannot call commit on an XA session");
         }
  
         ConnectionState connState = (ConnectionState)state.getParent();
         ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
    
         try
         {
            connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
         }
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

      // The remoting connection was replaced by a new one..
      // we have to set the connection state on the ConnectionListener to avoid leaks
      remotingConnection.getConnectionListener().setConnectionState(this);

      ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
     
      for(Iterator i = getChildren().iterator(); i.hasNext(); )
      {                
         SessionState sessionState = (SessionState)i.next();
        
         ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();

         // create a new session on the new connection for each session on the old connection
         ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.
            createSessionDelegate(sessionState.isTransacted(),
                                  sessionState.getAcknowledgeMode(),
                                  sessionState.isXA(), sessionState.isCC());

         sessionDelegate.synchronizeWith(newSessionDelegate);
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

         {
            throw new TransactionInProgressException("Cannot call commit on an XA session");
         }
  
         ConnectionState connState = (ConnectionState)state.getParent();
         ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
    
         try
         {
            connState.getResourceManager().commitLocal((LocalTx)state.getCurrentTxId(), conn);
         }
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

      // The remoting connection was replaced by a new one..
      // we have to set the connection state on the ConnectionListener to avoid leaks
      remotingConnection.getConnectionListener().setConnectionState(this);

      ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
     
      for(Iterator i = getChildren().iterator(); i.hasNext(); )
      {                
         SessionState sessionState = (SessionState)i.next();
        
         ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();

         // create a new session on the new connection for each session on the old connection
         ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.
            createSessionDelegate(sessionState.isTransacted(),
                                  sessionState.getAcknowledgeMode(),
                                  sessionState.isXA());

         sessionDelegate.synchronizeWith(newSessionDelegate);
View Full Code Here

Examples of org.jboss.jms.delegate.ConnectionDelegate

      // The remoting connection was replaced by a new one..
      // we have to set the connection state on the ConnectionListener to avoid leaks
      remotingConnection.getConnectionListener().setConnectionState(this);

      ConnectionDelegate newDelegate = (ConnectionDelegate)newState.getDelegate();
     
      for(Iterator i = getChildren().iterator(); i.hasNext(); )
      {                
         SessionState sessionState = (SessionState)i.next();
        
         ClientSessionDelegate sessionDelegate = (ClientSessionDelegate)sessionState.getDelegate();

         // create a new session on the new connection for each session on the old connection
         ClientSessionDelegate newSessionDelegate = (ClientSessionDelegate)newDelegate.
            createSessionDelegate(sessionState.isTransacted(),
                                  sessionState.getAcknowledgeMode(),
                                  sessionState.isXA());

         sessionDelegate.synchronizeWith(newSessionDelegate);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.