Posted: Tue Mar 18, 2008 3:22 am Post subject: Good Practice
Apprentice
Joined: 06 Feb 2007 Posts: 35
Scenario: My Applciation will send different types of XML messages to one single Q for a message flow.
XML messages are left with no clue what is the type of the message. No specific fileds like MessageType / TransactionType are sent along with the messages.
Is it a good way to identify the type of XML message based on Root XML tag of the message?
Please give your suggestions...
Posted: Tue Mar 18, 2008 3:32 am Post subject: Re: Good Practice
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
Lucky wrote:
Is it a good way to identify the type of XML message based on Root XML tag of the message?
If that's all you've got (nothing in an RFH2 header, all piled up on the same queue, etc) then it sounds like it's the only way. It's also not a bad way of doing it in terms of performance, coding and so forth. Does rely on the root tag being unique of course. _________________ Honesty is the best policy.
Insanity is the best defence.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum