Package org.apache.cxf.configuration

Examples of org.apache.cxf.configuration.ConfigurationException


   
    private JNDIConfiguration jndiConfig;
   
    public void ensureProperlyConfigured(org.apache.cxf.common.i18n.Message msg) {
        if (targetDestination == null || getOrCreateWrappedConnectionFactory() == null) {
            throw new ConfigurationException(msg);
        }
    }
View Full Code Here


     */
    public void activate() {
        getLogger().log(Level.INFO, "JMSDestination activate().... ");
        String name = endpointInfo.getName().toString() + ".jms-destination";
        if (jmsConfig.getTargetDestination() == null || jmsConfig.getConnectionFactory() == null) {
            throw new ConfigurationException(
                new org.apache.cxf.common.i18n.Message("INSUFFICIENT_CONFIGURATION_DESTINATION", LOG, name));
        }
        jmsListener = JMSFactory.createJmsListener(jmsConfig, this, jmsConfig.getTargetDestination());
    }
View Full Code Here

     * JMSOutputStream will then call back the sendExchange method of this class. {@inheritDoc}
     */
    public void prepare(Message message) throws IOException {
        if (jmsConfig.getTargetDestination() == null || jmsConfig.getConnectionFactory() == null) {
            String name =  endpointInfo.getName().toString() + ".jms-conduit";
            throw new ConfigurationException(
                new org.apache.cxf.common.i18n.Message("INSUFFICIENT_CONFIGURATION_CONDUIT", LOG, name));
        }
        boolean isTextPayload = JMSConstants.TEXT_MESSAGE_TYPE.equals(jmsConfig.getMessageType());
        JMSOutputStream out = new JMSOutputStream(this, message.getExchange(), isTextPayload);
        message.setContent(OutputStream.class, out);
View Full Code Here

    private boolean autoWrappedConnectionFactory;
    private JNDIConfiguration jndiConfig;

    public void ensureProperlyConfigured(org.apache.cxf.common.i18n.Message msg) {
        if (targetDestination == null || getOrCreateWrappedConnectionFactory() == null) {
            throw new ConfigurationException(msg);
        }
    }
View Full Code Here

        if (isTextPayload && MessageUtils.isTrue(outMessage.getContextualProperty(
            org.apache.cxf.message.Message.MTOM_ENABLED))
            && outMessage.getAttachments() != null && outMessage.getAttachments().size() > 0) {
            org.apache.cxf.common.i18n.Message msg =
                new org.apache.cxf.common.i18n.Message("INVALID_MESSAGE_TYPE", LOG);
            throw new ConfigurationException(msg);
        }
       
        JMSMessageHeadersType headers = getOrCreateJmsHeaders(outMessage);
        String replyTo = headers.getJMSReplyTo();
        if (replyTo == null) {
View Full Code Here

    @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);
    }
View Full Code Here

    @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);
    }
View Full Code Here

        this.jmsConfig = jmsConfig;
    }

    private void checkJmsConfig() {
        if (jmsConfig == null) {
            throw new ConfigurationException(new Message("JMSCONFIG_REQUIRED", LOG));
        }
    }
View Full Code Here

           
           
            if (JMSConstants.TEXT_MESSAGE_TYPE.equals(msgType) && isMtomEnabled(outMessage)) {
                org.apache.cxf.common.i18n.Message msg =
                    new org.apache.cxf.common.i18n.Message("INVALID_MESSAGE_TYPE", LOG);
                throw new ConfigurationException(msg);
            }

            Destination replyTo = getReplyToDestination(jmsTemplate, inMessage);

            if (request.getJMSExpiration() > 0) {
View Full Code Here

   
    private JNDIConfiguration jndiConfig;
   
    public void ensureProperlyConfigured(org.apache.cxf.common.i18n.Message msg) {
        if (targetDestination == null || getOrCreateWrappedConnectionFactory() == null) {
            throw new ConfigurationException(msg);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.configuration.ConfigurationException

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.