com.ibm.websphere.webmsg.publisher.jndijms

Class JmsWebObjectMsg

    • Field Detail

      • OBJECT_MESSAGE

        public static final java.lang.String OBJECT_MESSAGE
        Message type - Object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JmsWebObjectMsg

        public JmsWebObjectMsg(java.lang.String target,
                       java.io.Serializable obj)
        Constructor
        Parameters:
        target - - target to send message too.
        obj - - Serializable object to send.
      • JmsWebObjectMsg

        public JmsWebObjectMsg(java.lang.String destination,
                       java.lang.String target,
                       java.io.Serializable obj)
        Constructor
        Parameters:
        destination - Destination (SIBus specific)
        target - Target to send message to
        obj - serializable object to send
      • JmsWebObjectMsg

        public JmsWebObjectMsg(java.lang.String destination,
                       java.lang.String target,
                       java.io.Serializable obj,
                       long messageID)
        Constructor
        Parameters:
        destination - Destination (SIBus specific)
        target - Target to send message to.
        obj - serializable object to send
        messageID - MessageID for message.
    • Method Detail

      • getSerializable

        public java.io.Serializable getSerializable()
        Get serializable object
        Returns:
      • getData

        public java.lang.Object getData()
        Description copied from class: JmsWebMsg
        Get data as Object
        Specified by:
        getData in interface WebMessage
        Specified by:
        getData in class JmsWebMsg
        Returns:
        the data attached to the message as a Java Object.
        See Also:
        JmsWebMsg:getData
      • getJmsMessage

        public javax.jms.Message getJmsMessage(javax.jms.Session session)
                                        throws javax.jms.JMSException
        Description copied from class: JmsWebMsg
        Given a JMS session, return new JMS message for this web message.
        Specified by:
        getJmsMessage in class JmsWebMsg
        Parameters:
        session - Existing JMS session.
        Returns:
        JMS Message
        Throws:
        javax.jms.JMSException - If error creating message.
        See Also:
        JmsWebMsg:getJmsMessage
IBM WebSphere Application Server [webmsg.publisher]