Package hermes.xml

Examples of hermes.xml.XMLObjectMessage


        bytesRval.writeBytes(base64EncoderTL.get().decode(bytesMessage.getBytes().getBytes()));
      } else if (message instanceof XMLObjectMessage) {
        rval = hermes.createObjectMessage();

        XMLObjectMessage objectMessage = (XMLObjectMessage) message;
        ObjectMessage objectRval = (ObjectMessage) rval;
        ByteArrayInputStream bistream = new ByteArrayInputStream(base64EncoderTL.get().decode(objectMessage.getObject().getBytes()));

        ObjectInputStream oistream = new ObjectInputStream(bistream);

        objectRval.setObject((Serializable) oistream.readObject());
      }
View Full Code Here


        bytesRval.setBytes(new String(base64EncoderTL.get().encode(bosream.toByteArray())));
      } else if (message instanceof ObjectMessage) {
        rval = factory.createXMLObjectMessage();

        XMLObjectMessage objectRval = (XMLObjectMessage) rval;
        ObjectMessage objectMessage = (ObjectMessage) message;

        ByteArrayOutputStream bostream = new ByteArrayOutputStream();
        ObjectOutputStream oostream = new ObjectOutputStream(bostream);

        oostream.writeObject(objectMessage.getObject());
        oostream.flush();
        byte b[] = base64EncoderTL.get().encode(bostream.toByteArray());
        String s = new String(b, "ASCII");
        objectRval.setObject(s);
      }

      if (message.getJMSReplyTo() != null) {
        rval.setJMSReplyTo(JMSUtils.getDestinationName(message.getJMSReplyTo()));
        rval.setJMSReplyToDomain(Domain.getDomain(message.getJMSReplyTo()).getId());
View Full Code Here

TOP

Related Classes of hermes.xml.XMLObjectMessage

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.