Package org.apache.geronimo.jms.test.mdb.exception

Examples of org.apache.geronimo.jms.test.mdb.exception.ProcessingException


     * @see org.apache.geronimo.jms.test.mdb.MessageReceiver#processMessage(TransferObject)
     */
    @Override
    protected TransferObject processMessage(TransferObject obj) throws ProcessingException {
        if (obj == null) {
            throw new ProcessingException("Object received in message is null");
        } else if (!SimpleTransferObject.class.isInstance(obj)) {
            throw new ProcessingException(MessageFormat.format("Invalid class of object {0} included in received message", obj.getClass()));
        } else {
            SimpleTransferObject to = (SimpleTransferObject) obj;
            to.markProcessed();
            return to;
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jms.test.mdb.exception.ProcessingException

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.