[jboss-user] [JCA/JBoss] - Re: Why JBoss is using XA if I only have local-tx datasource

2008-03-19 Thread gsniderJBoss
You'll have to elaborate a little. What is the driver class in your local-tx datasource? If the driver doesn't support XA then it really won't matter what the app server is doing. (there's more to that but the point is we need to know what your configuration is) What are you seeing that makes

[jboss-user] [JCA/JBoss] - Completely confused JCA and Hibernate

2008-03-14 Thread gsniderJBoss
My apologies. I've searched and searched. I'm confused about my current configuration for Hibernate. Basically we use Hibernate.getCurrentSession() to 'get' and 'save' information. We have CMT and an XA-datasource configured. Is Hibernate using any part of JCA for its work? (the example mysq

[jboss-user] [JCA/JBoss] - Re: Stateless EJB calling WorkManager directly - legal?

2008-03-12 Thread gsniderJBoss
Thanks, I assumed I would need to make these calls to an RA. But let's suppose I do that. Will that help my transaction issue? Will the RA be treated as a resource manager (for inclusion in XA)? In other words, will the following be true if I write and deploy an RA that makes the calls to Wo

[jboss-user] [JCA/JBoss] - Re: Stateless EJB calling WorkManager directly - legal?

2008-03-07 Thread gsniderJBoss
Note about above: the call to WorkManager.scheduleWork takes an empty ExecutionContext. I've considered creating an ExecutionContext and setting the Xid to simulate transaction-importing. But I cannot for the life of me get the Xid of the first transaction (TX1 above). So if anyone has ideas

[jboss-user] [JCA/JBoss] - Stateless EJB calling WorkManager directly - legal?

2008-03-07 Thread gsniderJBoss
If a stateless EJB gets a JBossWorkManager (see code below) without going through an RA, should everything still work? The problem I'm seeing is: 1) A CMT transaction TX1 is created in the EJB via hibernate call. 2) the ejb schedules work in the WorkManager [workManager.scheduleWork(myWork, Work

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - CMP transactions in hibernate and using WorkManager

2008-03-04 Thread gsniderJBoss
First, the environment: One EJB and one database table (SearchSession) managed by Hibernate. JBoss 4.2.2 GA and MySQL 5.x on Windows XP Pro Using CMP, the ejb saves a session in the table and saves the PK id. Then 3 tasks need to be completed asynchronously so we use the javax.resource.spi.work