Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-309

Allow configuration to specify an OpenEJB configuration resources (openejb.xml)

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Minor Minor
    • 1.0.0.Alpha5
    • 1.0.0.Alpha4
    • OpenEJB Containers
    • 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.

            drallendc@gmail.com David Allen (Inactive)
            dan.j.allen Dan Allen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: