Re: persistent data storage - the right way

2004-02-17 Thread Paul Thomas
On 16/02/2004 10:25 Turner Benjamin wrote:
Thomas,

> The simple answer is that you don't. Struts has nothing to do with data

> persistence. What I think you're really asking is how to implement
> persistence in a web application.
I do realise that. My question was indeed how to implement such a thing.

> Well, I suppose you could use the Struts Datasource plug-in if you feel

> that's the way to go but I think you'll find most people use JNDI and
the
> container-supplied connection pool.
I don't "feel" anything. I posted the question as to find out what the
standard approach is to achieving database persistence; I wouldn't post
the question if i had already decided which way i was going.
Hmm. Maybe I should capitalise subtle hints in the future ;)

Thanks to the people that suggested iBatis and Hibernate - both look very
interesting and will read up on them.
Both seem to have a good following on this list. Also read up on the 
relavent design patterns.

--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited | Software Solutions for the Smaller 
Business |
| Computer Consultants | 
http://www.thomas-micro-systems-ltd.co.uk   |
+--+-+

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] persistent data storage - the right way

2004-02-16 Thread Paul-J Woodward
Java object inspector:
http://www.programmers-friend.org/JOI/

When you dbl-click on a result in hibern8ide it pops up a JOI window and 
you can check the values of every attribute in the object - very useful 
indeed!

Paul

Global Equity Derivatives Technology
Deutsche Bank [/]





"Leonardo Francalanci" <[EMAIL PROTECTED]>
16/02/2004 11:34
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: 
    Subject:    [OT] persistent data storage - the right way


I already use hibern8ide, I also use JFaceDb plugin for eclipse to get a
first
skeleton of configuration files from my tables.

I don't know what JOI is: could you point me to some links?


