Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can I get the JVM's information in servlet

 
Jim Scorpions
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my web application will run at multi-VM,how can i get the VM's information when invoke servlet.init() method?
thank you very much!!!
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jim,
Unless I'm misunderstanding your question, I believe that the relevant information is available via the "properties" in the System class. Lookup the "getProperties()" and/or "getProperty()" methods.
Hope this helps.
Good Luck,
Avi.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic