![]() |
| ||
| servlet +tomcat 5.0.28+access database+problems hi all new to tomcat.. i installed tomcat on c:/tomcat 5.0.28 and c:\j2sdk1.4.1_07. i run my hello world servlet ,did all stuff making diretories,web.xml for running a servlet .it execute on my system. i search for this in google,but i don't understand !!!! but if my servlets are using or want to connect to ms-access database then i have no idea .how to configure or connect my servlets to database.? from rohit sharma |
| ||
| Re: servlet +tomcat 5.0.28+access database+problems Have you tried connecting to a database via a Normal Java program before jumping to Servlets ??? |
| ||
| Re: servlet +tomcat 5.0.28+access database+problems Java Sun JDBC Basics tutorial, what more you need? Don't forget to get proper drivers for that crappy database of Microsoft (sorry I just do not like Access). I do not really understand why people do not use free available MySQL Community Server |
| ||
| Re: servlet +tomcat 5.0.28+access database+problems For MS Access I think you do not have a choice but to use the JDBC-ODBC Bridge. <EDIT> At least thats what I thought before I came across this page </EDIT> Also if you would like to connect to your database with out creating a DSN by using the following connection string:- "jdbc:odbc:Driver={MicroSoft Access Driver (*.mdb)};DBQ={PATH_TO_MDB_FILE}"Just replace {PATH_TO_MDB_FILE} with the absolute path to your MS Access file. By the way why are you using such an old version of the JDK ??? Quote:
|
| ||
| Re: servlet +tomcat 5.0.28+access database+problems Quote:
Quote:
Oh and BTW, when projects related to real money are involved, MySQL isn't even there; the market here is dominated by age old tried and tested database vendors like Oracle, Sybase and DB2. And please let me not hear about how real world high traffic sites like YouTube and message boards use MySQL. No one gives a damn if a few screw ups happen when you are creating a thread, making a post or uploading a video. But when real world money transactions are involved... |
| ||
| Re: servlet +tomcat 5.0.28+access database+problems Quote:
Quote:
|
| ||
| Re: servlet +tomcat 5.0.28+access database+problems Well I agree with ~sos~ as far as maintaining compatibility with legacy systems is concerned, but if we look at the current context, the thread starter I do not think is dealing with such critical systems and sounds more like a beginner to Java, so its got to be Ignorance :P. <EDIT> @Peter Budo's post ... didn't see it, damn I should learn to refresh my pages more often :P And yes I agree Small and Mid-Size firms prefer going for MySQL, an example is the firm which employs me has got 70% its critical data in MySQL DBs. |
| All times are GMT -4. The time now is 7:22 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC