Hey I have checked the cluster setting with 2 sample applications
samplewar.war having following testsessionreplication.jsp into it for the 1st
instance
<body bgcolor=blue>
<%=request.getSession().getId() %>
<h1>Tomcat 1</h1>
Similarly
samplewar.war having following testsessionreplication.jsp into it for the 2nd
instance
<body bgcolor=green>
<%=request.getSession().getId() %>
<h1>Tomcat 2</h1>
the sessionit is giving is same I think the session is getting replicated.
But when I am trying the same JBoss-4.0.2 configurations with my application
,which is working fine in JBoss-3.2.3 & 3.2.5 the session is not getting
replicated. So now can you tell me something what all changes required for a
web application.
As I have added a tag in web.xml
introduced a new jboss-web.xml inside the web-inf folder of the application
with the code
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<replication-config>
<replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
<replication-granularity>ATTRIBUTE</replication-granularity>
</replication-config>
</jboss-web>
I am giving you the list of all the files in which I have made changes till now.
I have tried many scenarios I mean combinations of these paramaters
For jboss-4.0.3SP1
1)jboss-4.0.3SP1\server\node2\deploy-hasingleton\jms\uil2-service.xml
put 28093 instead of 8093 for ServerBindPort
2)jboss-4.0.3SP1\server\node2\conf\jboss-minimal.xml
put 21099 instead of 1099 for Port
put 21098 instead of 1098 for RmiPort
3)jboss-4.0.3SP1\server\node2\conf\jboss-service.xml
put 28083 instead of 8083 for Port
put 21099 instead of 1099 for Port
put 21098 instead of 1098 for RmiPort
put 24444 instead of 24444 for RMIObjectPort
put 24445 instead of 4445 for ServerBindPort
4)jboss-4.0.3SP1\server\node2\deploy\httpha-invoker.sar\META-INF\jboss-service.xml
changed port from 8080 to 28080 everwhere in this file.
5)jboss-4.0.3SP1\server\node2\deploy\jbossweb-tomcat55.sar\server.xml
changed
<Connector port="8080" to <Connector port="28080"
and
<Connector port="8009" to <Connector port="28009"
and
<Engine name="jboss.web" defaultHost="localhost"
to
I have also added jvmRoute="node1" into all folder also.
6)jboss-4.0.3SP1\server\node2\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
previously I changed the usejk as true but for the application samplewar (given
above), I haven't made any changes into this file.
I have also tested after changing the value of UseLocalCache as false.
7)jboss-4.0.3SP1\server\node2\deploy\jboss-ws4ee.sar\META-INF\jboss-service.xml
changed 8080 to 28080 for WebServicePort.
8)jboss-4.0.3SP1\server\node2\deploy\jms\hajndi-jms-ds.xml
previously changed the value from 1100 to 21100
but now its left as it is.
9)jboss-4.0.3SP1\server\node2\deploy\snmp-adaptor.sar\META-INF\jboss-service.xml
Changed the value from 1162 to 21162.
Changed the value from 1161 to 21161.
10)jboss-4.0.3SP1\server\node2\deploy\snmp-adaptor.sar\managers.xml
Changed the value from 1162 to 21162.
11)jboss-4.0.3SP1\server\node2\deploy\cluster-service.xml
changed the loopback="false" to "true"
changed the port 1100 to 21100
changed the port 1101 to 21101
changed the port 4447 to 24447
changed the port 4446 to 24446
I have added tag in my web.xml
also added jboss-web.xml into my web-inf folder with the code
<jboss-web>
<replication-config>
<replication-trigger>SET_AND_GET</replication-trigger>
<replication-granularity>ATTRIBUTE</replication-granularity>
</replication-config>
</jboss-web>
deploy this application into the deploy folder of the server instances.
But the session in not getting replicated.
If I shutdown the request handling server , then its giving session timeout.
Ask me to login again.
I have given the steps which I have followed for JBoss-3.2.3 & 3.2.5.
this application I mean ear was running fine along with session replication.
Just after adding tag into that.
I didnt added jboss-web.xml into that.
Can you guide me something in this regard.
Actually Here I am stuck,nto able to get the solution by myself.
So please help me ASAP.
So can you send me the list of all the changes which I need to do to make my
application work on JBoss-4.0.2/4.0.3.
Thanks in advance for ur support.
Regards
Nikhil Goel
09313119770
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934991#3934991
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934991
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user