tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: cdi-spring-bridge - how to access transaction manager, ejbs, persistance units from spring
Date Wed, 01 Oct 2014 10:37:11 GMT
Hi

it is only spring -> cdi. You can just add a custombean post processor
and use deltaspike (core api) to inject in all spring beans. What I
saw is it has several side effects cause spring and cdi support
@Inject and you can get very nasty surprises.


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-10-01 12:11 GMT+02:00 Anthony Fryer <apfryer@hotmail.com>:
> Hi All,
>
> I would like to run openejb embedded in a spring web application and access
> all the resources, resource adapters, ejbs, transaction manager, persistence
> units, datasources, cdi beans, etc contained in the openejb container from
> the spring web application context.
>
> I saw there used to be a spring-integration example back in tomee-1.0 but
> that sample has dissappeared from 1.5 onwards.
>
> Romain developed the cdi-spring-bridge
> (https://github.com/rmannibucau/cdi-spring-bridge) which enables injecting
> spring resources into cdi beans.  Does it also enable injecting from cdi to
> spring?
>
>
> Regards,
>
> Anthony
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/cdi-spring-bridge-how-to-access-transaction-manager-ejbs-persistance-units-from-spring-tp4672063.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message