Package com.sun.messaging.bridge.service

Examples of com.sun.messaging.bridge.service.BridgeException


     *
     */
    public Bridge getBridge(String name) throws Exception {
        Bridge b = _bridges.get(name);
        if (b == null) {
            throw new BridgeException(_bmr.getKString(_bmr.X_BRIDGE_NAME_NOT_FOUND, name));
        }
        return b;
    }
View Full Code Here


    protected void checkClosedAndSetInProgress() throws Exception {
        synchronized (_closedLock) {
            if (_closed) {
                String emsg = "Accessing TM txLog after store closed";
                throw new BridgeException(emsg, Status.UNAVAILABLE);
            } else {
                setInProgress(true);
            }
        }
    }
View Full Code Here

                MessageProducer producer = _producer;
                if (_branchProducer != null) {
                    producer = _branchProducer;
                }
                if (!getTargetCurrentDestinationName().equals(toDestinationName(producer.getDestination()))) {
                    throw new BridgeException("Unexpected target producer's destination name "+
                        toDestinationName(producer.getDestination())+": not match current target destination name "+
                        getTargetCurrentDestinationName());
                }
               
                try {
View Full Code Here

                MessageProducer producer = _producer;
                if (_branchProducer != null) {
                    producer = _branchProducer;
                }
                if (!getTargetCurrentDestinationName().equals(toDestinationName(producer.getDestination()))) {
                    throw new BridgeException("Unexpected target producer's destination name "+
                        toDestinationName(producer.getDestination())+": not match current target destination name "+
                        getTargetCurrentDestinationName());
                }

                try {
View Full Code Here

                                                      getSourceProviderName(),
                                                      getTargetProviderName(),
                                                      _msgTransformerProps);
                transformed = true;
                if (msgToSend == null) {
                    throw new BridgeException(_jbr.getKString(_jbr.X_NULL_RETURN_FROM_FOR_MESSAGE,
                                              _msgTransformer.getClass().getName()+".transform()", mid));
                }
            } finally {
                MessageHeaders.resetMessageHeaders(m, srcmhs);
            }
View Full Code Here

            } catch (Throwable t) {}
            if (!inited) {
                _jmsbridge = null;
                throw e;
            }
            throw new BridgeException(e.getMessage(), e, Status.CREATED);
        }
    }
View Full Code Here

            if (!inited) {
                _stompServer = null;
                throw e;
            }
            throw new BridgeException(e.getMessage(), e, Status.CREATED);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.messaging.bridge.service.BridgeException

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.