Setting up Application Environment Variables in WAS 6.1
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Application Server > Setting up Application Environment Variables in WAS 6.1




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting up Application Environment Variables in WAS 6.1  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

I have installed a vendor app in WAS 6.1.0.1 ND.

This app needs (in every Member/app server) some environment variables set.

If I have these set in a shell and I start up the member from that shell, th
e app works.  But if I start up the member(s) using the Integrated Solution 
Console, the app is missing the env. vars.

I've tried setting name-value pairs in the member's process definition->JVM-
>Custom Properties section.  But they are not being taken.

Where is the correct place in WAS to set name-value pairs that will look lik
e simple shell environment variables to the applications in the app server r
egardless of how they were started?

TIA,  Greg





[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  
Doug Breaux


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

gkanders@us.ibm.com wrote:
> I have installed a vendor app in WAS 6.1.0.1 ND.
>
> This app needs (in every Member/app server) some environment variables set
.
>
> If I have these set in a shell and I start up the member from that shell, 
the app works.  But if I start up the member(s) using the Integrated Solutio
n Console, the app is missing the env. vars.
>
> I've tried setting name-value pairs in the member's process definition->JV
M->Custom Properties section.  But they are not being taken.
>
> Where is the correct place in WAS to set name-value pairs that will look l
ike simple shell environment variables to the applications in the app server
 regardless of how they were started?
>
> TIA,  Greg

I can't answer the last question off the top of my head, but you can get wha
t
you want by making sure that you set the environment variables in
setupCmdLine.sh and restart your NodeAgent to pick up the variables.  Then
restarts done from the console will also pick up the variables.

--
Doug





[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  
Anant M


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

You may want to set up these name pair values in the following location.

Application servers > Server Name > Process Definition > Environment Entries

I have configured a vendor app which requires some values in the environment
 and it works fine for me.

Thanks
Anant






[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  
Yuriy Petrov


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

gkanders@us.ibm.com wrote:
> I have installed a vendor app in WAS 6.1.0.1 ND.
>
> This app needs (in every Member/app server) some environment variables set
.
>
> If I have these set in a shell and I start up the member from that shell, 
the app works.  But if I start up the member(s) using the Integrated Solutio
n Console, the app is missing the env. vars.
>
> I've tried setting name-value pairs in the member's process definition->JV
M->Custom Properties section.  But they are not being taken.
>
> Where is the correct place in WAS to set name-value pairs that will look l
ike simple shell environment variables to the applications in the app server
 regardless of how they were started?
>
> TIA,  Greg
Does the application contain/use native code other than JVM itself (some .so
's/.dll's which are
either shipped with the app, or are required to be provided outside the .ear
)? If so, then this may
be the explanation - the native code directly asks OS (like C's "char *geten
v(const char *NAME);")
for the env.var that it needs. In that case the WAS's  environment variables
 won't work.





[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

Thanks for the reply.  I actually (as a stop-gap) had put them in $WAS_HOME/
bin/startServer.sh, and that worked with console restarts, etc.

I do want to avoid modifying the scripts if possible, because I might eventu
ally need different values for different servers.  And we do have a separtat
e group here who wants to own/maintain the WAS installations.  I don't want 
to have something stop work
ing if they upgrade and overwrite the scripts.

Anyway, thanks, I'll use the script if I can't get a setting in the console 
to work.

Greg





[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

Thanks for the suggestion.  I had previously tried 3 or 4 different properti
es settings, but don't remember if this was one.  So I'll try this.

Thanks, Greg





[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-07 06:23 PM

Hi.

Thanks for the info.

It's not clear to me that this is the case, because there are external files
, but they are JAR files (foundation classes for the app) and one of the env
. vars points at these.  But I also need LIBPATH and LC_ALL=C, so those may 
be calling the OS directly.
I the previous suggestion doesn't work, at least this would be a reasonable 
explination.

G





[ Post a follow-up to this message ]



    Re: Setting up Application Environment Variables in WAS 6.1  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-18-07 12:22 AM

Thank You!  This seems to be working.

I had tried a number of locations, but this is the magic one.

Thanks Again.  Greg





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register