Package org.jboss.soa.esb.couriers

Examples of org.jboss.soa.esb.couriers.CourierServiceBindException


                // FileHandler is durable only for local filesystem (see
                // checkEprParms())
                FileHandler handler = (null != _localFhandler) ? _localFhandler
                                : FileHandlerFactory.getInstance().getFileHandler(_epr);
                if (null == handler)
                        throw new CourierServiceBindException(
                                        "Can't find appropriate file handler for "
                                                        + _uri.toASCIIString());

                Call call = message.getHeader().getCall();
                if (null==call)
View Full Code Here


    public synchronized Session getJmsSession(final int acknowledgeMode) throws CourierException {
        if(jmsSession == null) {
            try {
                jmsSession = getConnectionPool().getSession(acknowledgeMode);
            } catch (NamingException e) {
                throw new CourierServiceBindException("Failed to get JMS Session from pool.", e);
            } catch (JMSException e) {
                throw new CourierServiceBindException("Failed to get JMS Session from pool.", e);
            } catch (ConnectionException e) {
                throw new CourierServiceBindException("Failed to get JMS Session from pool.", e);
            }
        }
        return jmsSession;
    }
View Full Code Here

        synchronized(this) {
            if (_messageProducer == null) {
                try {
                    createMessageProducer();
                } catch (final NamingContextException nce) {
                    throw new CourierServiceBindException("Unexpected exception attempting to access naming context pool", nce) ;
                }
            }
        }

        // Create the JMS message from the serialized ESB message...
View Full Code Here

        synchronized(this) {
            if (_messageProducer == null) {
                try {
                    createMessageProducer();
                } catch (final NamingContextException nce) {
                    throw new CourierServiceBindException("Unexpected exception attempting to access naming context pool", nce) ;
                }
            }
        }

        synchronized(this) {
View Full Code Here

            lookupDataSource(epr);
        } else {
                try {
                    ClassUtil.forName(epr.getDriver(), getClass());
                } catch (ClassNotFoundException e) {
                    throw new CourierServiceBindException("Database driver '" + epr.getDriver() + "' not available on classpath.");
                }
        }
    }
View Full Code Here

                }
            }
        }
        catch (final Exception e)
        {
            throw new CourierServiceBindException("Failed to lookup DataSource.", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.couriers.CourierServiceBindException

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.