aspose file tools*
The moose likes Java in General and the fly likes Is it possible to Read from a local Database without Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is it possible to Read from a local Database without Server" Watch "Is it possible to Read from a local Database without Server" New topic
Author

Is it possible to Read from a local Database without Server

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 435
Hi all,
Is it possible to Read from a local Database without running your server?
I want a simple html page and I want to use java or any other technology to read fields from a database on the same computer.
The user will just open the page and the field values will be in the combo box... bingo!
How to do this??
Thanx in advance


Help gets you when you need it!
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Hi,
Since your post is in java forum. Let's me try to answer using java technology.
Q: "Is it possible to Read from a local Database without running your server?"
A: JDBC is the answer.
Write a java code which connect to database to get the connection and fectch the data.
Q: Regarding html page generation.
A: If you are specific about generation of HTML. You can generate an HTML page by running the your code and open the same generated file in browser.
else write swing applicaition to display the output locally.
Well i guess you got the answer for what you are looking for. If in case no, let me get updated with more info about what you are looking for.
-Arun


Sharing is learning
Murali Nanchala
Ranch Hand

Joined: Mar 14, 2001
Posts: 74
I would say NO. Because, if he is serving up HTML using a web server, and wants to read and keep the information from the DB beforehand, then he needs to run a Java application first to do the JDBC.
Now, if he ran a Java application outside of his web server, it would be in a separate sand box. He would need to do some kind of remote programming calls to get it into the HTML page when he shows it.


"It is almost always answered in the API" - Murali Nanchala
John Flanery
Greenhorn

Joined: Mar 14, 2003
Posts: 5
The Mckoi database claims to support DB access without the server running.
http://www.mckoi.com/database/
Murali Nanchala
Ranch Hand

Joined: Mar 14, 2001
Posts: 74
You ARE starting the Database Server in single-user (stand alone) mode by specifying it in the classpath.
But I think the original question was whether JDBC could be done withhout starting the web server.
Correct me if I understood it wrong.
Dhamodharan Krishnan
Greenhorn

Joined: Nov 07, 2001
Posts: 23
Do you want an application to do the following:
1. Do DB operations and get some values 1,2,3..
2. Build an html page in the application itself and open the html through raw Java alone.
3. Whether your starting point is HTML or a Java application?
4. Let me assume the starting point is Java.
I think you can build an html with all the tags embeded in the coding.
5.Using Runtime we can open the html page. Is that OK?
6. Sorry if I had not understood your requirement.


Dhamodharan Krishnan,<br />Sun Microsystems, Bangalore<br />Direct : 91-80-4184 7247<br />Cell : 91-99 80 147 600
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to Read from a local Database without Server