Skip to content

Instantly share code, notes, and snippets.

@Karm
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karm/9549900 to your computer and use it in GitHub Desktop.
Save Karm/9549900 to your computer and use it in GitHub Desktop.
STOP-APP Playing around...
curl "http://BOX666:8847/clusterbench/jvmroute" -i
HTTP/1.1 200 OK
Date: Fri, 14 Mar 2014 15:15:09 GMT
Set-Cookie: JSESSIONID=G6iMXP1R9g69aF0c6+0kHzBy.jboss-eap-6.3; Path=/clusterbench
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 13
Connection: close
jboss-eap-6.3
curl "http://BOX666:8847/clusterbench/jvmroute;jsessionid=G6iMXP1R9g69aF0c6+0kHzBy.jboss-eap-6.3" -i
HTTP/1.1 200 OK
Date: Fri, 14 Mar 2014 15:15:22 GMT
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 13
Connection: close
jboss-eap-6.3
-- many requests, keeps session --
curl 'http://BOX666:8847/mcm?nonce=5059df3c-c1db-4cb5-9436-0e71a431a33d&Cmd=STOP-APP&Range=CONTEXT&JVMRoute=jboss-eap-6.3&Alias=default-host&Context=/clusterbench'
curl "http://BOX666:8847/clusterbench/jvmroute;jsessionid=G6iMXP1R9g69aF0c6+0kHzBy.jboss-eap-6.3" -i
HTTP/1.1 200 OK
Date: Fri, 14 Mar 2014 15:16:17 GMT
Set-Cookie: JSESSIONID=eZxhkqee2hdO-HSLmSrKYQqg.jboss-eap-6.3-2; Path=/clusterbench
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 15
Connection: close
jboss-eap-6.3-2
//Let's have a new session...
[root@BOX666 ews-eap6]# curl "http://BOX666:8847/clusterbench/jvmroute" -i
HTTP/1.1 200 OK
Date: Fri, 14 Mar 2014 15:38:42 GMT
Set-Cookie: JSESSIONID=JE-0dq0Nt97aattxOAMaV0wz.jboss-eap-6.3; Path=/clusterbench
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 13
Connection: close
jboss-eap-6.3
//Let's use it and see whether we are not going to get a new one...
[root@BOX666 ews-eap6]# curl "http://BOX666:8847/clusterbench/jvmroute;jsessionid=JE-0dq0Nt97aattxOAMaV0wz.jboss-eap-6.3" -i
HTTP/1.1 200 OK
Date: Fri, 14 Mar 2014 15:38:59 GMT
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 13
Connection: close
jboss-eap-6.3
//That is O.K., no new session.
// Stop app on node jboss-eap-6.3
[root@BOX666 ews-eap6]# curl 'http://BOX666:8847/mcm?nonce=5059df3c-c1db-4cb5-9436-0e71a431a33d&Cmd=STOP-APP&Range=CONTEXT&JVMRoute=jboss-eap-6.3&Alias=default-host&Context=/clusterbench'
// O.K., we got a response from a different node, but with our old jsessionid.
[root@BOX666 ews-eap6]# curl "http://BOX666:8847/clusterbench/jvmroute;jsessionid=JE-0dq0Nt97aattxOAMaV0wz.jboss-eap-6.3" -i
HTTP/1.1 200 OK
Date: Fri, 14 Mar 2014 15:39:20 GMT
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 15
Connection: close
jboss-eap-6.3-2
[root@BOX666 ews-eap6]# curl "http://BOX666:8080/clusterbench/jvmroute" -i
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=hZN0BW3XnMpqU8colKqO1du7.jboss-eap-6.3; Path=/clusterbench
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 13
Date: Fri, 14 Mar 2014 15:29:10 GMT
jboss-eap-6.3
[root@BOX666 ews-eap6]# curl "http://BOX666:8080/clusterbench/jvmroute;jsessionid=hZN0BW3XnMpqU8colKqO1du7.jboss-eap-6.3" -i
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 13
Date: Fri, 14 Mar 2014 15:29:30 GMT
jboss-eap-6.3
[root@BOX666 ews-eap6]# curl "http://BOX666:8181/clusterbench/jvmroute;jsessionid=hZN0BW3XnMpqU8colKqO1du7.jboss-eap-6.3" -i
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/plain;charset=ISO-8859-1
Content-Length: 15
Date: Fri, 14 Mar 2014 15:29:40 GMT
jboss-eap-6.3-2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment