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