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);
}
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);
}
Aggregations