[jboss-jira] [JBoss JIRA] Created: (AS7-1153) Arquillian Containers should expose a Context(Initial) to Core

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Thu Jun 30 04:34:23 EDT 2011


Arquillian Containers should expose a Context(Initial) to Core
--------------------------------------------------------------

                 Key: AS7-1153
                 URL: https://issues.jboss.org/browse/AS7-1153
             Project: Application Server 7
          Issue Type: Feature Request
          Components: Test Suite
    Affects Versions: 7.0.0.CR1
            Reporter: Aslak Knutsen


If the Container provide a InitialContext to Arquillian, the TestEnrichers like @EJB and @Resource can operate in Client mode. e.g. to lookup Remote EJBs or Remotable Resources in JNDI.

@Inject @ContainerScoped
private InstanceProducer<Context> contextInst;

container.start() {
 contextInst.set(createInitialContext());
}


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list