I created a test app of my own and was able to prove that the cluster is
working correctly. Its the vendor app that is having problems. I have
referred the issue back to them.

Here is the app I used:

index.jsp
--------
<%@ page language="java" import="java.util.*" session="true"
pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath =
request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

Integer num = new Integer(100);
session.setAttribute("num",num);
String url =response.encodeURL("page2.jsp");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
        <meta http-equiv="pragma" content="no-cache">
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="expires" content="0">    
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="This is my page">
        <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
  </head>
  
  <body>
    This is my JSP page. <br>
    
     '<%=url% '>page2.jsp 
    
        <h1>Session serviced by <%=
java.net.InetAddress.getLocalHost().getHostName() %></h1>
        <table align="center" border="1">
        <tr>
        <td>
          Session ID</td>
        <td><%= session.getId() %></td>
        <% session.setAttribute("abc","abc"); %>
        </tr>
        <tr>
        <td>
          Created on</td>
          <td><%= new java.util.Date(session.getCreationTime()).toString() 
%></td>
        </tr>
        </table>
    
    
  </body>
</html>

page2.jsp
---------
<%@ page session="true" %>
<%
  Integer i= (Integer )session.getAttribute("num");
  out.println("Num value in session is "+i.intValue());
  
%>

<h1>Session serviced by <%=
java.net.InetAddress.getLocalHost().getHostName() %></h1>
<table align="center" border="1">
<tr>
<td>
  Session ID</td>
<td><%= session.getId() %></td>
<% session.setAttribute("abc","abc"); %>
</tr>
<tr>
<td>
  Created on</td>
  <td><%= new java.util.Date(session.getCreationTime()).toString() %></td>
</tr>
</table>

thanks,
Martin


markt-2 wrote:
> 
> martinjd wrote:
>> Hi,
>> 
>> I am using the jsp-examples - book demo that comes with tomcat. I seen
>> somewhere on the web that this can be used to test session replication. I
>> assume that all objects in this app are serializable. Do you think that
>> this
>> is not a proper test?
> 
> You could just check the code yourself. This is open source after all.
> 
> Mark
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-5.5.26-Sessions-getting-replicated-but-not-working-via-browser-tp18335359p18357553.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to