Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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....
okay found the solution by myself...
it was a misspelling in namespaces, it works now.