Re: EJB and JMS

Johan Eltes <[email protected]>
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <BB7669B6.7587%[email protected]>
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".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.