Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002529 [Resin] minor always 03-14-08 13:14 04-08-08 14:33
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.1.5
Summary 0002529: EJB XA bean issue
Description (rep by Daniel D'Alessandro)

I've noticed a fairly major change in the transactional behaviour in the
snapshot from 2008-03-04

basically if I have a session bean set up in the following manner

public interface IFoo
{
  public method1();

  public method2();
}

@Stateless
@Local ({IFoo.class})
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public class FooImpl implements IFoo
{
  public method1()
  {
       //do stuff
  }

  public method2()
  {
     method1()
     //do stuff
  }
}

now under the older resin (and other appservers I've used) the call from
method2 to method1 would not result in a new transaction, instead method1
would participate in the transaction started by method2. To get the
requires new you would have to call another instance of Foo.
In the snapshot method1 called in this manner will start a new transaction if it is on
the local interface.

Additional Information
Attached Files

- Relationships

- Notes
(0002948)
ferg
04-08-08 14:33

ejb/12a0, ejb/12a8
 

- Issue History
Date Modified Username Field Change
03-14-08 13:14 ferg New Issue
04-08-08 14:33 ferg Note Added: 0002948
04-08-08 14:33 ferg Assigned To  => ferg
04-08-08 14:33 ferg Status new => closed
04-08-08 14:33 ferg Resolution open => fixed
04-08-08 14:33 ferg Fixed in Version  => 3.1.6


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker