• Post Reply Bookmark Topic Watch Topic
  • New Topic

WRM(Web response Monitoring) need more info.  RSS feed

 
vijendra singh
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have much idea whatis the real benefit i am going to get from WRM monitoring. I have got some jsp with very few lines of code. Here it is:-
1)appcheck.jsp contains

<FORM METHOD="Post" NAME="TestForm" ACTION="Test">
<TABLE class="maintable">
<TR>
<TD>
<%@ include file = "setup.jsp" %>
<%@ include file = "jboss_health_test.jsp" %>
<%@ include file = "showoutput.jsp" %>
</TD>
</TR>
</TABLE>
</FORM>

2) setup.jsp contains

<%@ page import = "com.ca.gis.util.*, com.ca.gis.ldap.dao.*, org.apache.log4j.Logger" %>
<%
//set values for getting connections
ApplicationContext appctx = new ApplicationContext(application);

//set up fields for tests
String email = "abc@xyz.com";
CAUserKey userKey = new CAUserKey();
userKey.setUserId(email);
CAUserModel userModel = new CAUserModel(userKey);
String currenttime = DateUtil.getSQLCurrentTime();
boolean allSuccessful = true;
String errors = "";
Logger logger = Logger.getLogger(this.getClass().getName());
%>

3)jboss_health_test.jsp

<%
out.println("SYSTEM TEST SUCCESS");
%>

4)showoutput.jsp

<%
if(allSuccessful)
out.println("SYSTEM TEST SUCCESS");
else
out.println("<!--" + errors + "-->");
%>


I don't know how much effective its going to be for getting info like:
A)I need to check if there is any problem with application while running.
B)I don't think it can give me info if jboss is really down as if server is not up application will also be down.

If someone have good idea on this please let me know
what are the major advantages of wrm monitoring.
can i do what i am really looking for.

send me any link any good lines of code using which something useful can be done here.

thanks
vijendra
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this really for the Performance forum?

If it's a topic about JBoss, you'd be much better finding a JBoss forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!