on 06-14-2005 4:51 PM
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.
Hi Eric,
Have you tried this one:
Kind regards,
Stanimir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.