Solved

Name of Application Server

Posted on 2003-11-18
3
248 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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 …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

895 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

14 Experts available now in Live!

Get 1:1 Help Now