Allow configuration to specify an OpenEJB configuration resources
(openejb.xml)
-------------------------------------------------------------------------------
Key: ARQ-309
URL:
https://issues.jboss.org/browse/ARQ-309
Project: Arquillian
Issue Type: Feature Request
Components: OpenEJB Containers
Affects Versions: 1.0.0.Alpha4
Reporter: Dan Allen
Assignee: David Allen
Priority: Minor
Fix For: 1.0.0.Alpha5
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: