• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is it possible to Read from a local Database without Server

 
Ranch Hand
Posts: 473
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic