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".
