Re: EJB and JMS
MOHAN RADHAKRISHNAN <[email protected]>
| Newsgroups | gmane.comp.java.sun.ejb.general |
|---|---|
| Message-ID | <000001c36fec$04205a60$fdd8d6d2@mohan> |
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]]On 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".