Solved

Name of Application Server

Posted on 2003-11-18
3
253 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 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