This content has been marked as final. Show 3 replies
If you decouple your db adapter into a diferent composite, that helps because you can call that service from whichever composite required...
Keeping the db adapter in a mediator is a good approach, Decoupe is always good.1 person found this helpful
That particular mediator can be reused in another composite. That will reduce a db call from your design.
Keep the DB Adapter in a separate composite is a good decision, but you should remember about a transaction context. If your DB adapter is into a separate composite and this composite invoked by webservice then a transaction context do not be propagate by default. You should use WS-AtomicTransactions or Direct Binding between the composites.