You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Janko Heilgeist (JIRA)" <ji...@apache.org> on 2008/04/08 09:43:25 UTC

[jira] Created: (GERONIMO-3954) Allow overriding the value of an from within deployment plans

Allow overriding the value of an <env-entry/> from within deployment plans
--------------------------------------------------------------------------

                 Key: GERONIMO-3954
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3954
             Project: Geronimo
          Issue Type: Improvement
      Security Level: public (Regular issues)
            Reporter: Janko Heilgeist


The provider or assembler of an JavaEE application can define environment entries inside the standard deployment descriptor files like ejb-jar.xml or web.xml with

{code:xml}
<env-entry>
    <description>Some crucial variable!</description>
    <env-entry-name>someVariable</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <!--env-entry-value>content of string</env-entry-value-->
</env-entry>
{code}

Currently, the deployer of this application needs to modify the standard deployment descriptor to set the environment entry to a value. This is a problem, if e.g. the archive containing the descriptor file was signed by the provider and is supposed to be used unmodified. It would be a major improvement, if the Geronimo deployment plans would allow setting or overriding the values of these entries.

This seems to have been the case in previous versions of Geronimo. On August 24th, 2003 the schema incubator-geronimo/modules/core/src/schema/geronimo-ejb-jar.xsd contained the following elements:

{code:xml}
[...]
<xsd:element name="env-entry">
  <xsd:annotation>
    <xsd:documentation>
      Configuration for an environment entry.  Normally an env-entry
      is fully configured by the assembler in the standard ejb-jar.xml
      deployment descriptor.  However, the deployer can specify a
      value here if there was no value specified in ejb-jar.xml, or
      if the deployer wants to override the value specified there.
    </xsd:documentation>
  </xsd:annotation>
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="env-entry-name" minOccurs="1" maxOccurs="1"/>
      <xsd:element ref="env-entry-value" minOccurs="1" maxOccurs="1"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>
[...]
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-3954) Allow overriding the value of an from within deployment plans

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689421#action_12689421 ] 

David Jencks commented on GERONIMO-3954:
----------------------------------------

Also I'm not sure if openejb is using the geronimo env-entry builder -- this change may not affect openejb.

> Allow overriding the value of an <env-entry/> from within deployment plans
> --------------------------------------------------------------------------
>
>                 Key: GERONIMO-3954
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3954
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Janko Heilgeist
>            Assignee: David Jencks
>
> The provider or assembler of an JavaEE application can define environment entries inside the standard deployment descriptor files like ejb-jar.xml or web.xml with
> {code:xml}
> <env-entry>
>     <description>Some crucial variable!</description>
>     <env-entry-name>someVariable</env-entry-name>
>     <env-entry-type>java.lang.String</env-entry-type>
>     <!--env-entry-value>content of string</env-entry-value-->
> </env-entry>
> {code}
> Currently, the deployer of this application needs to modify the standard deployment descriptor to set the environment entry to a value. This is a problem, if e.g. the archive containing the descriptor file was signed by the provider and is supposed to be used unmodified. It would be a major improvement, if the Geronimo deployment plans would allow setting or overriding the values of these entries.
> This seems to have been the case in previous versions of Geronimo. On August 24th, 2003 the schema incubator-geronimo/modules/core/src/schema/geronimo-ejb-jar.xsd contained the following elements:
> {code:xml}
> [...]
> <xsd:element name="env-entry">
>   <xsd:annotation>
>     <xsd:documentation>
>       Configuration for an environment entry.  Normally an env-entry
>       is fully configured by the assembler in the standard ejb-jar.xml
>       deployment descriptor.  However, the deployer can specify a
>       value here if there was no value specified in ejb-jar.xml, or
>       if the deployer wants to override the value specified there.
>     </xsd:documentation>
>   </xsd:annotation>
>   <xsd:complexType>
>     <xsd:sequence>
>       <xsd:element ref="env-entry-name" minOccurs="1" maxOccurs="1"/>
>       <xsd:element ref="env-entry-value" minOccurs="1" maxOccurs="1"/>
>     </xsd:sequence>
>   </xsd:complexType>
> </xsd:element>
> [...]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-3954) Allow overriding the value of an from within deployment plans

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689419#action_12689419 ] 

David Jencks commented on GERONIMO-3954:
----------------------------------------

Fixed in trunk rev 758570, branches/2.1 rev 758581

