Examples of SessionAdapter


Examples of com.google.code.rees.scope.session.SessionAdapter

        cManager.processConversations(cAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(cManager);

        SessionManager sManager = EasyMock.createMock(SessionManager.class);
        SessionAdapter sAdapter = EasyMock.createMock(SessionAdapter.class);
        sManager.processSessionFields(sAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(sManager);

        ScopeAdapterFactory adapterFactory = EasyMock
View Full Code Here

Examples of com.google.code.rees.scope.session.SessionAdapter

        cManager.processConversations(cAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(cManager);

        SessionManager sManager = EasyMock.createMock(SessionManager.class);
        SessionAdapter sAdapter = EasyMock.createMock(SessionAdapter.class);
        sManager.processSessionFields(sAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(sManager);

        ScopeAdapterFactory adapterFactory = EasyMock
View Full Code Here

Examples of com.google.code.rees.scope.session.SessionAdapter

        cManager.processConversations(cAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(cManager);

        SessionManager sManager = EasyMock.createMock(SessionManager.class);
        SessionAdapter sAdapter = EasyMock.createMock(SessionAdapter.class);
        sManager.processSessionFields(sAdapter);
        EasyMock.expectLastCall();
        EasyMock.replay(sManager);

        ScopeAdapterFactory adapterFactory = EasyMock
View Full Code Here

Examples of com.sun.messaging.jms.ra.SessionAdapter

                  epConnection.getProtocolHandler().commit(0L,
                            XAResource.TMNOFLAGS, jmqXid);
                }
              }
                              
                SessionAdapter sa = mc.getConnectionAdapter().getSessionAdapter();
                if (sa != null) {
                    //System.out.println("MQRA:XAR4MC:commit:sa!=null");
                    sa.getXASession()._finishXATransactionForMC();
                }
                active = false;
            } else {
                System.err.println("MQRA:XARFMC:commit:ConnectionClosed:throw XAExc txn:1p="+onePhase+":xid="+jmqXid.toString());
                //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:commit:XAException");
 
View Full Code Here

Examples of com.sun.messaging.jms.ra.SessionAdapter

    try {
            //System.out.println("MQRA:XAR4RA:end:sending 0L:tid="+transactionID+" xid="+jmqXid.toString());
         
          epConnection.protocolHandler.endTransaction(0L, flags, jmqXid);
           
            SessionAdapter sa = mc.getConnectionAdapter().getSessionAdapter();
            if (sa != null) {
                //System.out.println("MQRA:XAR4MC:end:sa!=null");
                sa.getXASession()._finishXATransactionForMC();
            }
        } catch (Exception jmse) {
            System.err.println("MQRA:XARFMC:end:XAException-Exception="+jmse.getMessage());
            //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:end:XAException");
            Debug.printStackTrace(jmse);
View Full Code Here

Examples of com.sun.messaging.jms.ra.SessionAdapter

        //convert to jmq xid
        JMQXid jmqXid = new JMQXid(foreignXid);
        //System.out.println("MQRA:XAR4MC:rollback():mcId="+mc.getMCId()+":xid="+jmqXid.toString());
        //Debug.println("MQRA:XAR4RA:rollback():tid="+transactionID+" xid="+jmqXid.toString());
        XASessionImpl xas = null;
        SessionAdapter sa = null;
       
        try {
            //send rollback w/redeliver
            if (!epConnection._isClosed()) {
                //System.out.println("MQRA:XAR4MC:rollback:Using epCon");
             
              sa = mc.getConnectionAdapter().getSessionAdapter();
             
              if (epConnection.isConnectedToHABroker()) {
                //handle fail-over for HA connection
                HARollback(jmqXid);
              } else {
                epConnection.getProtocolHandler().rollback(0L, jmqXid, true);
              }
             
                if (sa != null) {
                    //System.out.println("MQRA:XAR4MC:rollback:sa!=null");
                    //sa.getXASession()._finishXATransactionForMC();
                  xas = sa.getXASession();
                  xas._finishXATransactionForMC();
                }
                active = false;
            } else {
                System.err.println("MQRA:XARFMC:rollback:ConnectionClosed:Rollback txn:xid="+jmqXid.toString());
                //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:prepare:XAException:RMFAIL");
                XAException xae = new XAException(XAException.XAER_RMFAIL);
                throw xae;
            }
        } catch (Exception jmse) {
            System.err.println("MQRA:XARFMC:rollback:XAException-Exception="+jmse.getMessage());
            //Debug.println("*=*=*=*=*=*=*=*=*=*=XAR:rollbackXAException");
            Debug.printStackTrace(jmse);
            XAException xae = new XAException(XAException.XAER_RMFAIL);
            xae.initCause(jmse);
            throw xae;
        } finally {
          if ( sa != null ) {
            xas = sa.getXASession();
            if (xas != null) {
              xas.failoverOccurred = false;
            }
          }
         
View Full Code Here

Examples of com.sun.messaging.jms.ra.SessionAdapter

          try {
              transactionID = epConnection.protocolHandler.startTransaction(transactionID, flags, jmqXid);
              this.jmqXid = jmqXid;
              //System.out.println("MQRA:XAR4MC:start:transactionID="+transactionID+" xid="+jmqXid.toString());
 
              SessionAdapter sa = mc.getConnectionAdapter().getSessionAdapter();
              if (sa != null) {
                  //System.out.println("MQRA:XAR4MC:start():sa!=null");
                  sa.getXASession()._initXATransactionForMC(transactionID);
              }
          } catch (Exception jmse) {
              System.err.println("MQRA:XARFMC:start:XAException-Exception="+jmse.getMessage());
              Debug.printStackTrace(jmse);
              XAException xae = new XAException(XAException.XAER_RMFAIL);
View Full Code Here

Examples of net.sf.jml.net.SessionAdapter

            boolean createdByOwner, String authStr, int sessionId,
            Object attachment) {
        final SimpleSwitchboard switchboard = new SimpleSwitchboard(this,
                createdByOwner, ip, port);
        switchboard.setAuthStr(authStr);
        switchboard.addSessionListener(new SessionAdapter() {

            @Override
      public void sessionEstablished(Session session) {
                synchronized (switchboards) {
                    switchboards.add(switchboard);
View Full Code Here

Examples of net.sf.jml.net.SessionAdapter

            boolean createdByOwner, String authStr, int sessionId,
            Object attachment) {
        final SimpleSwitchboard switchboard = new SimpleSwitchboard(this,
                createdByOwner, ip, port);
        switchboard.setAuthStr(authStr);
        switchboard.addSessionListener(new SessionAdapter() {

            @Override
      public void sessionEstablished(Session session) {
                synchronized (switchboards) {
                    switchboards.add(switchboard);
View Full Code Here

Examples of net.sf.jml.net.SessionAdapter

    }

    private void init() {
        session.setAttachment(this);
        session.setMessageRecognizer(MsnMessageRecognizer.getInstance());
        session.addSessionListener(new SessionAdapter() {

            private String getConnectionType() {
                return switchboard == null ? "NS" : "SB (" + switchboard.getAttachment() + ")" ;
            }
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.