Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-28

Support for global environment entries (defined as <Environment> in server.xml)

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-beta-1
    • Fix Version/s: 1.0.0-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      Define <Environment name="number" value="10" type="java.lang.Integer" /> in conf/server.xml and access it with @Resource(name="number") in a servlet. The field won't get assigned the value from server.xml.

        Activity

        Hide
        romain.manni-bucau Romain Manni-Bucau added a comment -

        is it still relevant? if you speak about <environment> in <context> i thought it was done in OpenEJBNamingContextListener

        Show
        romain.manni-bucau Romain Manni-Bucau added a comment - is it still relevant? if you speak about <environment> in <context> i thought it was done in OpenEJBNamingContextListener
        Hide
        romain.manni-bucau Romain Manni-Bucau added a comment -

        please reopen if still relevant

        Show
        romain.manni-bucau Romain Manni-Bucau added a comment - please reopen if still relevant

          People

          • Assignee:
            jlaskowski Jacek Laskowski
            Reporter:
            jlaskowski Jacek Laskowski
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development