Package org.codehaus.activemq

Examples of org.codehaus.activemq.LocalTransactionEventListener


        try {
            physicalSession = physicalConnection
                    .createSession(true, Session.SESSION_TRANSACTED);
            if (physicalSession instanceof ActiveMQSession) {
                ActiveMQSession session = (ActiveMQSession) physicalSession;
                LocalTransactionEventListener l = createLocalTransactionEventListener();
                session.setLocalTransactionEventListener(l);
            }
            else {
                log.trace("Cannot register LocalTransactionEventLister on non-ActiveMQ session");
            }
View Full Code Here


   
    /**
     * @return
     */
    private LocalTransactionEventListener createLocalTransactionEventListener() {
        return new LocalTransactionEventListener() {

            public void beginEvent() {
                ConnectionEvent event = new ConnectionEvent(ActiveMQManagedConnection.this, ConnectionEvent.LOCAL_TRANSACTION_STARTED);
                Iterator iterator = listeners.iterator();
                while (iterator.hasNext()) {
View Full Code Here

    private Session createSession() throws JMSException {
        Session s = physicalConnection.createSession(true, Session.SESSION_TRANSACTED);
        if (s instanceof ActiveMQSession) {
            ActiveMQSession session = (ActiveMQSession) s;
            LocalTransactionEventListener l = createLocalTransactionEventListener();
            session.setLocalTransactionEventListener(l);
        }
        else {
            log.trace("Cannot register LocalTransactionEventLister on non-ActiveMQ session");
        }
View Full Code Here

   
    /**
     * @return
     */
    private LocalTransactionEventListener createLocalTransactionEventListener() {
        return new LocalTransactionEventListener() {

            public void beginEvent() {
                ConnectionEvent event = new ConnectionEvent(ActiveMQManagedConnection.this, ConnectionEvent.LOCAL_TRANSACTION_STARTED);
                Iterator iterator = listeners.iterator();
                while (iterator.hasNext()) {
View Full Code Here

    private Session createSession() throws JMSException {
        Session s = physicalConnection.createSession(true, Session.SESSION_TRANSACTED);
        if (s instanceof ActiveMQSession) {
            ActiveMQSession session = (ActiveMQSession) s;
            LocalTransactionEventListener l = createLocalTransactionEventListener();
            session.setLocalTransactionEventListener(l);
        }
        else {
            log.trace("Cannot register LocalTransactionEventLister on non-ActiveMQ session");
        }
View Full Code Here

    /**
     * @return
     */
    private LocalTransactionEventListener createLocalTransactionEventListener() {
        return new LocalTransactionEventListener() {

            public void beginEvent() {
                fireBeginEvent();
            }

View Full Code Here

        try {
            physicalSession = physicalConnection
                    .createSession(true, Session.SESSION_TRANSACTED);
            if (physicalSession instanceof ActiveMQSession) {
                ActiveMQSession session = (ActiveMQSession) physicalSession;
                LocalTransactionEventListener l = createLocalTransactionEventListener();
                session.setLocalTransactionEventListener(l);
            }
            else {
                log.trace("Cannot register LocalTransactionEventLister on non-ActiveMQ session");
            }
View Full Code Here

   
    /**
     * @return
     */
    private LocalTransactionEventListener createLocalTransactionEventListener() {
        return new LocalTransactionEventListener() {

            public void beginEvent() {
                ConnectionEvent event = new ConnectionEvent(ActiveMQManagedConnection.this, ConnectionEvent.LOCAL_TRANSACTION_STARTED);
                Iterator iterator = listeners.iterator();
                while (iterator.hasNext()) {
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.LocalTransactionEventListener

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.