Package org.jboss.soa.esb.listeners.message

Examples of org.jboss.soa.esb.listeners.message.MessageDeliverException


                logger.info("Setting null data in message location(s): " + setPayloadLocations);
            } else if(nullSetPayloadHandling == NullPayloadHandling.WARN) {
                // Warn... fall through and clear everything...
                logger.warn("Setting null data in message location(s): " + setPayloadLocations);
            } else if(nullSetPayloadHandling == NullPayloadHandling.EXCEPTION) {
                throw new MessageDeliverException("Setting null data in message location(s): " + setPayloadLocations);
            }

            // Clear everything...
            for(String getPayloadLocation : getPayloadLocations) {
                message.getBody().remove(getPayloadLocation);
View Full Code Here


    public Message compose(T messagePayload) throws MessageDeliverException {
        try {
            return (Message) _processMethod.invoke(_composer, new Object[] {messagePayload});
        } catch(ClassCastException e) {
            throw new MessageDeliverException("Legacy composer class ('" + _composerClass.getName() + "') process method '" + _processMethod.getName() + "' must return an ESB Message (" + Message.class.getName() + ").");
        } catch (IllegalAccessException e) {
            throw new MessageDeliverException("Legacy composer class ('" + _composerClass.getName() + "') process method '" + _processMethod.getName() + "' is not callable.", e);
        } catch (InvocationTargetException e) {
            throw new MessageDeliverException("Legacy composer class ('" + _composerClass.getName() + "') process method '" + _processMethod.getName() + "' failed with exception.", e.getCause());
        }
    }
View Full Code Here

        Message message = MessageFactory.getInstance().getMessage();
        try {
            payloadProxy.setPayload(message, getPayload(inputFile));
        } catch (IOException e) {
            throw new MessageDeliverException("Error reading remote input file '" + inputFile.getAbsolutePath() + "'.", e);
        } catch (RemoteFileSystemException e) {
            throw new MessageDeliverException("Error reading remote input file '" + inputFile.getAbsolutePath() + "'.", e);
        } catch (MimeDecodeException e) {
            throw new MessageDeliverException("Error decoding input file '" + inputFile.getAbsolutePath() + "' payload using '" + mimeDecoder.getClass().getName() + "'.  Wrong MimeDecoder, or MimeDecoder may require additional configuration.", e);
    }

        return message;
    }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.listeners.message.MessageDeliverException

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.