Examples of WSIFException


Examples of org.apache.wsif.WSIFException

        Trc.entry(this, name);
        Queue q = null;
        try {
            q = (Queue) lookup(name);
            if (q == null)
                throw new WSIFException(
                    "WSIFJMSFinderForJndi was not able to lookup the Destination "
                        + name
                        + " in JNDI.Port="
                        + portName);
        } catch (ClassCastException cce) {
            Trc.exception(cce);
            throw new WSIFException(
                "WSIFJMSFinderForJndi caught ClassCastException. The Queue "
                    + name
                    + " in JNDI was not defined to be a queue. Port="
                    + portName
                    + " "
                    + cce);
        } catch (NamingException ne) {
            Trc.exception(ne);
            throw new WSIFException(
                "WSIFJMSFinderForJndi caught NamingException. The Queue "
                    + name
                    + " in JNDI was not defined to be a queue. Port="
                    + portName
                    + " "
View Full Code Here

Examples of org.apache.wsif.WSIFException

     */
    public void write(javax.jms.Message message) throws WSIFException {
        Trc.entry(this, message);

        if (!isCorrectMessageType(message))
            throw new WSIFException("Incorrect message type");

        if (message instanceof javax.jms.TextMessage)
            write((javax.jms.TextMessage) message);
        else if (message instanceof javax.jms.ObjectMessage)
            write((javax.jms.ObjectMessage) message);
        else
            throw new WSIFException(
                "Unsupported Message Type: " + message.getClass().getName());
        Trc.exit();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.