Package javax.jbi.messaging

Examples of javax.jbi.messaging.MessagingException


            removeExpiredEntries(feed);
            writeFeed(feed, exchange, message);
            done(exchange);
        }
        catch (IOException e) {
            throw new MessagingException(e);
        }
        catch (FeedException e) {
            throw new MessagingException(e);
        }
        catch (TransformerException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here


              out.setContent(new DOMSource(result.getNode(), result.getSystemId()));
                return true;
             }
        }
        catch (SAXException e) {
            throw new MessagingException(e);
        }
        catch (IOException e) {
            throw new MessagingException(e);
        }
        catch (ParserConfigurationException e) {
            throw new MessagingException(e);
    }
        catch (TransformerException e) {
            throw new MessagingException(e);
    }
    }
View Full Code Here

            // lets output a builder
            DocumentBuilder documentBuilder = getDocumentBuilder();
            namespace.put("builder", new DOMBuilder(documentBuilder));
        }
        catch (ParserConfigurationException e) {
            throw new MessagingException("Failed to create DOM DocumentBuilder: " + e, e);
        }
    }
View Full Code Here

                exchange.setFault(fault);
            }
            return true;
        }
        catch (WSIFException e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

            marshaler.fromNMS(asExchange, inMessage);
            service.invoke(asExchange);
   
            done(messageExchange);
        } catch (XMLStreamException e) {
            throw new MessagingException(e);
        } catch (Exception e) {
            throw new MessagingException(e);
        }
    }
View Full Code Here

                    wsifMessage.setObjectPart(name, value);
                }
            }
        }
        catch (TransformerException 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

        exchange.setMessage(msg, "in");
        boolean result = this.getDeliveryChannel().sendSync(exchange);
        if (result) {
            return exchange.getMessage("out");
        }
        throw new MessagingException("Could not invoke service: " + service);
    }
View Full Code Here

        if (value != null) {
            if (value instanceof Node) {
                return (Node) value;
            }
            else {
                throw new MessagingException("Invalid property type: Expected W3C DOM node but found: " + value.getClass().getName() + " with value: " + value);
            }
        }
        else {
            Source content = message.getContent();
            if (content != null) {
View Full Code Here

        }
    }

    protected void checkNotClosed() throws MessagingException {
        if (closed.get()) {
            throw new MessagingException("DeliveryChannel has been closed.");
        }
    }
View Full Code Here

          resumeTx(me);
            me.handleAccept();
          return me;
        }
        catch (IllegalStateException e) {
            throw new MessagingException("DeliveryChannel has been closed.");
        }
        catch (InterruptedException e) {
            throw new MessagingException("accept failed", 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.