on 03-17-2008 11:13 AM
Hi,
I'm getting an output message from XI in the format below
#1.5
#00145E489D04016C0001031700130074000447C39A926E35#1204805344325#.................................
I would like to know how I could get a time stamp out of this message. If possible using a JAVA program.
Thanks,
Roshan
Rama,
The value what you have is the filename or the output payload message from XI? Can you please be more specific?
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry,
I was mistaken.
This is a representation of the Time Stamp of a JAVA default trace file.
I want to convert this string to a time stamp.
how do i go about doing this?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if the time stamp is from the payload , u have to extract this from the payload using a user defined function or the substring functionality . Once it is extracted, map it to the output xml tag and after you do that you have to check the variable substitution option in you receiver adapter , after which you can use it easlily.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
If the you want to extract the time stamp from the payload you can write a user defined function in you message mapping in which you can have the code for extracting the time stamp . And once the time stamp is extracted throgh the code you can assign it to the appropriate target tag.
But if you just need a timestamp appended to the file created you only have to check the time stamp option in the outbound processing parameters of your receiver file adapter.
Thanks & regards,
Rahul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.