Examples of JMSBindingException


Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            producer.close();
            session.close();

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        } catch (NamingException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            throw new JMSBindingException(e);
        }
    }

    protected void sendFaultReply(Message requestJMSMsg, Exception e) {
        sendReply(requestJMSMsg, new JMSBindingException("exception invoking JMS service", e));
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {

            return message.getStringProperty(operationPropertyName);

        } catch (JMSException e) {
            throw new JMSBindingException("Exception retreiving operation name from message", e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {

            message.setStringProperty(operationPropertyName, operationName);

        } catch (JMSException e) {
            throw new JMSBindingException("Exception setting the operation name on message", e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {
            if (msg.getBooleanProperty(JMSBindingConstants.FAULT_PROPERTY)) {
                throw new ServiceRuntimeException("remote service exception, see nested exception",(Throwable)((ObjectMessage)msg).getObject());
            }
        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
        if (xmlFormat) {
            return extractXMLPayload(msg);
        } else {
            return extractObjectPayload(msg);
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

                o = new Object[]{};
            }
            return o;

        } catch (XMLStreamException e) {
            throw new JMSBindingException(e);
        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

        try {

            return ((ObjectMessage)msg).getObject();

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            }

            return message;

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            ObjectMessage message = session.createObjectMessage(); // default
            message.setObject((Serializable)o);
            return message;

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.binding.jms.impl.JMSBindingException

            message.setObject(o);
            message.setBooleanProperty(JMSBindingConstants.FAULT_PROPERTY, true);
            return message;

        } catch (JMSException e) {
            throw new JMSBindingException(e);
        }
    }
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.