Hi, I really need help to resolve the problem I wrote about below. If anyone out there has any advise, please let me know. Thanks a lot!!! ----------------------------------------------------------------------- Hi Guys, I was wondering if anyone knew of an Websphere API in WAS 4.0.x that I could call from a web application that would give me the name of the Server Group were the application is deployed - the web application is deployed on a server group with a clone. I am able to use classes like com.ibm.websphere.runtime.ServerName to get information about the clone (it's name, id, etc). But I don't know how to get this same info for the ServerGroup. I would greatly appreciate any help anyone could offer me - A javadoc of the WAS 4.0.x APIs would be especially helpful (I am an IBMer, so I can get to internal websites too). Thanks a lot!
Thanks a lot for your response!! I did come across this javadoc before, but unfortunately it does not have the WAS packages I need - the classes I need are in packages like com.ibm.websphere.runtime, com.ibm.ws.runtime, com.ibm.ejs.sm.beans (these packages are in runtime.jar, repository.jar, ws-base-config.jar, etc). The ones listed on this site deal mostly with web services support and http-related function. If you know of any other sites, please let me know. Thanks again for your help!!
I would think you would be better off hardcoding that in a file than retrieving the information via WebSphere API. Reason being the probability of WebSphere API changing (changes with patches too) is more than your WebApp name being changed. You being IBMer know it better. Regards Vinod [ January 26, 2004: Message edited by: Vinod Bijlani ] [ January 26, 2004: Message edited by: Vinod Bijlani ]
posted 16 years ago
Thanks a lot for your response My first response to this problem was indeed to either read the server group name from a file or from a system property. However as we are defining a system-oriented architecture, we want the capabilty to deploy/redeploy the services that make up our application without doing a build of our entire infrastructure or reploying all of our enterprise applications. We would like to use the server group name for dynamic discovery of configuration data for individual services at runtime. There is no chance of our server edition changing in this release of our product as well. Thanks.