X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9592A9DCA58 for ; Wed, 1 Feb 2006 04:01:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87012-07 for ; Wed, 1 Feb 2006 04:01:33 -0400 (AST) X-Greylist: delayed 00:09:19.765868 by SQLgrey- Received: from yesasia.com (unknown [202.155.207.202]) by postgresql.org (Postfix) with SMTP id 807349DC837 for ; Wed, 1 Feb 2006 04:01:29 -0400 (AST) Received: (qmail 12208 invoked from network); 1 Feb 2006 07:41:31 -0000 X-NetworkBox-HamSign: 0101; OUT; islyesasiahk1; 10b1d9be90e0695459e88615e41adf4e; Received: from unknown (HELO ?192.168.120.202?) (192.168.120.202) by 192.168.120.1 with SMTP; 1 Feb 2006 07:41:30 -0000 Message-ID: <43E06629.2000307@gmail.com> Date: Wed, 01 Feb 2006 15:41:29 +0800 From: Tea Yu User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Charles Curi CC: pgsql-jdbc@postgresql.org Subject: Re: Shopping Cart References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By-islyesasiahk1: Virus scan performed by network-box X-Scanned-By-islyesasiahk1: Scanner file id is islyesasiahk1-1138779690.939-12205-000 X-Scanned-By-islyesasiahk1: No known viruses found in message (received+scanned in 0.01/0.06 secs) X-Scanned-By-islyesasiahk1: Spam-Check-Result: No, hits=0 required=7 tests= autolearn=no version=2.0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200602/2 X-Sequence-Number: 14599 You can compromise on Session for anonymous Shoppers and DB-backed persistence for logged-in shoppers. An exception is when you have a web server cluster and you find that they are busy replicating sessions all the time, then you might also opt for DB-backed shopping carts in the former. Tea > O Charles Curi έγραψε στις Jan 31, 2006 : > > >> Hi people. >> I need to implement a shopping cart in my Java web system. >> A friend of mine adviced me using stored procedures and temporary tables >> with PostgreSQL. >> I wonder if anybody have an example in mood to help me. >> I`d be grateful. >> > > Session wide stored Attribues would definately do the job, > and fits with the idea of temporary inmemory storage. > > When i implemented a web based email client on top of > jboss/jetty/pgsql i used the above techinque for implementing > attachments. > > However the persistence of the transaction's details might be subject > to further thought. > > >> Cheers. >> Charles