{"id":1481,"date":"2012-07-26T23:43:12","date_gmt":"2012-07-27T06:43:12","guid":{"rendered":"http:\/\/blog.networkpresence.co\/?p=1481"},"modified":"2012-07-27T02:04:27","modified_gmt":"2012-07-27T09:04:27","slug":"ensuring-your-java-apps-can-be-clustered-in-tomcat","status":"publish","type":"post","link":"http:\/\/blog.networkpresence.co\/?p=1481","title":{"rendered":"Ensuring your Java Apps can be clustered in Tomcat"},"content":{"rendered":"<p>This will be covered at our upcoming <a href=\"http:\/\/blog.networkpresence.co\/?p=1436\">Tomcat Administration Training Course in August<\/a>, but a quick note that the default for this setting is &#8216;false&#8217; and this can complicate easy and seamless load balancing and high availability of Web apps developed in Java and served to the &#8216;Net through <a href=\"http:\/\/tomcat.apache.org\">Tomcat Java Application Server<\/a> software.<\/p>\n<p>In either the <code>WEB-INF\/web.xml<\/code> or the <code>META-INF\/context.xml<\/code> for the Tomcat App that needs to be hosted through a cluster of Tomcat servers, ensure that you have the following option set in a Context:<\/p>\n<p><code>< Context distributable=\"true\" \/ ><\/code><\/p>\n<p><em>(remove spaces around < > chars)<\/em><\/p>\n<p>If you do that for a webapp already deployed in a running Tomcat Cluster, you&#8217;ll see output in catalina.out mentioning that the cluster is now running for that webapp and other session distribution information.<br \/>\nIf you set that in a web.xml globally in a Tomcat itself, then you&#8217;ll need to restart that Tomcat to enable this.<\/p>\n<p>If you&#8217;re interested in learn (much) more about <a href=\"http:\/\/blog.networkpresence.co\/?tag=tomcat\">Tomcats<\/a> and their administration and clustering, then please <a href=\"http:\/\/etc-australia.com\">contact ETC Australia<\/a> for more information and details on the upcoming Tomcat Administration training course in August.<\/p>\n<p>FYI,<br \/>\nRichard.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This will be covered at our upcoming Tomcat Administration Training Course in August, but a quick note that the default for this setting is &#8216;false&#8217; and this can complicate easy and seamless load balancing and high availability of Web apps &hellip; <a href=\"http:\/\/blog.networkpresence.co\/?p=1481\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,70],"tags":[94,78,72,110],"class_list":["post-1481","post","type-post","status-publish","format-standard","hentry","category-network-presence","category-sales","tag-apache","tag-sysadmin","tag-tomcat","tag-training"],"_links":{"self":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1481"}],"version-history":[{"count":7,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions"}],"predecessor-version":[{"id":1490,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions\/1490"}],"wp:attachment":[{"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.networkpresence.co\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}