-
Feature Request
-
Resolution: Done
-
Minor
-
1.0.0.Alpha4
-
None
-
Documentation (Ref Guide, User Guide, etc.)
-
Low
Implement the feature described in the OpenEJB FAQ for supplying a custom configuration file.
http://openejb.apache.org/faq.html
Create an openejb.xml file in any directory* that gets added to your test classpath. Then in your test case do this:
protected void setUp() throws Exception {
Properties properties = new Properties();
properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
URL config = this.getClass().getClassLoader().getResource("openejb.xml");
properties.setProperty("openejb.configuration", config.toExternalForm());
initialContext = new InitialContext(properties);
}
- The name of this file could be an Arquillian container configuration property.
- is incorporated by
-
ARQ-379 Arquillian does not allow any configuration of OpenEJB
- Closed