[
https://issues.apache.org/jira/browse/OPENEJB-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Romain Manni-Bucau resolved OPENEJB-1969.
-----------------------------------------
Resolution: Fixed
> OpenEJBDeployableContainer has InstanceProducer<Context>
> --------------------------------------------------------
>
> Key: OPENEJB-1969
> URL: https://issues.apache.org/jira/browse/OPENEJB-1969
> Project: OpenEJB
> Issue Type: Improvement
> Components: arquillian
> Affects Versions: 4.5.1
> Reporter: Trevor Baker
> Priority: Minor
> Fix For: 4.5.2, 4.7.0
>
> Attachments: OPENEJB-1969.patch, OPENEJB-1969.zip
>
>
> Nice to have
> In OpenEJBDeployableContainer
> Change this:
> private InitialContext initialContext;
> To this:
> @Inject
> @DeploymentScoped // I'm assuming DeploymentScoped .. is there a better
> one to use?
> private InstanceProducer<Context> initialContext;
> So other Arquillian stuff can access the context with:
> @Inject
> private Instance<Context> ctx;
>
> Instead of new InitialContext().
--
This message was sent by Atlassian JIRA
(v6.2#6252)