Now is working for me. I am trying to run a Seam Application under
Glassfish-v2ur2. In my case, I have two datasources (XA) using
com.mysql.jdbc.jdbc2.optional.MysqlXADataSource. I received a "Can not
commit transaction" error when calling methods annotated with @Restriction
that perform sql statements (or transactions). This is because the
permission store is served by one datasource, while the queries are served
by the second datasource (or the persistent unit).
But on the Glassfish server console (:4848) I checked the "Non Transactional
Connections" checkbox for both of the connections pools. And "voila" the
application ran perfectly, including transactional operations.
I have to dig deeper to understand why this setting for the mysql xa
datasource allows the seam/glassfish combination to work. Meanwhile, I hope
this helps.
glassfish-2 wrote:
>
> todd_at_tenglish-m1530:~$ asadmin version --verbose
> Version = Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)
> Command version executed successfully.
> [Message sent by forum member 'tenglish' (tenglish)]
>
> http://forums.java.net/jive/thread.jspa?messageID=338590
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
--
View this message in context: http://www.nabble.com/MySQL-XADataSource-doesn%27t-work-tp21917487p22834516.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.