2 Replies Latest reply on Jul 10, 2009 10:28 AM by Ryan Hochstetler

    ContentBasedRouter vs ServiceInvoker

    Kenneth Bowen Newbie

      I have a simple use case where the message contains one of several (java) types. I'd like to route to different services, depending on type.

      I looked at the ContentBasedRouter, but am tempted to just do an instanceOf in my action and route with a ServiceInvoker.

      Is there an advantage to one approach over the other? Using a ServiceInvoker looks much simpler in my case - no drools files, etc.