Package javax.jbi.messaging

Examples of javax.jbi.messaging.MessagingException


        ComponentMBeanImpl lcc = broker.getContainer().getRegistry().getComponent(id.getName());
        if (lcc != null) {
            if (lcc.getDeliveryChannel() != null) {
                lcc.getDeliveryChannel().processInBound(me);
            } else {
                throw new MessagingException("Component " + id.getName() + " is shut down");
            }
        } else {
            throw new MessagingException("No component named " + id.getName() + " - Couldn't route MessageExchange " + me);
        }
    }
View Full Code Here


            queue = createQueue(cns);
        }
        try {
            queue.enqueue(me);
        } catch (InterruptedException e) {
            throw new MessagingException(queue + " Failed to enqueue exchange: " + me, e);
        }
    }
View Full Code Here

                                + "the messageExchange is not bound to the current thread");
                    }
                }
            }
        } catch (Exception e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

                    }
                    tm.resume(oldTx);
                }
            }
        } catch (Exception e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

            } finally {
                inboundSession.close();
            }
        } catch (JMSException e) {
            log.error("Failed to send exchange: " + me + " internal JMS Network", e);
            throw new MessagingException(e);
        }
    }
View Full Code Here

                me.setTxState(MessageExchangeImpl.TX_STATE_ENLISTED);
            }
            sendJmsMessage(new ActiveMQQueue(destination), me, isPersistent(me), me.isTransacted());
        } catch (JMSException e) {
            log.error("Failed to send exchange: " + me + " internal JMS Network", e);
            throw new MessagingException(e);
        } catch (SystemException e) {
            log.error("Failed to send exchange: " + me + " transaction problem", e);
            throw new MessagingException(e);
        }
    }
View Full Code Here

            SAXResult result = new SAXResult(handler.getContentHandler());
            transformer.toResult(message.getContent(), result);
            XmlObject object = handler.getObject();
            return evaluateXPath(object, xpath, options);
        } catch (TransformerException e) {
            throw new MessagingException(e);
        } catch (XmlException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

    private static void copyContent(NormalizedMessage from, NormalizedMessage to) throws MessagingException {
        String str = null;
        try {
            str = new SourceTransformer().toString(from.getContent());
        } catch (Exception e) {
            throw new MessagingException(e);
        }
        if (str != null) {
            to.setContent(new StringSource(str));
        }
    }
View Full Code Here

            FileUtil.copyInputStream(source.getInputStream(), baos);
            ByteArrayDataSource bads = new ByteArrayDataSource(baos.toByteArray(), source.getContentType());
            bads.setName(source.getName());
            return bads;
        } catch (IOException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

                variableContext.setExchange(exchange);
                variableContext.setMessage(message);
                return evaluateXPath(object);
            }
        } catch (TransformerException e) {
            throw new MessagingException(e);
        } catch (JaxenException e) {
            throw new MessagingException(e);
        } catch (ParserConfigurationException e) {
            throw new MessagingException(e);
        } catch (IOException e) {
            throw new MessagingException(e);
        } catch (SAXException e) {
            throw new MessagingException(e);
        }
    }
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.