Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21BA310F6D for ; Sun, 20 Oct 2013 09:35:06 +0000 (UTC) Received: (qmail 5682 invoked by uid 500); 20 Oct 2013 09:35:04 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 5228 invoked by uid 500); 20 Oct 2013 09:35:03 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 5218 invoked by uid 99); 20 Oct 2013 09:35:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Oct 2013 09:35:01 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andraschko.thomas@gmail.com designates 209.85.212.54 as permitted sender) Received: from [209.85.212.54] (HELO mail-vb0-f54.google.com) (209.85.212.54) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Oct 2013 09:34:54 +0000 Received: by mail-vb0-f54.google.com with SMTP id q14so3153586vbe.13 for ; Sun, 20 Oct 2013 02:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FZBjYWK54K2B7MiD7qXCWMV2tcrm8lBiWReEsw8++KE=; b=CX45/qDUGVP7WtLuiaW+n3RWKj3Wz1ayWkSKpIdc6VW5lNqfQxSYVje2WkqJqxMbpO hSG74KuxB8E33pQqBrTFbTwKdGc1e9Kj2kjqIvT7T79OBBeBuHzMFaXJjVQhfTGutRtA PjDOyH+OZbwd2KJcVRqWef8M/lVCGFOE5EEzFQyZlTsUOXi5qlAQuk74ebKGIGLwwRv7 s1i5dFwh1zVVNxwB4oWaE4zhHCcQAtJieeon1wln9nxFY4JN1nFKvxX/iV+iVfuz1ByP UqUZkxzS4lfle/8FgM/t6OZkOMWtg/JoPiEGBaN03ksl9u8Va9CdynDFVJ7k9CXHC+nd ZY+Q== MIME-Version: 1.0 X-Received: by 10.58.156.106 with SMTP id wd10mr6939803veb.7.1382261673688; Sun, 20 Oct 2013 02:34:33 -0700 (PDT) Received: by 10.52.33.196 with HTTP; Sun, 20 Oct 2013 02:34:33 -0700 (PDT) In-Reply-To: References: Date: Sun, 20 Oct 2013 11:34:33 +0200 Message-ID: Subject: Re: [OT but still JSF]: Clustering, session replication, and database, too From: Thomas Andraschko To: MyFaces Discussion Content-Type: multipart/alternative; boundary=047d7b5db7be0c238404e928e06c X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5db7be0c238404e928e06c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hey, JFYI: MyFaces+OWB on Tomcat with MSM is working fine. Don't know about TomEE. Regards, Thomas 2013/10/20 Karl Kild=E9n > Hello! I am also very interested in having more i.e. docs, examples and > stuff for clustering across the tomee stack. The discussion came up on a > jira some time ago and after that I asked Thomas to write a new post abou= t > it (First part was great!). > > For example this is something that sounds really interesting and I want t= o > know more: > > * do not replicate the session over to other nodes! > > My scenarios are usually tomee with one war or tomcat with one war and JS= F, > CDI, JPA only. > > > On 20 October 2013 05:48, Howard W. Smith, Jr. >wrote: > > > I had a question or two, since I have been reading "Java Summit - > Pitfalls > > in EE"[1] provided by Mark Struberg while having a discussion on tomee > user > > list. > > > > The following page stated the following: > > > > Page 134 > > Clustering > > > > * We use 'asymmetric clustering' > > * use sticky sessions > > * backup away the session to a memcached after each > > request > > * do not replicate the session over to other nodes! > > * Session-Replication always in node pairs. > > * only restore the session from the memcached if a failover > > happened > > * msm can be integrated into OWB: > > http://code.google.com/p/memcached-session-manager/ > > > > Since it says, 'We use asymmetric clustering' and other suggestions wer= e > > made, I found it appropriate to direct my question(s) to MyFaces 'JSF' > user > > list and committers. > > > > is there some type of blog (or two or three) available that discuss how > to > > properly cluster a tomcat/tomee/openwebbeans/myfaces JSF web app? also, > how > > is the database replicated? I don't ever see database cluster/replicati= on > > discussed by JSF developers; i recently had to search for database > cluster > > and saw 'replication', which is something i have not had to worry about > > since my previous work involved database teams while i was doing > > front-end/GUI software. > > > > now that i am doing java ee and jsf, i would love to know how to do > > database clustering and/or replicating database while clustering JSF > > webapp. Of course, right now, i only have one tomee which references > > 'apache' derby (which is performing well, but I would love to get my fe= et > > wet and cluster my web app + database). i did search derby's mail list > > archives and i learned about sequioa and HA-JDBC (High-Availability > JDBC). > > > > i was hoping to get an answer from MyFaces 'JSF' users/committers...bas= ed > > on their experience. I think someone told me that they use mysql > > (clustering); my preference is still 'apache' derby (smile). please > > remember, i'm wondering if any blogs are available that discuss > clustering > > tomcat (preference =3D tomee) + JSF web app (with database) + memcached > > session manager. > > > > Thomas has already started writing a blog[2] about this. I'm looking > > forward to seeing sample config for it all (if available). :) > > > > [1] > > > > > http://people.apache.org/~struberg/eesummit2013/Java%20EE%20Summit%20-%20= pitfalls%20in%20EE.pdf > > > > [2] > > > > > http://tandraschko.blogspot.com/2013/09/session-replication-clustering-fa= ilover.html > > > --047d7b5db7be0c238404e928e06c--