Solved

Name of Application Server

Posted on 2003-11-18
3
247 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
Comment Utility
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
Comment Utility
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
Comment Utility
In WebSphere Version 4.0, no.  In 5.0, yes
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now