j***@gmail.com
2006-04-21 17:34:18 UTC
Hi,
I have a stateless session bean, there are 2 business method.
public ProcessBean(){
...
processAll();
processOne(JobID id);
...
}
processAll() method has a loop to call processOne(id) to do each
process like this
for (int i=0;i<size;i++){
processOne(i);
}
I want to each processOne(id) start a new transacation, I just put
"requiresNew" attribute on ejb-jar.xml for processOne, and put
"NotSupport" for processAll. but it looks I don't get new transaction
in each processOne.
what is wrong for this?
thanks
John
I have a stateless session bean, there are 2 business method.
public ProcessBean(){
...
processAll();
processOne(JobID id);
...
}
processAll() method has a loop to call processOne(id) to do each
process like this
for (int i=0;i<size;i++){
processOne(i);
}
I want to each processOne(id) start a new transacation, I just put
"requiresNew" attribute on ejb-jar.xml for processOne, and put
"NotSupport" for processAll. but it looks I don't get new transaction
in each processOne.
what is wrong for this?
thanks
John