The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

darkandrew (1) [Avatar] Offline
#1
Hi all,

I have a new mission... I must make a two-phase commit with Mule or ServiceMix. Which is the easiest for you?? I have no knowledge in soa, eai and esb. The start point of my application is a jsf web form with different field. Data must be stored in a database and in a ldap. For now, it's just a model. But I think is a good start point to integrate an enterprise service bus. Could you give me some advice. Which technologies are the best to do that? How must I manage transaction in the esb?

Thanks a lot

Andrew
tijs.rademakers (494) [Avatar] Offline
#2
Re: two phase commit
Hi Andrew,

Two-phase commit is not that easy to start with. Currently Mule supports XA transactions for JMS, JDBC and VM transports (see http://www.mulesource.org/display/MULE2USER/Transaction+Management). So storing data in a database can be done with JDBC, but the LDAP storage is a bit difficult. For ServiceMix you are dependent on the JCA and JMS transport to create a transactional message flow (http://servicemix.apache.org/transactions.html). Single resource transactions are of course far more easy. So the question you should ask yourself first, do I really need a two-phase commit to do the database and LDAP storage.

Best regards,

Tijs