Examples of CourierMarshalUnmarshalException


Examples of org.jboss.soa.esb.couriers.CourierMarshalUnmarshalException

                        {
                            throw new CourierTransportException(e);
                        }
                        catch (final IOException e)
                        {
                                throw new CourierMarshalUnmarshalException(e);
                        }
                        catch (final ParserConfigurationException e// it's no longer thrown so we can ignore it!
                        {
                                throw new CourierException(e);
                        }
                }

                tmpFile = null;
               
                try
                {
                        Method upload = handler.getClass().getMethod("uploadFile",
                                        new Class[]
                                        { File.class });

                        String sDir = FtpUtils.getLocalDir();
                        File dir = new File(sDir);
                        String name = message.getHeader().getCall().getMessageID().toString();
                       
                        name += _inputSuffix;
                       
                        tmpFile = CourierUtil.messageToLocalFile(dir, message);

                        File messageFile = new File(dir, name);
                        FileUtil.renameTo(tmpFile, messageFile);
                        tmpFile = messageFile;

                        upload.invoke(handler, new Object[]
                        { messageFile });
                        return true;
                }
                catch (final IOException ex)
                {
                    throw new CourierMarshalUnmarshalException(ex);
                }
                catch (final Exception e)
                {
                        throw new CourierException(e);
                }
View Full Code Here

Examples of org.jboss.soa.esb.couriers.CourierMarshalUnmarshalException

                        {
                            throw new CourierTransportException(ex);
                        }
                        catch (final IOException ex)
                        {
                            throw new CourierMarshalUnmarshalException(ex);
                        }
                        catch (final CourierException ex)
                        {
                            throw ex;
                        }
View Full Code Here

Examples of org.jboss.soa.esb.couriers.CourierMarshalUnmarshalException

        // Create the JMS message from the serialized ESB message...
        try {
            msg = getJmsSession(_epr.getAcknowledgeMode()).createObjectMessage(Util.serialize(message));
        } catch (JMSException e) {
            throw new CourierMarshalUnmarshalException("Failed to serialize ESB Message.", e);
        } catch (ParserConfigurationException e) {
            throw new CourierMarshalUnmarshalException("Failed to serialize ESB Message.", e);
        } catch (IOException e) {
            throw new CourierMarshalUnmarshalException("Failed to serialize ESB Message.", e);
        }

        // Set the JMS message from the ESB message...
        try {
            setJMSProperties(message, msg);
        } catch (final JmsConnectionFailureException jcfe) {
            throw jcfe ;
        } catch (final IllegalStateException ise) {
            throw ise ;
        } catch (JMSException e) {
            throw new CourierMarshalUnmarshalException("Failed to set JMS Message properties from ESB Message properties.", e);
        }

        return internalDeliver(msg);
    }
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.