[weld-dev] tx services

Pete Muir pmuir at bleepbleep.org.uk
Sat Apr 30 07:10:19 EDT 2011


I'm not 100% sure what you mean, as TransactionServices exposes services to Weld which uses them to (a) expose UTX as a bean and (b) register for synchronizations for TX events. So just adding TM to TransactionServices won't do very much ;-), you would also need to expose TM as a bean. Weld could do this, but in general in Weld we've tried to avoid exposing built in beans (especially for standard APIs) which aren't spec defined as this could interfere with other people. So better to propose this for CDI 1.1 IMO.

On 29 Apr 2011, at 17:26, Ales Justin wrote:

> IMO TransactionServices should also expose TransactionManager.
> 
> Since with AS7, which hides TM from JNDI, one cannot easily register XAResources:
> 
> Transaction
>   public boolean enlistResource(XAResource xaRes) throws RollbackException, IllegalStateException, SystemException
> 
> or suspending/resuming current Tx.
> Specially XAResources handling is a must to be able to enlist if you're doing some non-trivial tx-based work.
> 
> This way the integration layer would make sure the TM is exposed as a CDI service.
> 
> Wdyt?
> 
> -Ales
> 
> 




More information about the weld-dev mailing list