-
1. Re: How to start with JBoss Transactions
michal_szymanski Jun 8, 2010 5:54 AM (in response to michal_szymanski)Regarding ORB specific class creation failed - unable to find supported ORB I've found http://community.jboss.org/message/512966 and I've commented com.arjuna.ats.arjuna.recovery.recoveryActivator_1 but I still has the same error
-
2. Re: How to start with JBoss Transactions
mmusgrov Jun 8, 2010 6:01 AM (in response to michal_szymanski)I don't have the anwers to all of your questions but here's something to get you started:
The scripts start-recovery-manager.bat or start-transaction-service.bat are for running the transaction and recovery services in a distributed environment without an application server. For this you will need the JTS version of the JBossTS transaction product (it comes in two flavours). The documentation set describes the JTS.
Personally, I would suggest if you really do want to use a transaction manager in a distributed environment then just run it inside an application server. But I suspect you just want local transactions.
Why can't you use the Tomcat running in the JBoss app server - that already has the JBossTM integrated. These days hardware is fast enough that running an App Server is not a big deal resource wise.
If you really do want to use JBossTM with a standalone Tomcat then we do have an unsupported integration. The readme is quite enlightening: http://anonsvn.jboss.org/repos/labs/labs/jbosstm/workspace/jhalliday/tomcat-integration/README.txt
Hope this helps to get you started.
-
3. Re: How to start with JBoss Transactions
michal_szymanski Jun 8, 2010 6:17 AM (in response to mmusgrov)>Why can't you use the Tomcat running in the JBoss app server - that already has the JBossTM integrated. These days hardware is fast enough that >running an App Server is not a big deal resource wise.
I think it is best solution for us. As I uderstand we can you JbossTM functionality without using EJB, am I right? At least for the begining we would like to use JBossTM with 'plain' JDBC, other words we would like to write in our systems something similar to this:
UserTransactionManager
utm=new UserTransactionManager();
utm.init();
utm.begin();
Connection conn = ds.getConnection();
<operations on DB>
conn.close();
utm.commit();Simply for the begining we would like to use local transactions and afterm maybe use Spring.
Sorry that my questions are quite stupid but I've just returned to Java after few years of break
Michal Szymanski
-
4. Re: How to start with JBoss Transactions
mmusgrov Jun 8, 2010 6:23 AM (in response to michal_szymanski)I think it is best solution for us. As I uderstand we can you JbossTM functionality without using EJB, am I right? At least for the begining we would like to use JBossTM with 'plain' JDBC, other words we would like to write in our systems something similar to this:
UserTransactionManager
utm=new UserTransactionManager();
utm.init();
utm.begin();
Connection conn = ds.getConnection();
<operations on DB>
conn.close();
utm.commit();You can write code like that using servlets or with POJOs if you are using JBoss 5. Surely at some point you will need to move your code into a container of sorts.
-
5. Re: How to start with JBoss Transactions
mauromol Jul 15, 2010 10:06 AM (in response to michal_szymanski)In my team we have embedded JBossTS into our webapp. This webapp is usually run in Tomcat. The task is not easy, however it's possible.
I suggest you do the following:
- download JBossTS full distribution
- start to read docs in atsintegration (IntegrationGuide.pdf)
- then read all the guides in ArjunaCore and in ArjunaJTA
ArjunaCore explains how the core of JBossTS works and many of the concepts will apply to JDBC transactions too.
ArjunaJTA should be more specific for the use of JBossTS with JTA.
Mauro.