[arquillian-issues] [JBoss JIRA] Updated: (ARQ-309) Allow configuration to specify an OpenEJB configuration resources (openejb.xml)

Aslak Knutsen (JIRA) jira-events at lists.jboss.org
Sun Mar 13 11:01:45 EDT 2011


     [ https://issues.jboss.org/browse/ARQ-309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aslak Knutsen updated ARQ-309:
------------------------------

    Fix Version/s: 1.0.0.Alpha5


> 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
>            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: http://www.atlassian.com/software/jira


More information about the arquillian-issues mailing list