[jboss-dev-forums] [Design of JCA on JBoss] - Re: JBAS-3321 - TransactionTimeout from EJB container

adrian@jboss.org do-not-reply at jboss.com
Fri Feb 9 08:51:00 EST 2007


This goes back to what we discussed in Boston with the EJB3 team.

JCA should provide an abstract MessageEndpointFactory implementation
with "abstract" methods that containers can implement when they subclass.

The relevant callbacks would be:

  | // From the spec
  | public boolean isDeliveryTransacted(Method)
  | {
  |    return false;
  | }
  | 
  | // Get the transaction timeout (the subject of feature request)
  | public long getTransactionTimeout(Method)
  | {
  |    return 0l;
  | }
  | 
  | // Does the container provide a context classloader
  | // for switching during beforeDelivery
  | public ClassLoader getClassLoader()
  | {
  |    return null;
  | }
  | 

In practice there should be two implementations provided by JCA
1) That uses the old interceptors/proxy factory from EJB2
2) That uses the aop interceptors for EJB3 and POJO
The MessageEndpointInterceptor(s) for each would be maintained by the JCA project.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013619#4013619

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013619



More information about the jboss-dev-forums mailing list