> -Messaggio originale-
> Da: Paul-J Woodward [mailto:[EMAIL PROTECTED]
> Inviato: lunedi 16 febbraio 2004 13.26
> A: Struts Users Mailing List
> Oggetto: Re: R: persistent data storage - the right way
>
>
> Leonardo,
>
> You're correct. Unless you want to do specific queries on the
> database the
> hibernate layer takes care of all queries to the database.
>
> If you do have to do clever stuff, be sure to download hibern8ide it is
> very good for perfecting queries, and very powerful when combined with
> JOI.
>
> Paul
> 
> Global Equity Derivatives Technology
> Deutsche Bank [/]
> 
>
>
>
>
> "Leonardo Francalanci" <[EMAIL PROTECTED]>
> 16/02/2004 09:46
> Please respond to "Struts Users Mailing List"
>
>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> cc:
> Subject:R: persistent data storage - the right way
>
>
> I think that with hibernate you don't need to write sql
> code to save/update/delete your objects or to retrieve
> objects by their id, with ibatis you have to write
> all your sql code.
>
> Example with hibernate (pseudo-code...):
>
> session.find(MyObject, id);
> MyObject.setProp1(newvalue)
> session.save() // automatically execute an update on your db
>
> You don't have to write a line of sql with hibernate...
> (except for queries like "select from MyObject where age>23")
>
>
>
> Anyway I'm not a Guru, so I could be wrong...
>
>
>
>
>
> > -Messaggio originale-
> > Da: Mark Lowe [mailto:[EMAIL PROTECTED]
> > Inviato: lunedi 16 febbraio 2004 11.09
> > A: Struts Users Mailing List
> > Oggetto: Re: persistent data storage - the right way
> >
> >
> > One advantage hibernate has over ibatis is xdoclet support. You can
> > generate your mapping files from xdoclet comments which means that you
> > have the mappings and java code in the same place.
> > Perhaps there's ibatisdoclet but I haven't noticed it. Other 
advantages
> > vs disadvantages I haven't a clue about as I've never used ibatis.
> >
> >
> >
> > On 16 Feb 2004, at 04:11, David Friedman wrote:
> >
> > > I use hibernate so, yes, I think it is a
> > > good alternative. :)
> > >
> > > Regards,
> > > David
> > >
> > > -Original Message-
> > > From: lixin chu [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, February 15, 2004 8:56 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: persistent data storage - the right way
> > >
> > >
> > > is Hibernate another good alternative ?
> > > --- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> > >> Hi,
> > >>
> > >>
> > >> you can use iBatis [http://www.ibatis.com/] and
> > >> take a look at this example/tutorial:
> > >> http://www.reumann.net/do/struts/ibatisLesson1
> > >> (using: Struts - DAO - iBatis )
> > >>
> > >>
> > >> I think this is what your looking for.
> > >> Oliver
> > >>
> > >>
> > >>> hello,
> > >>>
> > >>> i have been looking (in vain) for a description
> > >> how to implement database
> > >>> access in struts correctly. i would like to use
> > >> the DAO (data access
> > >>> object)
> > >>> pattern in combination with datasources for
> > >> connection pooling. however, i
> > >>> am having a

[OT] persistent data storage - the right way

2004-02-16 Thread Leonardo Francalanci
I already use hibern8ide, I also use JFaceDb plugin for eclipse to get a
first
skeleton of configuration files from my tables.

I don't know what JOI is: could you point me to some links?


> -Messaggio originale-
> Da: Paul-J Woodward [mailto:[EMAIL PROTECTED]
> Inviato: lunedi 16 febbraio 2004 13.26
> A: Struts Users Mailing List
> Oggetto: Re: R: persistent data storage - the right way
>
>
> Leonardo,
>
> You're correct. Unless you want to do specific queries on the
> database the
> hibernate layer takes care of all queries to the database.
>
> If you do have to do clever stuff, be sure to download hibern8ide it is
> very good for perfecting queries, and very powerful when combined with
> JOI.
>
> Paul
> 
> Global Equity Derivatives Technology
> Deutsche Bank [/]
> 
>
>
>
>
> "Leonardo Francalanci" <[EMAIL PROTECTED]>
> 16/02/2004 09:46
> Please respond to "Struts Users Mailing List"
>
>
>         To:     "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> cc:
> Subject:R: persistent data storage - the right way
>
>
> I think that with hibernate you don't need to write sql
> code to save/update/delete your objects or to retrieve
> objects by their id, with ibatis you have to write
> all your sql code.
>
> Example with hibernate (pseudo-code...):
>
> session.find(MyObject, id);
> MyObject.setProp1(newvalue)
> session.save() // automatically execute an update on your db
>
> You don't have to write a line of sql with hibernate...
> (except for queries like "select from MyObject where age>23")
>
>
>
> Anyway I'm not a Guru, so I could be wrong...
>
>
>
>
>
> > -Messaggio originale-
> > Da: Mark Lowe [mailto:[EMAIL PROTECTED]
> > Inviato: lunedi 16 febbraio 2004 11.09
> > A: Struts Users Mailing List
> > Oggetto: Re: persistent data storage - the right way
> >
> >
> > One advantage hibernate has over ibatis is xdoclet support. You can
> > generate your mapping files from xdoclet comments which means that you
> > have the mappings and java code in the same place.
> > Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages
> > vs disadvantages I haven't a clue about as I've never used ibatis.
> >
> >
> >
> > On 16 Feb 2004, at 04:11, David Friedman wrote:
> >
> > > I use hibernate so, yes, I think it is a
> > > good alternative. :)
> > >
> > > Regards,
> > > David
> > >
> > > -Original Message-
> > > From: lixin chu [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, February 15, 2004 8:56 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: persistent data storage - the right way
> > >
> > >
> > > is Hibernate another good alternative ?
> > > --- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> > >> Hi,
> > >>
> > >>
> > >> you can use iBatis [http://www.ibatis.com/] and
> > >> take a look at this example/tutorial:
> > >> http://www.reumann.net/do/struts/ibatisLesson1
> > >> (using: Struts - DAO - iBatis )
> > >>
> > >>
> > >> I think this is what your looking for.
> > >> Oliver
> > >>
> > >>
> > >>> hello,
> > >>>
> > >>> i have been looking (in vain) for a description
> > >> how to implement database
> > >>> access in struts correctly. i would like to use
> > >> the DAO (data access
> > >>> object)
> > >>> pattern in combination with datasources for
> > >> connection pooling. however, i
> > >>> am having a hard way figuring out how to implement
> > >> the whole and to
> > >>> decouple
> > >>> my actions from knowing about the implementation
> > >> of the DB.
> > >>>
> > >>> the example application bundled with struts uses a
> > >> plugin to set up
> > >>> everything in the application context - is this
> > >> the right way to go about
> > >>> things? i am planning on using postgresql for the
> > >> moment but would like to
> > >>> foresee possible changes in the future.
> > >>>
> > >>> any examples or pointers in the right direction
>

Re: R: persistent data storage - the right way

2004-02-16 Thread Paul-J Woodward
Leonardo,

You're correct. Unless you want to do specific queries on the database the 
hibernate layer takes care of all queries to the database.

If you do have to do clever stuff, be sure to download hibern8ide it is 
very good for perfecting queries, and very powerful when combined with 
JOI.

Paul

Global Equity Derivatives Technology
Deutsche Bank [/]





"Leonardo Francalanci" <[EMAIL PROTECTED]>
16/02/2004 09:46
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
    cc: 
        Subject:    R: persistent data storage - the right way


I think that with hibernate you don't need to write sql
code to save/update/delete your objects or to retrieve
objects by their id, with ibatis you have to write
all your sql code.

Example with hibernate (pseudo-code...):

session.find(MyObject, id);
MyObject.setProp1(newvalue)
session.save() // automatically execute an update on your db

You don't have to write a line of sql with hibernate...
(except for queries like "select from MyObject where age>23")



Anyway I'm not a Guru, so I could be wrong...





> -Messaggio originale-
> Da: Mark Lowe [mailto:[EMAIL PROTECTED]
> Inviato: lunedi 16 febbraio 2004 11.09
> A: Struts Users Mailing List
> Oggetto: Re: persistent data storage - the right way
> 
> 
> One advantage hibernate has over ibatis is xdoclet support. You can 
> generate your mapping files from xdoclet comments which means that you 
> have the mappings and java code in the same place.
> Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages 
> vs disadvantages I haven't a clue about as I've never used ibatis.
> 
> 
> 
> On 16 Feb 2004, at 04:11, David Friedman wrote:
> 
> > I use hibernate so, yes, I think it is a
> > good alternative. :)
> >
> > Regards,
> > David
> >
> > -----Original Message-
> > From: lixin chu [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, February 15, 2004 8:56 PM
> > To: Struts Users Mailing List
> > Subject: Re: persistent data storage - the right way
> >
> >
> > is Hibernate another good alternative ?
> > --- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >>
> >> you can use iBatis [http://www.ibatis.com/] and
> >> take a look at this example/tutorial:
> >> http://www.reumann.net/do/struts/ibatisLesson1
> >> (using: Struts - DAO - iBatis )
> >>
> >>
> >> I think this is what your looking for.
> >> Oliver
> >>
> >>
> >>> hello,
> >>>
> >>> i have been looking (in vain) for a description
> >> how to implement database
> >>> access in struts correctly. i would like to use
> >> the DAO (data access
> >>> object)
> >>> pattern in combination with datasources for
> >> connection pooling. however, i
> >>> am having a hard way figuring out how to implement
> >> the whole and to
> >>> decouple
> >>> my actions from knowing about the implementation
> >> of the DB.
> >>>
> >>> the example application bundled with struts uses a
> >> plugin to set up
> >>> everything in the application context - is this
> >> the right way to go about
> >>> things? i am planning on using postgresql for the
> >> moment but would like to
> >>> foresee possible changes in the future.
> >>>
> >>> any examples or pointers in the right direction
> >> would be very much
> >>> appreciated.
> >>>
> >>> thanks,
> >>>
> >>> Ben.
> >>>
> >>>
> >>>
> >>
> > -
> >>> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >>> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >>>
> >>
> >> -- 
> >> GMX ProMail (250 MB Mailbox, 50 FreeSMS,
> >> Virenschutz, 2,99 EUR/Monat...)
> >> jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> >> http://www.gmx.net/derspiegel +++
> >>
> >>
> >>
> > -
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands

R: persistent data storage - the right way

2004-02-16 Thread Leonardo Francalanci
I think that with hibernate you don't need to write sql
code to save/update/delete your objects or to retrieve
objects by their id, with ibatis you have to write
all your sql code.

Example with hibernate (pseudo-code...):

session.find(MyObject, id);
MyObject.setProp1(newvalue)
session.save() // automatically execute an update on your db

You don't have to write a line of sql with hibernate...
(except for queries like "select from MyObject where age>23")



Anyway I'm not a Guru, so I could be wrong...





> -Messaggio originale-
> Da: Mark Lowe [mailto:[EMAIL PROTECTED]
> Inviato: lunedi 16 febbraio 2004 11.09
> A: Struts Users Mailing List
> Oggetto: Re: persistent data storage - the right way
> 
> 
> One advantage hibernate has over ibatis is xdoclet support. You can 
> generate your mapping files from xdoclet comments which means that you 
> have the mappings and java code in the same place.
> Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages 
> vs disadvantages I haven't a clue about as I've never used ibatis.
> 
> 
> 
> On 16 Feb 2004, at 04:11, David Friedman wrote:
> 
> > I use hibernate so, yes, I think it is a
> > good alternative. :)
> >
> > Regards,
> > David
> >
> > -Original Message-
> > From: lixin chu [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, February 15, 2004 8:56 PM
> > To: Struts Users Mailing List
> > Subject: Re: persistent data storage - the right way
> >
> >
> > is Hibernate another good alternative ?
> > --- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >>
> >> you can use iBatis [http://www.ibatis.com/] and
> >> take a look at this example/tutorial:
> >> http://www.reumann.net/do/struts/ibatisLesson1
> >> (using: Struts - DAO - iBatis )
> >>
> >>
> >> I think this is what your looking for.
> >> Oliver
> >>
> >>
> >>> hello,
> >>>
> >>> i have been looking (in vain) for a description
> >> how to implement database
> >>> access in struts correctly. i would like to use
> >> the DAO (data access
> >>> object)
> >>> pattern in combination with datasources for
> >> connection pooling. however, i
> >>> am having a hard way figuring out how to implement
> >> the whole and to
> >>> decouple
> >>> my actions from knowing about the implementation
> >> of the DB.
> >>>
> >>> the example application bundled with struts uses a
> >> plugin to set up
> >>> everything in the application context - is this
> >> the right way to go about
> >>> things? i am planning on using postgresql for the
> >> moment but would like to
> >>> foresee possible changes in the future.
> >>>
> >>> any examples or pointers in the right direction
> >> would be very much
> >>> appreciated.
> >>>
> >>> thanks,
> >>>
> >>> Ben.
> >>>
> >>>
> >>>
> >>
> > -
> >>> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >>> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >>>
> >>
> >> -- 
> >> GMX ProMail (250 MB Mailbox, 50 FreeSMS,
> >> Virenschutz, 2,99 EUR/Monat...)
> >> jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> >> http://www.gmx.net/derspiegel +++
> >>
> >>
> >>
> > -
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >>
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Finance: Get your refund fast by filing online.
> > http://taxes.yahoo.com/filing.html
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: persistent data storage - the right way

2004-02-16 Thread Mark Lowe
One advantage hibernate has over ibatis is xdoclet support. You can 
generate your mapping files from xdoclet comments which means that you 
have the mappings and java code in the same place.
Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages 
vs disadvantages I haven't a clue about as I've never used ibatis.



On 16 Feb 2004, at 04:11, David Friedman wrote:

I use hibernate so, yes, I think it is a
good alternative. :)
Regards,
David
-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 8:56 PM
To: Struts Users Mailing List
Subject: Re: persistent data storage - the right way
is Hibernate another good alternative ?
--- Oliver Thiel <[EMAIL PROTECTED]> wrote:
Hi,

you can use iBatis [http://www.ibatis.com/] and
take a look at this example/tutorial:
http://www.reumann.net/do/struts/ibatisLesson1
(using: Struts - DAO - iBatis )
I think this is what your looking for.
Oliver

hello,

i have been looking (in vain) for a description
how to implement database
access in struts correctly. i would like to use
the DAO (data access
object)
pattern in combination with datasources for
connection pooling. however, i
am having a hard way figuring out how to implement
the whole and to
decouple
my actions from knowing about the implementation
of the DB.
the example application bundled with struts uses a
plugin to set up
everything in the application context - is this
the right way to go about
things? i am planning on using postgresql for the
moment but would like to
foresee possible changes in the future.

any examples or pointers in the right direction
would be very much
appreciated.

thanks,

Ben.




-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

--
GMX ProMail (250 MB Mailbox, 50 FreeSMS,
Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
http://www.gmx.net/derspiegel +++


-
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: persistent data storage - the right way

2004-02-16 Thread Turner Benjamin

Thomas,

> The simple answer is that you don't. Struts has nothing to do with data 
> persistence. What I think you're really asking is how to implement 
> persistence in a web application.

I do realise that. My question was indeed how to implement such a thing.

> Well, I suppose you could use the Struts Datasource plug-in if you feel 
> that's the way to go but I think you'll find most people use JNDI and the 
> container-supplied connection pool.

I don't "feel" anything. I posted the question as to find out what the standard 
approach is to achieving database persistence; I wouldn't post the question if i had 
already decided which way i was going.

Thanks to the people that suggested iBatis and Hibernate - both look very interesting 
and will read up on them.

Ben

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: persistent data storage - the right way

2004-02-16 Thread Paul Thomas
On 15/02/2004 12:26 Ben Turner wrote:
hello,

i have been looking (in vain) for a description how to implement database
access in struts correctly. i would like to use the DAO (data access
object)
pattern in combination with datasources for connection pooling. however,
i
am having a hard way figuring out how to implement the whole and to
decouple
my actions from knowing about the implementation of the DB.
The simple answer is that you don't. Struts has nothing to do with data 
persistence. What I think you're really asking is how to implement 
persistence in a web application.

the example application bundled with struts uses a plugin to set up
everything in the application context - is this the right way to go about
things? i am planning on using postgresql for the moment but would like
to
foresee possible changes in the future.
Well, I suppose you could use the Struts Datasource plug-in if you feel 
that's the way to go but I think you'll find most people use JNDI and the 
container-supplied connection pool.

--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited | Software Solutions for the Smaller 
Business |
| Computer Consultants | 
http://www.thomas-micro-systems-ltd.co.uk   |
+--+-+

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: persistent data storage - the right way

2004-02-15 Thread David Friedman
I use hibernate so, yes, I think it is a
good alternative. :)

Regards,
David

-Original Message-
From: lixin chu [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 8:56 PM
To: Struts Users Mailing List
Subject: Re: persistent data storage - the right way


is Hibernate another good alternative ?
--- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> 
> you can use iBatis [http://www.ibatis.com/] and 
> take a look at this example/tutorial: 
> http://www.reumann.net/do/struts/ibatisLesson1
> (using: Struts - DAO - iBatis )
> 
> 
> I think this is what your looking for.
> Oliver
> 
> 
> > hello,
> > 
> > i have been looking (in vain) for a description
> how to implement database
> > access in struts correctly. i would like to use
> the DAO (data access
> > object)
> > pattern in combination with datasources for
> connection pooling. however, i
> > am having a hard way figuring out how to implement
> the whole and to
> > decouple
> > my actions from knowing about the implementation
> of the DB.
> > 
> > the example application bundled with struts uses a
> plugin to set up
> > everything in the application context - is this
> the right way to go about
> > things? i am planning on using postgresql for the
> moment but would like to
> > foresee possible changes in the future.
> > 
> > any examples or pointers in the right direction
> would be very much
> > appreciated.
> > 
> > thanks,
> > 
> > Ben.
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> -- 
> GMX ProMail (250 MB Mailbox, 50 FreeSMS,
> Virenschutz, 2,99 EUR/Monat...)
> jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> http://www.gmx.net/derspiegel +++
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: persistent data storage - the right way

2004-02-15 Thread lixin chu
is Hibernate another good alternative ?
--- Oliver Thiel <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> 
> you can use iBatis [http://www.ibatis.com/] and 
> take a look at this example/tutorial: 
> http://www.reumann.net/do/struts/ibatisLesson1
> (using: Struts - DAO - iBatis )
> 
> 
> I think this is what your looking for.
> Oliver
> 
> 
> > hello,
> > 
> > i have been looking (in vain) for a description
> how to implement database
> > access in struts correctly. i would like to use
> the DAO (data access
> > object)
> > pattern in combination with datasources for
> connection pooling. however, i
> > am having a hard way figuring out how to implement
> the whole and to
> > decouple
> > my actions from knowing about the implementation
> of the DB.
> > 
> > the example application bundled with struts uses a
> plugin to set up
> > everything in the application context - is this
> the right way to go about
> > things? i am planning on using postgresql for the
> moment but would like to
> > foresee possible changes in the future.
> > 
> > any examples or pointers in the right direction
> would be very much
> > appreciated.
> > 
> > thanks,
> > 
> > Ben.
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> -- 
> GMX ProMail (250 MB Mailbox, 50 FreeSMS,
> Virenschutz, 2,99 EUR/Monat...)
> jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++
> http://www.gmx.net/derspiegel +++
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: persistent data storage - the right way

2004-02-15 Thread Oliver Thiel
Hi,


you can use iBatis [http://www.ibatis.com/] and 
take a look at this example/tutorial: 
http://www.reumann.net/do/struts/ibatisLesson1
(using: Struts - DAO - iBatis )


I think this is what your looking for.
Oliver


> hello,
> 
> i have been looking (in vain) for a description how to implement database
> access in struts correctly. i would like to use the DAO (data access
> object)
> pattern in combination with datasources for connection pooling. however, i
> am having a hard way figuring out how to implement the whole and to
> decouple
> my actions from knowing about the implementation of the DB.
> 
> the example application bundled with struts uses a plugin to set up
> everything in the application context - is this the right way to go about
> things? i am planning on using postgresql for the moment but would like to
> foresee possible changes in the future.
> 
> any examples or pointers in the right direction would be very much
> appreciated.
> 
> thanks,
> 
> Ben.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



persistent data storage - the right way

2004-02-15 Thread Ben Turner
hello,

i have been looking (in vain) for a description how to implement database
access in struts correctly. i would like to use the DAO (data access object)
pattern in combination with datasources for connection pooling. however, i
am having a hard way figuring out how to implement the whole and to decouple
my actions from knowing about the implementation of the DB.

the example application bundled with struts uses a plugin to set up
everything in the application context - is this the right way to go about
things? i am planning on using postgresql for the moment but would like to
foresee possible changes in the future.

any examples or pointers in the right direction would be very much
appreciated.

thanks,

Ben.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]