• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can servlet get information of the app Server?  RSS feed

 
Jianfeng Qian
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to get some static field of the the Server object.
such as a servlet get some information fo the tomcat
or the app server.
Does anyone have some idea?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a server object ? What information about the server are you looking to extract ?
 
Jianfeng Qian
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My app Server integrates with tomcat.
there is a ServerAdmin.java
public class ServerAdmin {

static ConcurrentHashMap servers = new ConcurrentHashMap();
......
}

I have a serverlet HttpServerServlet.java
I want to use ServerAdmin.servers in the Servlet,but it always is empty.
When I run the app Server in Jbuilder, the Servlet can get the ServerAdmin.servers
Do I make it clear ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not crosspost between several forums. Thank you.
http://www.coderanch.com/t/364330/Servlets/java/servlet-information-Server
 
Jianfeng Qian
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Satou kurinosuke:
Please do not crosspost between several forums. Thank you.
http://www.coderanch.com/t/364330/Servlets/java/servlet-information-Server


Sorry about that.
I didn't know it was not permit.
Can administers delete it or close it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!