Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Need Help Badly!!!!!!!!!

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
prem lall
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
prem lall
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic