[
https://issues.apache.org/jira/browse/OPENEJB-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Trevor Baker updated OPENEJB-1969:
----------------------------------
Attachment: OPENEJB-1969.patch
Correct, "java:/" is a JBoss convention and old habits die hard. I've changed
the entry to be java:global/jndi/myprop to be standards complaint. I know it's
not ideal (not using ENC), but I should be able to bind here...otherwise what's
the point of java:global then?.
Only with the very minor code change mentioned in my previous comment did it
work as expected with @Observes AfterStart and the others.
Attaching patch.
> 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
> Attachments: OPENEJB-1969.patch
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira