1 Reply Latest reply on Sep 3, 2007 10:44 AM by Mark Little

    Service Design

    Andre Fernando Salvati Novice


      I've been wondering what would be the best design in the following situation...

      There is an entity (EJB3) called PostalCode which can be updated in some sittuations. When I update it, I want to call another service in order to do some other tasks.

      What would be the best?

      1 ) Call service from my EJB passing it from a Producer to a Consumer. This sounds weird because it seems that I'm subverting layers (EJB calling Integration).

      ESB -> EJB -> Another Service

      2) Indicate to ESB a sittuation where it should redirect a message to another service.

      ESB -> EJB throws BussinessException -> ESB -> Another Service