• Post Reply Bookmark Topic Watch Topic
  • New Topic

Runtime information about container info  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know what cell/node/server my application has been deployed to a Websphere server. Anyone knows how to obtain that information from within the application using API?

Thanks
Kevin
 
Ranch Hand
Posts: 974
9
IBM DB2 Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you google a bit, you'll find different suggestion on how achieve what you're trying to do.
IMHO I'd try and use MBeans. You have to look at the documentation, but keep in mind that usually all commands
you can issue with wsadmin have a counterpart as Java API.

By the way, why do you need to know such information ? Maybe a different solution may be approached.
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried this ?

 
Claude Moore
Ranch Hand
Posts: 974
9
IBM DB2 Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you pass your required info as websphere's JVM parameter ? With a simple, stupid, but portable

you may achieve what you need.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!