Solved

Name of Application Server

Posted on 2003-11-18
3
251 Views
Last Modified: 2013-12-10
Dear all,

I have an Applicaiton server under WAS 4.0 for OS/390 with the following setting:

appserver.name=webabc

My question is: how can I get the server name (webabc) in my application? Since I have to setup serverl server with same set of application, I have to know inside the applicaiton the sever name which processed each request during runtime.

Thanks all!
0
Comment
Question by:helloyip
  • 2
3 Comments
 
LVL 3

Expert Comment

by:schleus
ID: 9776095
Hello,
  Since in version 4 of websphere you have to distribute the application manually to the various application servers, just modify a property file in each ear that is called from an EJB in that application server.  Then when your app is doing what it needs to do, have your app call that ejb, it gets the servername from the property file, and bingo, there you go.  Of course, if you were on version 5.0, you could just make a JMX call to do it....but that is something for you to look forward to.  Oh, almost forgot, make sure you WLM routing policy is perfer local, otherwise your ejb call may end up on a different box and just have 1 app server per node.

Schleus
0
 

Author Comment

by:helloyip
ID: 9776116
Thanks for your reply.

I previously use properties file to store the server name for each serve.  However, I am just thinking of a way that get rid of properties file.  It is because I don't want to introduce server-depending properties inside the properties fle.  

Is there any means to get the application server name through something like java method call so that I can get it during runtime?

0
 
LVL 3

Accepted Solution

by:
schleus earned 500 total points
ID: 9776174
In WebSphere Version 4.0, no.  In 5.0, yes
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question