Wednesday May 30, 2012

Transactional Interceptors in Java EE 7 - Request for feedback

Linda described how EJB's container-managed transactions can be applied to the Java EE 7 platform as a whole using a solution based on CDI interceptors. This can then be used by other Java EE components as well, such as Managed Beans.


The plan is to add an annotation and standardized values in the javax.transaction package. For example:

@Target({TYPE, METHOD})
public @interface Transactional {
   TxType value() default TxType.REQUIRED

And then this can be specified on a class or a method of a class as:

public class ShoppingCart {
   public void checkOut() {...}

This interceptor will be defined as part of the update to Java Transactions API spec at

The Java EE 7 Expert Group needs your help and looking for feedback on the exact semantics. The complete discussion can be read here. Please post your feedback to and we'll also consider comments posted to this entry.

Sunday Apr 29, 2007

Distributed Transactions Between Glassfish and .Net 3.0

Headshot of Ryan Shoemaker

Ryan Latest Entry provides an overview of Distributed Transactions in Tango/WSIT:

In a homogeneous GlassFish system, distributed transactions flow across RMI/IIOP. In ... (WSIT)..., the transactions use the WS-Coordination and WS-AtomicTransaction protocols to flow transactional context and execute the two-phase commit protocol.

To describe these features, Ryan created a very complete screencast that uses the WSIT NetBeans plugin so you may want to start there (Arun's blog, screencast) and then read Ryan's blog entry and screencast. Other useful links are:

• Community and Sun's WS Interop Sites.
• Tutorial and Screencasts
• Blog feeds
• Forum and Mailing List

Distributed Transaction support is part of WSIT Milestone 4 which will be in GlassFish beta2, but it can also be used in other containers through the JAX-WS GF stack.