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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to add a new message to ActiveMQ using tInputFile and tJMSOutout ?

I'm trying to create a a sample job which adds a new message to Apache Active MQ server.

 

1. Using tInputFile to take read a string from file.

2. using tJMSoutput to send a message to MQ server.

 

I'm getting the compiling error from tJMSOutput component.

Labels (3)
1 Solution

Accepted Solutions
vapukov
Master II
Master II

0683p000009LyPC.png

 

You have input fileContent, output message

tMomOutput not understand this, You could:

  1. input tMap before tMomOutput for map one column to other (definitely work)
  2. or try do this in tConvertType, not sure - need test

View solution in original post

7 Replies
vapukov
Master II
Master II

generally all work, error mean - You make some mistakes in components configuration

 

0683p000009Lycj.png

 

what error? it is not possible to guess, unless You hide information 

Anonymous
Not applicable
Author

I'm creating this simple job to read a file as 'string' and send that file content to Apache Active MQ server from tJMSOutput component.

 

Please find attachment for more information, Please let me know if there is any info requirement. Please help me solving the issue. I'm new to Talend ESB

 

0683p000009LxxS.jpgJob Overview0683p000009LyYs.jpgtInputFile properties0683p000009Lye1.jpgtInputFile schema0683p000009Ly6L.jpgtJMSOutput properties0683p000009LyVe.jpgtJMSOutput schema0683p000009LyXu.jpgError message0683p000009LyMV.jpgError showing in code0683p000009Lye6.jpgError showing in code

 

 

 

Anonymous
Not applicable
Author

I have also tried it with jMOMOutput component but I'm getting the same error "Message cannot be resolved or not a field"

 

0683p000009LyeB.jpg0683p000009LyeG.jpg0683p000009LyeL.jpg

vapukov
Master II
Master II

You use wrong type conversion

 

You are try to convert object to String

 

tFileInputRaw - read whole context of file as row, if You want process row by row - use tFileInputDelimitter

with 1 column - message and delimiter | or what not present in Your file

if 1 file 1 message - use tConvertType for convert Object to String

it work

Anonymous
Not applicable
Author

 

Hello Sir,

 

I've tried this way also. But it's not working. It's giving the same error "message cannot be resolved or is not a field"

I've also tried it with tInputDelimited component.

 

0683p000009Lxu6.jpgJob and tFileInputRaw properties0683p000009LyBA.jpgtConvertType properties0683p000009LyYn.jpgtConverType Schema0683p000009LyNC.jpgtMOMOutput properties0683p000009Lyep.jpgtMomOutput Schema0683p000009LyUC.jpgtextSample.txt (Input File)

vapukov
Master II
Master II

0683p000009LyPC.png

 

You have input fileContent, output message

tMomOutput not understand this, You could:

  1. input tMap before tMomOutput for map one column to other (definitely work)
  2. or try do this in tConvertType, not sure - need test
Anonymous
Not applicable
Author

You sir, are awesome. tMap worked. Thanks a lot for bearing me.

0683p000009Lyeu.jpgMapping0683p000009Lyez.jpgtMap0683p000009Lyeg.jpgQueue Created