pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedShopping Cart
6+ messages / 6 participants
[nested] [flat]
* Shopping Cart
@ 2006-01-31 15:36 Charles Curi <charles.curi@gmail.com>
0 siblings, 4 replies; 6+ messages in thread
From: Charles Curi @ 2006-01-31 15:36 UTC (permalink / raw)
To: pgsql-jdbc
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.
Cheers.
Charles
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Shopping Cart
@ 2006-01-31 15:52 Guido Neitzer <guido.neitzer@pharmaline.de>
parent: Charles Curi <charles.curi@gmail.com>
3 siblings, 0 replies; 6+ messages in thread
From: Guido Neitzer @ 2006-01-31 15:52 UTC (permalink / raw)
To: pgsql-jdbc
On 31.01.2006, at 16:36 Uhr, Charles Curi wrote:
> 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.
If you have a Java based web application I wonder whether you have
something session based and could easily implement a simple Java
class "ShoppingCart" that is used by the session (or the session's
user).
I wouldn't build something database dependant if I have other options
to do it much easier in Java code.
cug
--
PharmaLine Essen, GERMANY and
Big Nerd Ranch Europe - PostgreSQL Training, Feb. 2006, Rome, Italy
http://www.bignerdranch.com/classes/postgresql.shtml
Attachments:
smime.p7s (application/pkcs7-signature, 2.4K) download
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Shopping Cart
@ 2006-01-31 23:31 Markus Schaber <schabi@logix-tt.com>
parent: Charles Curi <charles.curi@gmail.com>
3 siblings, 0 replies; 6+ messages in thread
From: Markus Schaber @ 2006-01-31 23:31 UTC (permalink / raw)
To: Charles Curi <charles.curi@gmail.com>; +Cc: pgsql-jdbc
Hi, Charles,
Charles Curi schrieb:
> 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.
It might be more convenient to use entity beans or a database
abstraction layer like hibernate.
HTH,
Markus
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Shopping Cart
@ 2006-02-01 07:41 Tea Yu <teayu1@gmail.com>
parent: Achilleus Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 0 replies; 6+ messages in thread
From: Tea Yu @ 2006-02-01 07:41 UTC (permalink / raw)
To: Charles Curi <charles.curi@gmail.com>; +Cc: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Shopping Cart
@ 2006-02-01 08:27 Achilleus Mantzios <achill@matrix.gatewaynet.com>
parent: Charles Curi <charles.curi@gmail.com>
3 siblings, 1 reply; 6+ messages in thread
From: Achilleus Mantzios @ 2006-02-01 08:27 UTC (permalink / raw)
To: Charles Curi <charles.curi@gmail.com>; +Cc: pgsql-jdbc
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
>
--
-Achilleus
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Shopping Cart
@ 2006-02-02 16:36 Takeichi Kanzaki Cabrera <tkanzakic@gmail.com>
parent: Charles Curi <charles.curi@gmail.com>
3 siblings, 0 replies; 6+ messages in thread
From: Takeichi Kanzaki Cabrera @ 2006-02-02 16:36 UTC (permalink / raw)
To: Charles Curi <charles.curi@gmail.com>; +Cc: pgsql-jdbc
In Learning Java 3rd Edition you will find this implemented using Sessions.
Takeichi.
On 1/31/06, Charles Curi <charles.curi@gmail.com> wrote:
> 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.
> Cheers.
> Charles
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2006-02-02 16:36 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-31 15:36 Shopping Cart Charles Curi <charles.curi@gmail.com>
2006-01-31 15:52 ` Guido Neitzer <guido.neitzer@pharmaline.de>
2006-01-31 23:31 ` Markus Schaber <schabi@logix-tt.com>
2006-02-01 08:27 ` Achilleus Mantzios <achill@matrix.gatewaynet.com>
2006-02-01 07:41 ` Tea Yu <teayu1@gmail.com>
2006-02-02 16:36 ` Takeichi Kanzaki Cabrera <tkanzakic@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox