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 to get parameters and its values of apache tomcat server

 
mahesh lanka
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i am doing a project ..in which i need to write code for retreiving parameters of apache tomcat server..the parameters which i want to retreive are as follows:

1-the number of the websites running in a Server

2-Website Status...like whether it si up or down in apacher server at that particular time

3-HTTP GET/POST Request for each Website..it means that it gives the total count for get method and post method request made by the user for each website.

i am new to this ..i could not understand where to start with and how to start..please guide me in right way....

thanks in advance to all ....

regards,
mahesh
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some of this information is available through the manager web app. Since that is based on JMX (I think), it should be possible to connect to Tomcat with a JMX client and retrieve that information: Monitoring Tomcat
 
mahesh lanka
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ulf Dittmer ,

thanks for the reply...i am actually new to this concept...when i clicked the manager web app..it is asking for user name and pwd....i dont know them....

and i am new to JMS also....can you be please elaborate what you said ?..i am new to this....

thanks in advance...
regards,
mahesh
 
Stu Thompson
Hooplehead
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The users and passwords are stored in {tomcat-home}/conf/tomcat-users.xml. You will want the password for the 'admin' account.

Stu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic