How is the JMSTimeStamp imported from RV message to EMS?

How is the JMSTimeStamp imported from RV message to EMS?

book

Article ID: KB0086388

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
=====================
How is the JMSTimeStamp imported from RV message to EMS?

Resolution:
=====================

To use the JMSTimestamp imported from a RV message, you should create a JMSHeaders sub-message with JMSTimestamp filed set defined within it. For example, use following code snippet to send a RV message:

===================
       {
            // Send one message for each parameter
            while (i < args.length)
            {
                System.out.println("Publishing: subject="+msg.getSendSubject()+
                            " \""+args[i]+"\"");
                msg.update(FIELD_NAME,args[i]);

                TibrvMsg jmsheaders = new TibrvMsg();

               jmsheaders.add("JMSTimestamp", System.currentTimeMillis());
               msg.add("JMSHeaders", jmsheaders);

                System.out.println("publishing message: " +msg);
                transport.send(msg);
                i++;
            }

=====================

After the RV message is imported into EMS, the JMSTimestamp fiield set will be left intact. For the imported RV messages without the JMSTimestamp field set, the behavior has changed since EMS version 6.1:

1). For EMS servers prior to version 6.1, JMSTimestamp will not be set after import to EMS.

2). For EMS servers at/after version 6.1, the EMS server will  set the JMSTimestamp to the arrival time as default behavior. If you want to switch back to the behavior prior to version 6.1, you can set folloiwng parameter in EMS main conf: "timestamp_imported_msgs = disabled".

Issue/Introduction

How is the JMSTimeStamp imported from RV message to EMS?