I did not change the naming schema version since this change is backward compatible.  We need to agree on the dev list whether this is the correct approach before closing this issue.

> Allow overriding the value of an <env-entry/> from within deployment plans
> --------------------------------------------------------------------------
>
>                 Key: GERONIMO-3954
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3954
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Janko Heilgeist
>            Assignee: David Jencks
>
> The provider or assembler of an JavaEE application can define environment entries inside the standard deployment descriptor files like ejb-jar.xml or web.xml with
> {code:xml}
> <env-entry>
>     <description>Some crucial variable!</description>
>     <env-entry-name>someVariable</env-entry-name>
>     <env-entry-type>java.lang.String</env-entry-type>
>     <!--env-entry-value>content of string</env-entry-value-->
> </env-entry>
> {code}
> Currently, the deployer of this application needs to modify the standard deployment descriptor to set the environment entry to a value. This is a problem, if e.g. the archive containing the descriptor file was signed by the provider and is supposed to be used unmodified. It would be a major improvement, if the Geronimo deployment plans would allow setting or overriding the values of these entries.
> This seems to have been the case in previous versions of Geronimo. On August 24th, 2003 the schema incubator-geronimo/modules/core/src/schema/geronimo-ejb-jar.xsd contained the following elements:
> {code:xml}
> [...]
> <xsd:element name="env-entry">
>   <xsd:annotation>
>     <xsd:documentation>
>       Configuration for an environment entry.  Normally an env-entry
>       is fully configured by the assembler in the standard ejb-jar.xml
>       deployment descriptor.  However, the deployer can specify a
>       value here if there was no value specified in ejb-jar.xml, or
>       if the deployer wants to override the value specified there.
>     </xsd:documentation>
>   </xsd:annotation>
>   <xsd:complexType>
>     <xsd:sequence>
>       <xsd:element ref="env-entry-name" minOccurs="1" maxOccurs="1"/>
>       <xsd:element ref="env-entry-value" minOccurs="1" maxOccurs="1"/>
>     </xsd:sequence>
>   </xsd:complexType>
> </xsd:element>
> [...]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-3954) Allow overriding the value of an from within deployment plans

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks reassigned GERONIMO-3954:
--------------------------------------

    Assignee: David Jencks

> Allow overriding the value of an <env-entry/> from within deployment plans
> --------------------------------------------------------------------------
>
>                 Key: GERONIMO-3954
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3954
>             Project: Geronimo
>          Issue Type: Improvement
>      Security Level: public(Regular issues) 
>            Reporter: Janko Heilgeist
>            Assignee: David Jencks
>
> The provider or assembler of an JavaEE application can define environment entries inside the standard deployment descriptor files like ejb-jar.xml or web.xml with
> {code:xml}
> <env-entry>
>     <description>Some crucial variable!</description>
>     <env-entry-name>someVariable</env-entry-name>
>     <env-entry-type>java.lang.String</env-entry-type>
>     <!--env-entry-value>content of string</env-entry-value-->
> </env-entry>
> {code}
> Currently, the deployer of this application needs to modify the standard deployment descriptor to set the environment entry to a value. This is a problem, if e.g. the archive containing the descriptor file was signed by the provider and is supposed to be used unmodified. It would be a major improvement, if the Geronimo deployment plans would allow setting or overriding the values of these entries.
> This seems to have been the case in previous versions of Geronimo. On August 24th, 2003 the schema incubator-geronimo/modules/core/src/schema/geronimo-ejb-jar.xsd contained the following elements:
> {code:xml}
> [...]
> <xsd:element name="env-entry">
>   <xsd:annotation>
>     <xsd:documentation>
>       Configuration for an environment entry.  Normally an env-entry
>       is fully configured by the assembler in the standard ejb-jar.xml
>       deployment descriptor.  However, the deployer can specify a
>       value here if there was no value specified in ejb-jar.xml, or
>       if the deployer wants to override the value specified there.
>     </xsd:documentation>
>   </xsd:annotation>
>   <xsd:complexType>
>     <xsd:sequence>
>       <xsd:element ref="env-entry-name" minOccurs="1" maxOccurs="1"/>
>       <xsd:element ref="env-entry-value" minOccurs="1" maxOccurs="1"/>
>     </xsd:sequence>
>   </xsd:complexType>
> </xsd:element>
> [...]
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.