Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » J2EE Pattern »

Re: Problem in Using Database.

Pradeep Kumar

2004-01-11


You are not supposed to start a thread or do anything in your EJB. Especially if you are using XA, since this will interfere with the XA transaction manager.

 

-----Original Message-----
From: Anil Kumar [mailto:anil007dc@YAHOO.COM]
Sent: Monday, January 12, 2004 7:15 AM
To: J2EEPATTERNS-INTEREST@JAVA.SUN.COM
Subject: Problem in Using Database.

 

Hi,

 

 I am trying to do the following.

I am using XA Datasource for DB2/390 from my application. In my application I am having a session beans and Domain objects and Data Access objects. we are using websphere Application Server 5.0

 

We are using XA Datasource because we need to insert and update tables in multiple databases.

 

I had a problem when I try to update some records and try to access the same records in the same transaction. I am getting Invocation Exception.

 

Here are some questions

 

1) I want to create a class extending thread and start thread from EJB state less session Brean so that I can do the update and selection of rows from the database external to the Global Transaction

 

Any suggestions.

 

Thanks

Anil


Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. ==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@java.sun.com

©2008 junlu.com - Jax Systems, LLC, U.S.A.