Return-Path: Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 97553 invoked from network); 10 Oct 2000 22:08:59 -0000 Received: from mercury.sun.com (192.9.25.1) by locus.apache.org with SMTP; 10 Oct 2000 22:08:59 -0000 Received: from taller.eng.sun.com ([129.144.125.34]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id PAA19620 for ; Tue, 10 Oct 2000 15:08:59 -0700 (PDT) Received: from eng.sun.com (d-ucup02-251-137 [129.144.251.137]) by taller.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id PAA08742 for ; Tue, 10 Oct 2000 15:08:59 -0700 (PDT) Message-ID: <39E393C2.7ADE5447@eng.sun.com> Date: Tue, 10 Oct 2000 15:10:10 -0700 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.75 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: struts-dev@jakarta.apache.org Subject: Re: References: <2D90C2075E27D4118960000629A832E5CE9409@scooby.corp.bspark.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Colin Sampaleanu wrote: > Actually, I think it should be... I just did a run through, and the Locale > object is the only thing Struts itself seems to need to store in the > Session, and that is Serializable. Just make sure the scope of all your > objects is set to Request (this does of course potentially change your > logic, you may have to pass around data a lot more for multi-pae forms). > The sample app may also have dependencies on sticking objects in the Session > object that are not serializable; I didn't really check that... > As Colin points out, the key requirement for a distributable app is that the beans you store in the session (for example, all of your ActionForm beans) must implement Serializable. This is not currently the case for the Struts example app, but can be easily made so by simply adding "implements Serializable" to all of the appropriate classes. I will do this for 1.0. Craig > > > -----Original Message----- > > From: Klaus Thiele [mailto:kth@pi-ag.com] > > Sent: October 10, 2000 1:43 PM > > To: struts-dev@jakarta.apache.org > > Subject: > > > > > > Hello, > > > > is there any chance to make a struts-application "distributable"? > > > > > > [...] > > > > i'm currently testing Orion's loadbalancing with my struts-app and > > it fails with: > > ---snipp------------------------------------------------------------- > > java.lang.IllegalArgumentException: Only java.io.Serializable, > > javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound > > to a session in a distributable web-application > > at > > com.evermind.server.http.ClusteredHttpSession.setAttribute(JAX) > > at com.evermind.server.http.EvermindHttpSession.putValue(JAX) > > at > > com.evermind.server.http.EvermindPageContext.setAttribute(JAX) > > -> at > > org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:510) > > <- > > [...] > > ---snipp------------------------------------------------------------- > > > > thanks a lot > > klaus > > > > -- > > Klaus Thiele - Personal & Informatik AG > > mailto:kth@pi-ag.com > > > > "There's got to be more to life than compile-and-go." > > -- ==================== See you at ApacheCon Europe ! Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ Applications to Tomcat