[wildfly-dev] Where to register CDI Context for JTA 1.2
Paul Robinson
paul.robinson at redhat.com
Tue May 14 05:31:26 EDT 2013
Thanks Stuart,
Looks straight forward,
Paul.
On 14 May 2013, at 10:15, Stuart Douglas <sdouglas at redhat.com> wrote:
> Registering it in a DUP in the transactions subsystem is fine.
>
> Have a look in org.jboss.as.weld.deployment.processors.WeldPortableExtensionProcessor#loadAttachments for an example of what you need to do, you basically just need to attach it under org.jboss.as.weld.deployment.WeldAttachments#PORTABLE_EXTENSIONS for the top level deployment.
>
> You can do this for every deployment, if beans.xml is not present it won't do anything.
>
> Stuart
>
> Paul Robinson wrote:
>> Stuart (wildfly-dev in CC too)
>>
>> I'm implementing JTA 1.2, and part of it is to develop a new CDI
>> context. I'm currently registering that via an Extension in the
>> javax.enterprise.inject.spi.Extension file. The problem with this is
>> that this is a burden on the application developer. Alternatively, I
>> could register it in a DUP in the transactions subsytem. I'd probably
>> have to register it for every deployment, as I don't think I can detect
>> if it's needed.
>>
>> @pmuir said that you would probably know what I should do.
>>
>> Thanks,
>>
>> Paul.
>> --
>> Paul Robinson
>> Web Service Transactions Lead
>> paul.robinson at redhat.com <mailto:paul.robinson at redhat.com>
>>
>> JBoss, a Division of Red Hat
>> Registered in England and Wales under Company Registration No. 03798903
>> Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson
>> (USA), Charlie Peters (USA)
>>
--
Paul Robinson
Web Service Transactions Lead
paul.robinson at redhat.com
JBoss, a Division of Red Hat
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson
(USA), Charlie Peters (USA)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20130514/8b8d3511/attachment.html
More information about the wildfly-dev
mailing list