Hi,
I have a question.
In my StatelessSessionBean.,I have a bean method set to transaction
attribute ,Required.
Another method set to transaction attribute,RequiredNew as below.
I am not using XA datasource .And, I dont need a two phase commit.
I get the error message at runtime in methodB-
An illegal attempt to use multiple resources that have only one-phase
capability has occurred within a global transaction.
Can anyone let me know why I get this error?
MethodA (int i) //method A set to Required
{
//Makes call to Data Access Object to perform update in Oracle
database
//Calls method B
methodB(i);
}
methodB( int i) // methodB is set to RequiresNew
{
if(i == 100){
//makes call to Data Access Object to perform insert in Oracle
database
}
else{
//makes call to Data Access Object to perform update in DB2 database
}
}
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".