[jboss-dev-forums] [JBoss ESB Development] - Check if header element exists in message Response.

Carlos O do-not-reply at jboss.com
Tue Oct 26 08:49:12 EDT 2010


Carlos O [http://community.jboss.org/people/charlyjboss] created the discussion

"Check if header element exists in message Response."

To view the discussion, visit: http://community.jboss.org/message/568433#568433

--------------------------------------------------------------
Hi everyone, i'm using this platform for the first time, so maybe my question is very simple because i don't understand how it works, but i'm can't find the right way to solve this problem.

The situation:
I need to check if a header element exist in the reponse message, if it doesn't, i need to add one.
At first i try to solve this problem writing a xsl transformation with smooks, i check the entire message (selector="$document") and copy every element and adding a header if it wasn't present. It worked at first, but when i try to process messages with very large body, i keep geting timeouts because takes too much time to process.
So basically my question is, what is the right way to do this (check if the header element exists and add one if it doesn't)? it seems to be a common situation, but i couldn't find the right answer anywhere.

Thanks in advance.

PS. Sorry for my English  ;)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/568433#568433]

Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101026/2e5607c7/attachment.html 


More information about the jboss-dev-forums mailing list