Hi I am looking for some material related to distributed transactions (Is it 2-PC ? ). Any example that uses both database updates and JMS in the same transaction ? Mohan
-----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED] Behalf Of Johan Eltes Sent: Saturday, August 30, 2003 6:18 PM To: [EMAIL PROTECTED] Subject: Re: EJB and JMS You need to use a JDBC XADataSource and a JMS XAQueueConnectionFactory/XATopicConnectionFactory to achieve two-phase-commit across JMS-and jdbc operations. However, the env-entries in your deployment descriptors should still specify javax.sql.DataSource and javax.jms.QueueConnectionFactory (or javax.jms.TopicConnectionFactory), not javax.sql.XADataSource and javax.jms.XAQueueConnectionFactory, which one may think. /Johan Den 03-08-30 14.12, skrev "MOHAN RADHAKRISHNAN" <[EMAIL PROTECTED]>: > Hi > I am looking for a way to rollback my database transaction and the > published JMS message together. How isit usually done ? If the database > insertion fails, the published message should also rollback. Is it possible > ? > > Mohan > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
