Apache Derby Part 1
You need to download the latest official released of Apache Derby here.
It is archived as a ZIP and TAR.GZ format, Since I’m in the Windows
environment,I choose the ZIP format. Please note, it’s nice to download
all thing for further deploying on the multi-platform environment.
It is a ready to run,then you can extract it to your decided folder.
The extracted folder contains a very useful documentation for getting
starting as [Derby_Home]/docs. There are both of HTML and PDF. The rest of
this post will follows the [Derby_Home]/docs/pdf/getstart/getstartderby.pdf
Quick First Run:
Go to the [Derby_Home]/bin and execute the “startNetworkServer“,It will
be listen on the default port as 1527. Please note:
– By default it will listen to the requests only on loopback(localhost) address.
– You need to execute the “StopNetworkServer” everytimes when you finish using.
– If you would like to let it listen on the difference port, please use
the following command for starting up.
startNetworkServer -p [port]
– If you would like to let it listing on difference host and port, please
use the following command for starting up.
startNetworkServer -h [host] -p [port] ; [host] is a host name or IP
– If you start with the additional option, such as -p and/or -h, You need
to provide the same option to the “stopNetworkServer” as well. For example
stopNetworkServer -p [port]
stopNetworkServer -h [host] -p [port]
At the moment you have finished preparing the Apache Derby already, the next
post on part 2 will take you to create the database. Anyhow it’s nice to capture
the 2 previous mentioned documents before move to the next.