cancel
Showing results for 
Search instead for 
Did you mean: 

How can i define new Deployment Substitution Variables for Runtime System

Former Member
0 Kudos

There are some Deployment Substitution Variables for each Runtime System like:

com.sap.SID

com.sap.InstanceNumber

but i wwant to define other ones.

Does anybody know where it's possible to do this ? and how ?

thank in advance,

Eric.

Accepted Solutions (0)

Answers (2)

Answers (2)

stanimir_dochev
Explorer
0 Kudos
Former Member
0 Kudos

Hi, did you actually get this to work. I have the same problem as you.

The value I get , is the value I set in the xml descriptor : $

I thought this value should be replaced at deployment ?

Thanks.

Former Member
0 Kudos

.

Former Member
0 Kudos

Eric.

to define and use new deployment variable you need first to declare them into the SDM of each J2EE engines that will be on your track (on unix).

You can maintain your substitution values either on each of target j2ee (again SDM) or use CMS / landscape configurator / runtime system view/Edit Deployment substitution variable.

Then, within your code ...

Apparently (according to the documentation I found and some ...) your variable is to be de clared within the web.xml (apparently the only place where the mechanism will do the substitution)

sample :

<init-param>

<param-name>com.airbus.var2</param-name>

<param-value>${com.airbus.var2}</param-value>

</init-param>

THEN!!! (and here it is not very clear...

You must add the declaration within the sda-dd.xml

<substitution-variable>

<variable-name>com.airbus.var2</variable-name>

</substitution-variable>

Note that if you write a Server library this file is presented by Dev. Studio

BUT !!! if you are using a J2EE application module, this file is generated during the build and stored into the ear.

Up to now, the only way I found for adding this entry is to unzip/modify/rezip the ear to add the required entry into the sda-dd.xml.

If you find better ... let me now ...

Regards.

Former Member
0 Kudos

did you get an answer for that?

Former Member
0 Kudos

.