Solved

Name of Application Server

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Refresh JTable Content 6 207
How do you get SOAP Header in Library call 4 116
How to close Java Threads in servlets 5 107
VS 2015 Apache Cordova mobile app 2 88
This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

775 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