aspose 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
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: 2477
    
    7

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: 2477
    
    7

... and welcome on JavaRanch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to start the database server from code
 
Similar Threads
Running a RMI Application
Java Web Start
Swing client w/ WebStart & J2ee
Netbeans Glassfish and apache derby
DriverManager.getConnection hangs from actionPerformed