Hi, in the attachment there is a small example for a DAO Factory to access a database within a web service.
Juergen > > Hi to all, > > > > I use a data access object design pattern (DAO), to access a > > mysql database > > through a webservice function. > > To big advantage is, that one doesn't need any database specific > > environment variables like host, database, user > > or something else in the source code. All this is done in the JNDI > > environment of the tomcat application server. > > Another big advantage is, that the used database is abstracted from the > > "real" web service. It is very simple to > > change the database layer for another database engine. > > > > If anybody is interested in this feature, I can build up a small example > > from my source code. > > > > Greetings > > Juergen > > > > >Nice timing, I need to write a tutorial on SOAP-to-JDBC and need > > suggestions. > > >Ideas for a 'toy app' to build are greatly appreciated. > > > > > > > > >On Tue, Jun 04, 2002 at 10:44:57AM +0200, Thomas Herbstreuth wrote: > > > > 2.) > > > > Writing a webservice that connects to a mySQL Server (your > > Webservice would > > > > be the database client in this case) and delivering the data > > via a set of > > > > parametrized methods. > > > > You couldn't find anything specific about SOAPand JDBC > > because there is not > > > > the slightest difference in the use of JDBC in a Web-Service > > and a directly > > > > connected client. > > > > > > > > > > > >-- > > >Miguel A Paraz <http://mparaz.com> Mobile: +63-916-423-7922 > > >Imperium Technology, Inc. <[EMAIL PROTECTED]> Office: +63-2-812-3155 > > > >
dao.zip
Description: Zip archive