You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Jason Russo <jr...@genscape.com> on 2010/03/02 21:52:08 UTC

Env-entry question

Hi all,

I have a quick question that I'm trying to understand.  I want to define
an environment variable to be used in an ejb.  I figured out that I can
define the variable in the ejb-jar.xml, or alternatively, in an
env-entries.properties file.  This allows me to define the variable and
it's value outside the code, which is good.

Unfortunately, what I really want to be able to do is define the value
of said variable in my tomcat/openejb container, such as in the
context.xml or server.xml, as would normally be done within an
<environment/> tag.  Can openejb do something like this?  I've seen
examples, such as in OracleAS, which allows the overriding of an
environment property by defining an env-entry-mapping tag in the oracle
server's orion-ejb-jar.xml.  So I was wondering if openejb supports
something along those lines or not.

Thanks.



Jason Russo

Application Developer

Genscape– See the Energy

445 E. Market St, Suite 200

Louisville, KY 40202

Tel: 502-583-2091

www.genscape.com




Re: Env-entry question

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi,

We have partial support of other vendor deployment descriptors. If not
already available, may be we can add support for orion-ejb-jar.xml if it
helps.

Can't remember exactly, but it seems to me we already read the context.xml
file. So may be we can get environment variables from it.
David's opinion would be great ;-)

Jean-Louis


Jason Russo wrote:
> 
> Does anyone have an answer for this?
> 
> 
> 
> Jason Russo
> 
> Application Developer
> 
> Genscape– See the Energy
> 
> 445 E. Market St, Suite 200
> 
> Louisville, KY 40202
> 
> Tel: 502-583-2091
> 
> www.genscape.com
> 
> 
> 
> On Tue, 2010-03-02 at 15:52 -0500, Jason Russo wrote:
> 
>> Hi all,
>> 
>> I have a quick question that I'm trying to understand.  I want to define
>> an environment variable to be used in an ejb.  I figured out that I can
>> define the variable in the ejb-jar.xml, or alternatively, in an
>> env-entries.properties file.  This allows me to define the variable and
>> it's value outside the code, which is good.
>> 
>> Unfortunately, what I really want to be able to do is define the value
>> of said variable in my tomcat/openejb container, such as in the
>> context.xml or server.xml, as would normally be done within an
>> <environment/> tag.  Can openejb do something like this?  I've seen
>> examples, such as in OracleAS, which allows the overriding of an
>> environment property by defining an env-entry-mapping tag in the oracle
>> server's orion-ejb-jar.xml.  So I was wondering if openejb supports
>> something along those lines or not.
>> 
>> Thanks.
>> 
>> 
>> 
>> Jason Russo
>> 
>> Application Developer
>> 
>> Genscape– See the Energy
>> 
>> 445 E. Market St, Suite 200
>> 
>> Louisville, KY 40202
>> 
>> Tel: 502-583-2091
>> 
>> www.genscape.com
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://n4.nabble.com/Env-entry-question-tp1575701p1599738.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Env-entry question

Posted by Jason Russo <jr...@genscape.com>.
Does anyone have an answer for this?



Jason Russo

Application Developer

Genscape– See the Energy

445 E. Market St, Suite 200

Louisville, KY 40202

Tel: 502-583-2091

www.genscape.com



On Tue, 2010-03-02 at 15:52 -0500, Jason Russo wrote:

> Hi all,
> 
> I have a quick question that I'm trying to understand.  I want to define
> an environment variable to be used in an ejb.  I figured out that I can
> define the variable in the ejb-jar.xml, or alternatively, in an
> env-entries.properties file.  This allows me to define the variable and
> it's value outside the code, which is good.
> 
> Unfortunately, what I really want to be able to do is define the value
> of said variable in my tomcat/openejb container, such as in the
> context.xml or server.xml, as would normally be done within an
> <environment/> tag.  Can openejb do something like this?  I've seen
> examples, such as in OracleAS, which allows the overriding of an
> environment property by defining an env-entry-mapping tag in the oracle
> server's orion-ejb-jar.xml.  So I was wondering if openejb supports
> something along those lines or not.
> 
> Thanks.
> 
> 
> 
> Jason Russo
> 
> Application Developer
> 
> Genscape– See the Energy
> 
> 445 E. Market St, Suite 200
> 
> Louisville, KY 40202
> 
> Tel: 502-583-2091
> 
> www.genscape.com
> 
> 
>