Package lt.baltic_amadeus.jqbridge.server

Examples of lt.baltic_amadeus.jqbridge.server.CommunicationException


                return msg;
            } while (!stopping.getValue());
            return null;
        }
        catch (IOException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here


    public void sendMessage(BridgeMsg msg) throws BridgeException {
        try {
            msgLog.saveMessage(msg, queue.getQueueDir());
        }
        catch (IOException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

            queue = queueMgr.accessQueue(ep.getDestination().getName(), openOptions);
            stopping = new BooleanHolder(false);
            msgLog = port.getProvider().getMessageLogger();
        }
        catch (MQException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

            queue.put(mqMsg, opt);
            /* update message id */
            msg.setMessageId(createBridgeMessageId(mqMsg.messageId));
        }
        catch (IOException ex) {
            throw new CommunicationException(this, ex);
        }
        catch (MQException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

            msg.setMessageId(createBridgeMessageId(mqMsg.messageId));
            msg.setPersistence(createBridgePersistence(mqMsg.persistence));
            return msg;
        }
        catch (IOException ex) {
            throw new CommunicationException(this, ex);
        }
        catch (MQException ex) {
            log.debug("MQException from receiveMessage");
            throw new CommunicationException(this, ex);
        }       
    }
View Full Code Here

    public void commit() throws BridgeException {
        try {
            queueMgr.commit();
        }
        catch (MQException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

    public void rollback() throws BridgeException {
        try {
            queueMgr.backout();
        }
        catch (MQException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

    public void close() throws BridgeException {
        try {
            queueMgr.disconnect();
        }
        catch (MQException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

        }
        catch (javax.jms.IllegalStateException ex) {
            throw new ConnectionDownException(ex);
        }
        catch (JMSException ex) {
            throw new CommunicationException(port, ex);
        }
    }
View Full Code Here

            Message jMsg = createJMSMessage(brMsg);
            sender.send(jMsg);
            brMsg.setMessageId(jMsg.getJMSMessageID());
        }
        catch (JMSException ex) {
            throw new CommunicationException(this, ex);
        }
    }
View Full Code Here

TOP

Related Classes of lt.baltic_amadeus.jqbridge.server.CommunicationException

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.