I'm trying to insert an XML document into Apache Active MQ queue.
1. Using tXMLMap to create a XML document.
2. Using tConvertType to convert the XML document to string.
3. Using tJMSOutput to send the message to Active MQ.
But I'm getting compiler error at tJMSOutput component.
Please find screenshots for the reference
Solved! Go to Solution.
Hey Middlewareguy, I've been getting the same error as you and have been trying to understand your solution. Could you let me know more specifically how you used the tMap component?
I tried it in between the tXMLMap and tConvertType, and then tried between tConvertType and tMSOutput but still getting the same error. Any help is greatly appreciated!
I used the tMap between tConvertType and tJMSOutput.
I mapped the field of tConvertType directly to tJMSOutput in map editor of tMap.
tJMSOutput takes the "string" type only inout while tXMLMap throws a "document" type output.
So using tConvertType, convert the "document" type to "String" type then using tMap, map the "string" type field directly to the "string" type to the tJMSOutput.
Also try syncing the schemas.
Thanks Middlewareguy I appreciate your response, not expecting you to jump down the rabbit hole with me but wanted to reply
I still seem to be having the same error after adding the tmap, activemq appears to be running fine but still seeing the log not being resolved. Does this look right?
Is there a restriction that you'll have to use tJMSOutput only?
Because tMOMOutput can do the same job perfectly without the error.
Reason of error might be that tJMSOuput take input as an "object" and you're to feed it a string.
So use tMOMOutput as it take "string type" input and doesn't throw and error.