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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Talend ESB Routing on xmlTag

Hi there,

 

I´m having problems with creating a route. 

I´m subscribed on an ActiveMQ and I´m ready to receive messages from the topic. cLog works fine and the message can be received.

 

Now I want to create the following scenario:

 

My receiving XML looks like this:

 

<?xml version="1.0" encoding="UTF-8"?>
<bc:Notification xmlns:seek="urn:www-talend-test-ns/3.0/seekUserRequest" >
   <lib:User ID="12345">

or

<?xml version="1.0" encoding="UTF-8"?>
<bc:Notification xmlns:seek="urn:www-talend-test-ns/3.0/seekUserRequest" >
   <lib:Company ID="123">

I want to route now the incoming XML to an Talend Job, based if it is <lib:User> or <lib:Company>.

 

I tried several versions with

- cJMS -> cSetHeader -> cRecipientList -> cDirect (i get error "Failed to resolve endpoint: direct:" when defined "direct:${header.operationName}" in RecipientList) 

- cJMS -> cMessageRouter -> when (i dont have a criteria expect lib:company or lib:user)

 

But it won´t work.

 

Hopefully someone has a solution for me so that I can call a TalendDI-Job for the correct route.

 

Thx to all....

 

Labels (2)
1 Reply
Anonymous
Not applicable
Author

okay found the solution by myself...

 

it was a misspelling in namespaces, it works now.