This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to Read from a local Database without Server

 
Maki Jav
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Arun Boraiah
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Murali Nanchala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John Flanery
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Mckoi database claims to support DB access without the server running.
http://www.mckoi.com/database/
 
Murali Nanchala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic