Wrong Timezone in a JMS Message Received from Database Server Queue (AQ)

(Doc ID 883488.1)

Last updated on SEPTEMBER 06, 2017

Applies to:

Oracle Containers for J2EE - Version and later
Information in this document applies to any platform.


A PL/SQL program sends JMS messages to AQ queues configured on 10.2 Oracle Database server.
A J2EE application, deployed into 10.1.3 OC4J, receives  JMS messages via OJMS provider. 

The enqueued  messages (via PL/SQL program) are received by the Message-Driven Bean (MDB) inside the J2EE application:

public void onMessage(Message message) {
  long l = message.getJMSTimestamp();

The issue is that timestamp value (timezone field value ) of the message (received by invoking method message.getJMSTimestamp() )  has not the same value as the timestamp of the message sent from the database. One hour difference can be observed between the sent and received message.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms