File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes how to start the database server from  code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to start the database server from  code" Watch "how to start the database server from  code" New topic
Author

how to start the database server from code

Milutin Markovic
Greenhorn

Joined: Mar 18, 2010
Posts: 12
I’m going to be deploying a java desktop app, and I am curious on how to start the
database server from within the code. I have done all of my testing through
netbeans, and have been able to get all of the connections and transactions to go
smoothly, but the database was started by using the tools > javadb > start db
server option in netbeans.

With deployment, I’ll need to be able to start the code from within my java
code.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

You should be able to run it as an embedded database in stead of a service.
Using Java DB in Desktop Applications
Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2497
    
    8

... and welcome on JavaRanch.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to start the database server from code