Search in sources :

Example 1 with ConfigurationException

use of org.apache.cxf.configuration.ConfigurationException in project cxf by apache.

the class JMSConfigFeature method initialize.

@Override
public void initialize(Client client, Bus bus) {
    checkJmsConfig();
    Conduit conduit = client.getConduit();
    if (!(conduit instanceof JMSConduit)) {
        throw new ConfigurationException(new Message("JMSCONFIGFEATURE_ONLY_JMS", LOG));
    }
    JMSConduit jmsConduit = (JMSConduit) conduit;
    jmsConduit.setJmsConfig(jmsConfig);
    super.initialize(client, bus);
}
Also used : Message(org.apache.cxf.common.i18n.Message) ConfigurationException(org.apache.cxf.configuration.ConfigurationException) Conduit(org.apache.cxf.transport.Conduit)

Example 2 with ConfigurationException

use of org.apache.cxf.configuration.ConfigurationException in project cxf by apache.

the class JMSConfigFeature method initialize.

@Override
public void initialize(Server server, Bus bus) {
    checkJmsConfig();
    Destination destination = server.getDestination();
    if (!(destination instanceof JMSDestination)) {
        throw new ConfigurationException(new Message("JMSCONFIGFEATURE_ONLY_JMS", LOG));
    }
    JMSDestination jmsDestination = (JMSDestination) destination;
    jmsDestination.setJmsConfig(jmsConfig);
    super.initialize(server, bus);
}
Also used : Destination(org.apache.cxf.transport.Destination) Message(org.apache.cxf.common.i18n.Message) ConfigurationException(org.apache.cxf.configuration.ConfigurationException)

Aggregations

Message (org.apache.cxf.common.i18n.Message)2 ConfigurationException (org.apache.cxf.configuration.ConfigurationException)2 Conduit (org.apache.cxf.transport.Conduit)1 Destination (org.apache.cxf.transport.Destination)1