Package javax.jbi.messaging

Examples of javax.jbi.messaging.MessagingException


                }
            });
            done(exchange);
        }
        catch (JmsException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here


            Destination destination = destinationChooser.chooseDestination(messageExchange);
            producer.getMessageProducer().send(destination, message);
            done(messageExchange);
        }
        catch (JMSException e) {
            throw new MessagingException(e);
        }
        catch (TransformerException e) {
            throw new MessagingException(e);
        }
        finally {
            producerPool.returnProducer(producer);
        }
    }
View Full Code Here

            getDeliveryChannel().send(exchange);
        }
        catch (ScriptException e) {
            System.out.println("Caught: " + e);
            e.printStackTrace();
            throw new MessagingException("Failed to run compiledScript. Reason: " + e, e);
        }
    }
View Full Code Here

        if (logResourceBundle != null) {
            try {
                return getContext().getLogger(getClass().getName(), logResourceBundle);
            }
            catch (JBIException e) {
                throw new MessagingException(e);
            }
        }
        else {
        return Logger.getLogger(getClass().getName());
        }    }
View Full Code Here

            getMarshaler().fromNMS(message, normalizedMessage);
            chat.sendMessage(message);
            done(messageExchange);
        }
        catch (TransformerException e) {
            throw new MessagingException(e);
        }
        catch (XMPPException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

            SAXResult result = new SAXResult(builder);
            sourceTransformer.toResult(in.getContent(), result);
            return builder.getDocument();
        }
        catch (TransformerException e) {
            throw new MessagingException("Failed to convert inbound message content to an XMLDocument. Reason: " + e, e);
        }
    }
View Full Code Here

             /** TODO */
            ScriptContext namespace = null;
            return compiledScript.eval(namespace);
        }
        catch (ScriptException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

            // now lets grab the output and set it on the out message
            marshaler.toNMS(out, method);
            return true;
        }
        catch (Exception e) {
            throw new MessagingException("Error executing http request", e);
        }
        finally {
            method.releaseConnection();
        }
    }
View Full Code Here

            getMarshaler().fromNMS(message, normalizedMessage);
            chat.sendMessage(message);
            done(messageExchange);
        }
        catch (TransformerException e) {
            throw new MessagingException(e);
        }
        catch (XMPPException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

    // MessageExchangeListener interface
    //-------------------------------------------------------------------------
    public void onMessageExchange(MessageExchange exchange) throws MessagingException {
        NormalizedMessage inMessage = exchange.getMessage("in");
        if (inMessage == null) {
            throw new MessagingException("Null in message delivered!");
        }
        // Copy the message, in case the source is a closeable stream
        NormalizedMessage copy = exchange.createMessage();
        getMessageTransformer().transform(exchange, inMessage, copy);
        // Add it to the list
View Full Code Here

TOP

Related Classes of javax.jbi.messaging.MessagingException

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.