aspose file tools*
The moose likes JDBC and the fly likes JDBC and Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC and Linux" Watch "JDBC and Linux" New topic
Author

JDBC and Linux

kenneth ga
Greenhorn

Joined: Aug 05, 2004
Posts: 9
I have installed RedHat 6.1 on a machine with mysql server running.
I am using mm jdbc driver for mysql and the files are uncompressed into the Linux box.
A sample program is created which issue jdbc call to the mysql database. The applet is compiled and run from the client PC with mm jdbc driver uncompressed to my PC. The mm jdbc driver path is added to the PC's class path.
That's all I have done so far. If I want to put the application on the Linux box and calls it via an html page without having the client PC to carry the mmJDBC driver, how can I do that? Has someone got experience in this kind of setup?
I really want to have everything runs on the Linux server (web server) and the client PC just simply use the browser to access.
Thanks.
Ahmad Zawawi
Greenhorn

Joined: Apr 02, 2000
Posts: 2
you can go with the JSP/servlet solution to call JDBC queries of your client and give him the output. But that means that you have to install JServ or Allaire JRun (i dont recommend this because it had been a big pain in the ass)....
or you can go the old-fashion way and write a cgi script (in Perl or shell script - whatever) that calls your Java application and pipes its output to your client... (that's a fast way of doing things - but it is not the recommended way for the long run). Of course your Java Output would be plain HTML....
[ This is afterall what Servlets are there for ]
any more help i'll be happy to answer your questions...

Zew
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDBC and Linux
 
Similar Threads
Can I use a JDBC driver installed on another PC ?
Configuring Linux to load mysql driviers
Who is the real world
Connecting to CA-IDMS via JDBC drivers
How to set classpath variable on Linux OS for MySql database