AW: solution for HttpSession
"Bernhard Woehrlin" <[email protected]>
| Newsgroups | gmane.comp.java.strutscx.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Joerg, to make it easy for me I could say: Do not put these Objects into the Session. ;-) - Seriously: As far as I know there are scalability problems, i.e. if you want to run your application in a load balanced system, if you do have these Objects in in the HttpSession, because the HttpSession is bound to the Java Virtual Machine. - I remember that the most recent or in one of the next Servlet specifications this limitation may change. The StrutsCXTransformer just serializes the Attribute names and values. For Objects this is basically the Object ID which. It therefore uses the java.lang.Object's toString() method. Check out what the API says: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString() I'm not sure if you do, but it's a good idea not to overwrite the toString() method. Use any other method name if you go to write out data. Maybe you do have a lot of objects in your sessions. In fact StrutsCX will print out all there object ids. To everybody: Please let me know if this behavior should change - or should be set through a parameter in the strutscx-config.xml. Hope this will answer your request. Regards, Berny -----Ursprungliche Nachricht----- Von: [email protected] [mailto:[email protected]]Im Auftrag von Joerg Lensing Gesendet: Dienstag, 8. Juli 2003 16:04 An: [email protected] Betreff: [Strutscx-user] solution for HttpSession Hi Bernhard, I'm very satisfied with strutscx, but can you tell me, how to keep the session-element in the submitted xml document as small as possible? My problem is, that i use the HttpSession for big objects which habe toString()-methods. The output of toString is transferred to the sesseion-element. tx joerg ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Strutscx-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/strutscx-user ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps