Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tjMSoutput body with headers

Hi,

 

I wanted to send JMS Topic with body in Jason format and some headers associated with it.

 

I say tJMSOutput component but i do not see header anywhere.

 

Any help is greatly appreciated!

 

Thanks in advance

Labels (2)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

try - TalendDate.getCurrentDate().getTime() 

 

View solution in original post

8 Replies
vapukov
Master II
Master II

Hi

 

standard component tJMSOutput - do not contain header section, but you could check

tMOMOutput, if your MQ one from list - you will have headers in Advanced settings

Anonymous
Not applicable
Author

Thanks but do you have any sample values for those headers?
for e.g. i wanted to give sysdate to the header Timestamp. what value should i give it there?
vapukov
Master II
Master II


@harsh_kothari wrote:
Thanks but do you have any sample values for those headers?
for e.g. i wanted to give sysdate to the header Timestamp. what value should i give it there?

maybe getdate? 😉

 

0683p000009M33S.png

Anonymous
Not applicable
Author

IT worked! Thank you!!

 

I am getting error in JMSDestination as i am giving value as "com.scor.b2b.int.helios.in"

 

Can anyone please help me with this or provide me with a sample value?

 

Line 4819: javax.jms.Destination desJMS_tMomOutput_1=com.scor.b2b.int.helios.in;

 

Error

Execution failed : Job compile errors
At least job "Load_Bordereau" has a compile errors, please fix and export again.
Error Line: 4819
Detail Message: Syntax error on token "int", class expected
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.

vapukov
Master II
Master II

it need to read about JMS - possible it expect timestamp as linux Long/Integer (looking for error message it's true)

in this case just need to use different function

Anonymous
Not applicable
Author

Do you have sample different function?
vapukov
Master II
Master II

try - TalendDate.getCurrentDate().getTime() 

 

Anonymous
Not applicable
Author

It worked!

Do you have sample value for headers JMSDestination and JMSReplyTo?