cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing J2EE server time

Former Member
0 Kudos

Hi All,

In our landscape, we have several interfaces which output a file, with a time in the filename. This time is extracted from the message, where there is a header field named "time_sent". This header field has been achieved through the customization of certain Java libraries.

Now it has come to our attention that the time that is put in the file name (or the header field time_sent) is different from the actual time the message is processed.

For instance: A message is posted on 14:19 hrs, and a file is generated on 14:24 hrs. The operating system of the server on which the file is written says that the file was created on 14:24 hrs. However, in the filename and the header field the time_sent is not 14:19 as you would expect, but 12:19. (The server is in this case the same physical server on which the adapter engine is located, so that could not be the cause of the timeshift.)

It seems that the synchronization of the server and the J2EE stack has not been done correctly. I do not know how to do this unfortunately. Does anyone have any suggestions?

Regards and thanks in advance,

Yordy

Accepted Solutions (0)

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Might seem totaly out of context, but to create a file with the time Stamp, you can directly use the File adapter with the option ADD TIME STAMP for the construction mode itself. Maybe you can try this option and see if it works according to the requirements.

regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

I know that that is an option, and just adding a timestamp works fine, but the trick with this interface is that the customer wants to know the time the data has been sent, and not the time it arrives. So there's a slight difference with a normal timestamp

Regards,

Yordy

Former Member
0 Kudos

Anyone? Please?

Is there a way to check the timezone that is set in your J2EE?

Message was edited by: Yordy Minderhoud