Skip to main content

JTA Transactions

2 replies [Last post]
ashj_chugh
Offline
Joined: 2010-02-11

Hi,

I want to use JOTM JTA transaction manager in J2SE environment. Is it safe to use it or are there any issues in using JTA in J2SE environment.

Regards,
Ashwani

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ashj_chugh
Offline
Joined: 2010-02-11

Please help me. As I am urgently in need of using JTA trasnactions in the application that do not have an application server like JBOSS or WebSphere.

Is there any good JTA transaction manager I can use and also please let me know if there is any side-effect of using JTA in non-J2EE environment.

Thanks,
Ashwani

ashj_chugh
Offline
Joined: 2010-02-11

Hi,

Here is my overall design scenario:

There is a shared code which is called through a web application with J2EE environmanet as well as a daemon program (Core Java program with its own main()). Now, the shared code needs to use JTA transactions. I used JBOSS transactionmanager for JTA transactions in common code which worked fine if called from web application in J2EE environment.

Now, the problem is that when that shared code is called through a daemon program (Non J2EE Core Java program with its own main), it can't initiate JTA transactions as it doesn't have access to JBOSSTransaction manager.

So, i need to know about some Transaction Manager that can work both in J2EE and non-J2EE environment as the code is shared across both j2EE and non-J2EE environments. One option os JOTM transaction manager. Can you pls. tell me if there are any side-effects / issues of using JTA transactions though JOTM in each of:-

a) J2EE environment
b) Non-J2EE environment.

Regards,
Ashwani