This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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: 2541
    
  10

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
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2541
    
  10

... and welcome on JavaRanch.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to start the database server from code
 
It's not a secret anymore!