Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Is it possible to Read from a local Database without Server

 
Ranch Hand
Posts: 473
  • 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
 
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
 
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.
 
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.
 
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.
 
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!