Paul Robinson [
https://community.jboss.org/people/paul.robinson] created the discussion
"Re: JTA 1.2 Implementation Work"
To view the discussion, visit:
https://community.jboss.org/message/816815#816815
--------------------------------------------------------------
Tom,
Re: What's the best way to enable this feature in WildFly?
The Context needs to be enabled via a CDI Extension. I'm currently enabling this via
a configuration file (javax.enterprise.inject.spi.Extension) placed in the META-INF of the
application. I think this is the way to do this for applications that run in a simple CDI
container. However, we can remove this burden for applications deployed to WildFly.
It's quite simple to enable this Extension in a DeploymentProcessor of the
transactions SubSystem. However, we would need to either, enable it for all deployments,
or just those that use @TransactionScoped (I don't yet know how to detect this).
Does enabling the extension when an application does not use it add overhead to the
application? Maybe provide a way to disable it rather than enable it if so?
I'm not sure. I'll check with Stuart Douglas when I ask him about
activation.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/816815#816815]
Start a new discussion in JBoss Transactions Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]