Revision: 15221
Author: [email protected]
Date: Mon Nov 15 08:47:48 2010
Log: Update Issue 1873

Adding automated non regression simple reinvite test for HA passivation
http://code.google.com/p/mobicents/source/detail?r=15221

Added:
/trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/setup/jboss-5/war-deployers-jboss-beans-passivation-enabled.xml /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/uas/clustering-reinvite-uac-passivation.xml
Modified:
/trunk/servers/sip-servlets/sip-servlets-examples/simple-sip-servlet-distributable/src/main/sipapp/WEB-INF/jboss-web.xml /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/auto-clustering-failover-test.sh /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/auto-prepare-example.sh /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh

=======================================
--- /dev/null
+++ /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/setup/jboss-5/war-deployers-jboss-beans-passivation-enabled.xml Mon Nov 15 08:47:48 2010
@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Web application deployers
+$Id: war-deployers-jboss-beans.xml 85945 2009-03-16 19:45:12Z [email protected] $
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- WAR Structure -->
+   <bean name="WARStructure" class="org.jboss.web.deployers.WARStructure">
+       <property name="webInfLibFilter">
+          <!-- We accept all .jar files in WEB-INF/lib -->
+ <bean name="WebInfLibFilter" class="org.jboss.virtual.plugins.vfs.helpers.SuffixMatchFilter"> + <constructor><parameter class="java.lang.String">.jar</parameter></constructor>
+          </bean>
+       </property>
+       <property name="includeWebInfInClasspath">true</property>
+       <property name="contextInfoOrder">1000</property>
+   </bean>
+
+   <!-- web.xml parsing deployer -->
+ <bean name="WebAppParsingDeployer" class="org.jboss.deployment.WebAppParsingDeployer">
+      <property name="relativeOrder">1999</property>
+   </bean>
+   <!-- sip.xml parsing deployer -->
+ <bean name="SipAppParsingDeployer" class="org.jboss.deployment.SipAppParsingDeployer">
+      <property name="relativeOrder">2000</property>
+   </bean>
+ <!--bean name="JBossWebAppParsingDeployer" class="org.jboss.deployment.JBossWebAppParsingDeployer">
+      <property name="relativeOrder">2001</property>
+   </bean-->
+ <bean name="JBossConvergedSipAppParsingDeployer" class="org.jboss.deployment.JBossConvergedSipAppParsingDeployer">
+      <property name="relativeOrder">2001</property>
+   </bean>
+
+  <!-- See JBAS-6062 -->
+ <bean name="WebXmlLessDeployer" class="org.jboss.deployment.LegacyWebXmlLessDeployer"/>
+
+   <!-- Allow for war local class loaders: in testing -->
+ <bean name="WarClassLoaderDeployer" class="org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer">
+      <property name="relativeOrder">-1</property>
+ <property name="filteredPackages">javax.servlet,org.apache.commons.logging</property>
+   </bean>
+
+   <!--
+        Injects default clustering metadata.
+ TODO. A better approach is to use a jboss-web.xml equivalent to conf/web.xml
+        and conf/standardjboss.xml as the source for defaults.
+   -->
+   <bean name="WebAppClusteringDefaultsDeployer"
+ class="org.jboss.web.tomcat.service.deployers.ConvergedSipClusteringDefaultsDeployer">
+
+      <!-- Default session cache config used by distributable webapps -->
+      <property name="cacheName">standard-session-cache</property>
+ <!-- Default session cache config used by FIELD granularity distributable webapps --> + <property name="fieldGranularityCacheName">field-granularity-session-cache</property>
+
+      <!--
+      The following two properties define when sessions are replicated to
+      the other nodes.
+ The default value, "instant", uses the request thread to replicate changes
+      to the other nodes at the end of requests. In this case, the
+      "SnapshotInterval" property is not used.
+ The "interval" mode uses a background thread that periodically checks for
+      modified sessions and replicates them.  The "SnapshotInterval"
+      property controls how often (in milliseconds) the background thread
+      should run.
+
+ Note that this property is not in effect if the replication-granularity + is set to FIELD. If it is FIELD, it will be per http request (that is,
+      "instant" mode.)
+      -->
+      <property name="snapshotMode">INSTANT</property>
+      <property name="snapshotInterval">1000</property>
+
+      <property name="replicationGranularity">SESSION</property>
+ <property name="replicationTrigger">SET_AND_NON_PRIMITIVE_GET</property>
+      <property name="replicationFieldBatchMode">true</property>
+
+      <!--
+      Whether by default to add special session handling to coordinate use
+      with mod_jk or other JK connector variants.
+      If a JK connector is used, you will need to set the JvmRoute inside
+      JBossWeb, e.g. configure,
+        Engine name="jboss.web" jvmRoute="Node1" defaultHost="localhost"
+      in server.xml.
+
+      This value can be configured per webapp in the webapp's jboss.xml.
+
+      If not set, the default will be to add the special session handling
+ if a jvmRoute is configured on the Engine. So, generally the only reason + to configure this overall default is to set it to 'false' and thus force
+      per webapp configuration.
+      -->
+      <!--
+      <property name="useJK">false</property>
+
+      <property name="useSessionPassivation">false</property>
+      <property name="passivationMaxIdleTime">-1</property>
+      <property name="passivationMinIdleTime">-1</property>
+      -->
+         <property name="useSessionPassivation">true</property>
+      <property name="passivationMaxIdleTime">25</property>
+      <property name="passivationMinIdleTime">15</property>
+      <!--
+       Determines the maximum interval between requests, in seconds, after
+       which a request will trigger replication of the session's timestamp
+ regardless of whether the request has otherwise made the session dirty. + Such replication ensures that other nodes in the cluster are aware of + the most recent value for the session's timestamp and won't incorrectly + expire an unreplicated session upon failover. It also results in correct + values for HttpSession.getLastAccessedTime() calls following failover.
+
+ The cost of timestamp replication is considerably lower in JBoss AS 5 + than it is in earlier versions since replicating a timestamp does not
+       necessitate replicating any other data.
+
+ A value of 0 means the metadata will be replicated whenever the session is + accessed. A value of -1 means the metadata will be replicated only if some
+       other activity during the request (e.g. modifying an attribute) has
+ resulted in other replication work involving the session. A positive value + greater than the HttpSession.getMaxInactiveInterval() value will be treated
+       as a likely misconfiguration and converted to 0; i.e. replicate the
+       metadata on every request.
+      -->
+      <property name="maxUnreplicatedInterval">60</property>
+
+   </bean>
+
+ <!-- The WebMetaData to service mbean deployer org.jboss.web.tomcat.service.deployers.TomcatDeployer org.mobicents.servlet.sip.startup.jboss.TomcatConvergedDeployer--> + <bean name="WarDeployer" class="org.mobicents.servlet.sip.startup.jboss.TomcatConvergedDeployer">
+      <install bean="ManagedDeploymentCreator" method="addAttachmentType">
+         <parameter>
+            <value>org.jboss.metadata.web.jboss.JBossWebMetaData</value>
+         </parameter>
+         <parameter>
+            <value>war</value>
+         </parameter>
+      </install>
+ <uninstall bean="ManagedDeploymentCreator" method="removeAttachmentType">
+         <parameter>
+            <value>org.jboss.metadata.web.jboss.JBossWebMetaData</value>
+         </parameter>
+      </uninstall>
+
+      <!-- Inject the MainDeployer for resolving cross deployment refs -->
+ <property name="mainDeployer"><inject bean="MainDeployer" /></property>
+
+      <property name="relativeOrder">2003</property>
+
+      <!-- FIXME Get this moved to TomcatService in deploy -->
+      <property name="configFile">
+ <value-factory bean="ServiceBindingManager" method="getResourceBinding">
+            <parameter>jboss.web:service=WebServer</parameter>
+ <parameter>${jboss.server.home.url}${/}deploy${/}jbossweb.sar${/}server.xml</parameter>
+         </value-factory>
+      </property>
+
+ <!-- You can configure a set of authenticators keyed by http-auth method
+      used. This will apply the same set of authenticators across all web
+      applications. You can override the set of authenticators at the web
+ application level by adding <authenticators> element to the respective
+      jboss-web.xml
+      -->
+      <property name="authenticators">
+ <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
+            <entry>
+               <key>BASIC</key>
+ <value>org.apache.catalina.authenticator.BasicAuthenticator</value>
+            </entry>
+            <entry>
+               <key>CLIENT-CERT</key>
+ <value>org.apache.catalina.authenticator.SSLAuthenticator</value>
+            </entry>
+            <entry>
+               <key>DIGEST</key>
+ <value>org.apache.catalina.authenticator.DigestAuthenticator</value>
+            </entry>
+            <entry>
+               <key>FORM</key>
+ <value>org.apache.catalina.authenticator.FormAuthenticator</value>
+            </entry>
+            <entry>
+               <key>NONE</key>
+ <value>org.apache.catalina.authenticator.NonLoginAuthenticator</value>
+            </entry>
+         </map>
+      </property>
+
+      <!-- The JAAS security domain to use in the absense of an explicit
+      security-domain specification in the war WEB-INF/jboss-web.xml
+      -->
+ <property name="defaultSecurityDomain">java:/jaas/jboss-web-policy</property>
+
+      <!-- Get the flag indicating if the normal Java2 parent first class
+ loading model should be used over the servlet 2.3 web container first
+           model.
+      -->
+      <property name="java2ClassLoadingCompliance">false</property>
+ <!-- This is NO LONGER supported this way and it will be completely removed for 6.x. + See JBAS-6914 for how you can achieve the same in 5.x with new MC JBossCL layer.
+
+ A flag indicating if the JBoss Loader should be used. This loader + uses a unified class loader as the class loader rather than the tomcat
+           specific class loader.
+ The default is false to ensure that wars have isolated class loading
+           for duplicate jars and jsp files.
+      <property name="useJBossWebLoader">false</property>
+      -->
+      <!-- The list of package prefixes that should not be loaded without
+         delegating to the parent class loader before trying the web app
+         class loader. The packages listed here are those tha are used by
+ the web container implementation and cannot be overriden. The format + is a comma separated list of the package names. There cannot be any
+         whitespace between the package prefixes.
+         This setting only applies when UseJBossWebLoader=false.
+      -->
+ <property name="filteredPackages">javax.servlet,org.apache.commons.logging</property>
+
+      <property name="lenientEjbLink">true</property>
+
+      <!--Flag to delete the Work Dir on Context Destroy -->
+      <property name="deleteWorkDirOnContextDestroy">false</property>
+
+      <!--
+ Class of the session manager (used if context is marked as 'distributable'. Currently allowed values:
+          - org.jboss.web.tomcat.service.session.JBossCacheManager
+      -->
+ <property name="managerClass">org.jboss.web.tomcat.service.session.JBossCacheSipManager</property>
+
+ <!-- The name of the request property under with the authenticated JAAS
+      Subject is stored on successful authentication. If null or empty then
+      the Subject will not be stored.
+      -->
+      <!--
+      <property name="subjectAttributeName">j_subject</property>
+      -->
+
+ <!-- The SessionIdAlphabet is the set of characters used to create a session Id
+           It must be made up of exactly 65 unique characters
+ <property name="sessionIdAlphabet">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-_</property>
+      -->
+
+      <property name="domain">jboss.web</property>
+       <!--  Specify a Bean for JBoss Security PolicyRegistration -->
+ <property name="policyRegistrationName">JBossSecurityPolicyRegistration</property>
+
+       <!-- Specify a SecurityManagement Wrapper -->
+ <property name="securityManagementName">JNDIBasedSecurityManagement</property>
+
+       <!-- Specify a SecurityContext FQN class name -->
+ <property name="securityContextClassName">org.jboss.security.plugins.JBossSecurityContext</property>
+   </bean>
+
+   <bean name="MergedJBossConvergedSipMetaDataDeployer"
+ class="org.jboss.sip.deployers.MergedJBossConvergedSipMetaDataDeployer">
+   </bean>
+
+</deployment>
=======================================
--- /dev/null
+++ /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/uas/clustering-reinvite-uac-passivation.xml Mon Nov 15 08:47:48 2010
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- Luis Barreiro - Mobicents QA team -->
+
+<scenario name="Basic Sipstone UAC">
+
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE sip:[servi...@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
+      To: sut <sip:[servi...@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 1 INVITE
+      Contact: sip:s...@[local_ip]:[local_port]
+      Max-Forwards: 70
+      Subject: Clustering Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio [media_port] RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true">
+  </recv>
+
+  <recv response="180" optional="true">
+  </recv>
+
+  <recv response="200" rtd="true" rrs="true">
+  </recv>
+
+  <pause milliseconds="300"/>
+
+  <send>
+    <![CDATA[
+
+      ACK [next_url] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
+      To: sut <sip:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 1 ACK
+      Contact: sip:s...@[local_ip]:[local_port]
+      Max-Forwards: 70
+      [routes]
+      Subject: Clustering Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <pause milliseconds="30000"/>
+
+  <send retrans="500">
+    <![CDATA[
+
+      INVITE [next_url] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
+      To: sut <sip:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 2 INVITE
+      Contact: sip:s...@[local_ip]:[local_port]
+      [routes]
+      Max-Forwards: 70
+      Subject: Clustering Test
+      Content-Type: application/sdp
+      Content-Length: [len]
+
+      v=0
+      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+      s=-
+      c=IN IP[media_ip_type] [media_ip]
+      t=0 0
+      m=audio [media_port] RTP/AVP 0
+      a=rtpmap:0 PCMU/8000
+
+    ]]>
+  </send>
+
+  <recv response="100" optional="true">
+  </recv>
+
+  <recv response="180" optional="true">
+  </recv>
+
+  <recv response="200" rtd="true" rrs="true">
+  </recv>
+
+  <pause milliseconds="300"/>
+
+  <send>
+    <![CDATA[
+
+      ACK [next_url] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
+      To: sut <sip:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 2 ACK
+      Contact: sip:s...@[local_ip]:[local_port]
+      Max-Forwards: 70
+      [routes]
+      Subject: Clustering Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <pause milliseconds="15000"/>
+
+  <send retrans="500">
+    <![CDATA[
+
+      BYE [next_url] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      From: sipp <sip:s...@[local_ip]:[local_port]>;tag=[call_number]
+      To: sut <sip:[servi...@[remote_ip]:[remote_port]>[peer_tag_param]
+      Call-ID: [call_id]
+      CSeq: 3 BYE
+      Contact: sip:s...@[local_ip]:[local_port]
+      [routes]
+      Max-Forwards: 70
+      Subject: Clustering Test
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <recv response="200" crlf="true">
+  </recv>
+
+</scenario>
=======================================
--- /trunk/servers/sip-servlets/sip-servlets-examples/simple-sip-servlet-distributable/src/main/sipapp/WEB-INF/jboss-web.xml Mon Nov 15 04:42:10 2010 +++ /trunk/servers/sip-servlets/sip-servlets-examples/simple-sip-servlet-distributable/src/main/sipapp/WEB-INF/jboss-web.xml Mon Nov 15 08:47:48 2010
@@ -2,5 +2,5 @@
     <replication-config>
         <replication-granularity>SESSION</replication-granularity>
     </replication-config>
-    <max-active-sessions>1</max-active-sessions>
+    <max-active-sessions>2</max-active-sessions>
 </jboss-web>
=======================================
--- /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/auto-clustering-failover-test.sh Mon Oct 18 14:23:24 2010 +++ /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/auto-clustering-failover-test.sh Mon Nov 15 08:47:48 2010
@@ -220,7 +220,7 @@
./auto-start-jboss-server-0.0.0.0.sh $config1 $config1.pid $ports1 1 uas-0.0.0.0

 #Wait to boot
-sleep $FULLSTARTSLEEP
+sleep $HALFSTARTSLEEP
 #takes a bit more time to boot on 0.0.0.0
 sleep $HALFSTARTSLEEP

@@ -232,6 +232,33 @@

 sleep 10

+##################################
+# Test UAS reinvite passivation
+##################################
+echo "Test UAS Reinvite Passivation"
+echo "================================"
+./auto-prepare-example.sh uas-passivation $config1
+./auto-prepare-example.sh uas-passivation $config2
+
+./auto-start-jboss-server.sh $config2 $config2.pid 1 uas-reinvite-passivation
+
+#Wait to boot
+sleep $HALFSTARTSLEEP
+
+./auto-start-jboss-server.sh $config1 $config1.pid 0 uas-reinvite-passivation
+
+#Wait to boot
+sleep $HALFSTARTSLEEP
+
+./auto-run-test.sh uas-reinvite-passivation result.txt
+
+#Kill the app servers
+./auto-kill-process-tree.sh `cat $config1.pid` $config1
+./auto-kill-process-tree.sh `cat $config2.pid` $config2
+
+sleep 10
+
+
 ##################################
 # Test UAC
 ##################################
@@ -247,7 +274,7 @@

 ./auto-start-jboss-server.sh $config1 $config1.pid 0 uac

-# SIPp should be running by the time JBoss finishes the startup, ence we use half start time here. +# SIPp should be running by the time JBoss finishes the startup, hence we use half start time here.

 sleep $HALFSTARTSLEEP
 ./auto-run-test.sh uac result.txt
=======================================
--- /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/auto-prepare-example.sh Tue Mar 16 19:39:13 2010 +++ /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/auto-prepare-example.sh Mon Nov 15 08:47:48 2010
@@ -7,42 +7,50 @@
            proxy)
                        echo "Distributed example used is proxy"
mvn clean install -f $EXAMPLES_HOME/location-service-distributable/pom.xml - rm -rf $JBOSS_HOME/server/$config/deploy/location-service-distributable-*.war + rm -rf $JBOSS_HOME/server/$config/deploy/location-service-distributable-*.war cp $EXAMPLES_HOME/location-service-distributable/target/location-service-distributable-*.war $JBOSS_HOME/server/$config/deploy cp $EXAMPLES_HOME/location-service-distributable/distributable-location-service-dar.properties $JBOSS_HOME/server/$config/conf/dars/mobicents-dar.properties
                    ;;
            b2bua)
                    echo "Distributed example used is b2bua"
mvn clean install -f $EXAMPLES_HOME/call-forwarding-distributable/pom.xml - rm -rf $JBOSS_HOME/server/$config/deploy/call-forwarding-distributable-*.war + rm -rf $JBOSS_HOME/server/$config/deploy/call-forwarding-distributable-*.war cp $EXAMPLES_HOME/call-forwarding-distributable/target/call-forwarding-distributable-*.war $JBOSS_HOME/server/$config/deploy cp $EXAMPLES_HOME/call-forwarding-distributable/distributable-call-forwarding-dar.properties $JBOSS_HOME/server/$config/conf/dars/mobicents-dar.properties
                    ;;
            custom-b2bua)
                    echo "Distributed example used is b2bua"
mvn clean install -f $EXAMPLES_HOME/custom-call-forwarding-distributable/pom.xml - rm -rf $JBOSS_HOME/server/$config/deploy/custom-call-forwarding-distributable-*.war + rm -rf $JBOSS_HOME/server/$config/deploy/custom-call-forwarding-distributable-*.war cp $EXAMPLES_HOME/custom-call-forwarding-distributable/target/custom-call-forwarding-distributable-*.war $JBOSS_HOME/server/$config/deploy cp $EXAMPLES_HOME/custom-call-forwarding-distributable/distributable-call-forwarding-dar.properties $JBOSS_HOME/server/$config/conf/dars/mobicents-dar.properties
                    ;;
            c2c)
                        echo "Distributed example used is Click To call"
mvn clean install -f .$EXAMPLES_HOME/click2call-distributable/pom.xml
-                       rm -rf 
$JBOSS_HOME/server/$config/deploy/click2call-distributable*.war
+                               rm -rf 
$JBOSS_HOME/server/$config/deploy/click2call-distributable*.war
cp $EXAMPLES_HOME/click2call-distributable/target/click2call-distributable*.war $JBOSS_HOME/server/$config/deploy/click2call-distributable.war
                                echo "" > 
$JBOSS_HOME/server/all/conf/dars/mobicents-dar.properties
                                ;;
            uas)
                    echo "Distributed example used is uas"
mvn clean install -f $EXAMPLES_HOME/simple-sip-servlet-distributable/pom.xml - rm -rf $JBOSS_HOME/server/$config/deploy/simple-sip-servlet-distributable-*.war + rm -rf $JBOSS_HOME/server/$config/deploy/simple-sip-servlet-distributable-*.war cp $EXAMPLES_HOME/simple-sip-servlet-distributable/target/simple-sip-servlet-distributable-*.war $JBOSS_HOME/server/$config/deploy cp $EXAMPLES_HOME/simple-sip-servlet-distributable/distributable-simple-dar.properties $JBOSS_HOME/server/$config/conf/dars/mobicents-dar.properties
                    ;;
+           uas-passivation)
+                   echo "Distributed example used is uas"
+ mvn clean install -f $EXAMPLES_HOME/simple-sip-servlet-distributable/pom.xml + rm -rf $JBOSS_HOME/server/$config/deploy/simple-sip-servlet-distributable-*.war + cp $EXAMPLES_HOME/simple-sip-servlet-distributable/target/simple-sip-servlet-distributable-*.war $JBOSS_HOME/server/$config/deploy + cp $EXAMPLES_HOME/simple-sip-servlet-distributable/distributable-simple-dar.properties $JBOSS_HOME/server/$config/conf/dars/mobicents-dar.properties + cp ./setup/jboss-5/war-deployers-jboss-beans-passivation-enabled.xml $JBOSS_HOME/server/$config/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml
+                   ;;
            uac)
                    echo "Distributed example used is uas"
mvn clean install $3 -f $EXAMPLES_HOME/shootist-sip-servlet-distributable/pom.xml - rm -rf $JBOSS_HOME/server/$config/deploy/shootist-sip-servlet-distributable-*.war + rm -rf $JBOSS_HOME/server/$config/deploy/shootist-sip-servlet-distributable-*.war cp $EXAMPLES_HOME/shootist-sip-servlet-distributable/target/shootist-sip-servlet-distributable-*.war $JBOSS_HOME/server/$config/deploy cp $EXAMPLES_HOME/shootist-sip-servlet-distributable/distributable-shootist-dar.properties $JBOSS_HOME/server/$config/conf/dars/mobicents-dar.properties
                    ;;
=======================================
--- /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh Mon Nov 15 04:41:41 2010 +++ /trunk/servers/sip-servlets/sip-servlets-test-suite/sipp-scenarios/clustering/clustering-failover-test.sh Mon Nov 15 08:47:48 2010
@@ -102,8 +102,8 @@
                        ;;
            uas-reinvite-passivation)
                        rm ./uas/*.log
-                   echo "Distributed example used is uas reinvite passivation";
- ./sipp $MSS_IP:5080 -s reinvite -sf uas/clustering-reinvite-uac.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error + echo "Distributed example used is uas reinvite passivation make sure to make at least 2 calls to the same node so that it gets activated"; + ./sipp $MSS_IP:5080 -s reinvite -sf uas/clustering-reinvite-uac-passivation.xml -trace_err -i $SIPP_IP -p 5050 -r $RATE -m $CALLS -rsa $LB_IP:5060 -trace_msg -nd -timeout $ACTIVE_TIMEOUT -timeout_error
                    ;;
            uas-timer)
                        rm ./uas/*.log

Reply via email to