Hi,
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
Thanks.
Have you looked at the jBPM integration with ESB? If you're looking at task-oriented programming (e.g., do this, then that, and if this then go the other) then you should look at jBPM, which can co-exist with the ESB.