[arquillian-issues] [JBoss JIRA] Created: (ARQ-309) Allow configuration to specify an OpenEJB configuration resources (openejb.xml)
Dan Allen (JIRA)
jira-events at lists.jboss.org
Wed Oct 6 16:40:39 EDT 2010
Allow configuration to specify an OpenEJB configuration resources (openejb.xml)
-------------------------------------------------------------------------------
Key: ARQ-309
URL: https://jira.jboss.org/browse/ARQ-309
Project: Arquillian
Issue Type: Feature Request
Components: OpenEJB Containers
Affects Versions: 1.0.0.Alpha4
Reporter: Dan Allen
Priority: Minor
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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list