[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 10:51:57 EST 2007


"weston.price at jboss.com" wrote : 
  | The 'it's not generic' answer doesn't fly with me because the MEF solution isn't necessarily generic either.
  | 

It's more generic than the current solution which only works for the JBoss inbound jms rar
and requires at least the two EJB containers to understand (hardwire) the ActivationSpec
format of that rar.

Given that the server project can't even reference connector classes
(circular dependency in the build) you'd either have to
1) Use reflection
2) Implement a proprietory interface in the activation spec

  | public interface TransactionTimeoutSetter
  | {
  |    void setTransactionTimeout(long timeout);
  | }
  | 
3) Annotate the property

  | @org.jboss.resource.annotation.TransactionTimeout
  | public void setTransactionTimeout(long timeout) {}
  | 
All of which is pretty ugly, given it only solves the problem for one usecase. :-)

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

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



More information about the jboss-dev-forums mailing list