Apache Derby Part 1

Preparation:

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.

Installation:

It is a ready to run,then you can extract it to your decided folder.

Overview:

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
and [Derby_Home]/docs/pdf/adminguide/derbyadmin.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.

About Charlee Chitsuk

I've been working as a software developer since 1998. At the moment I focus on system integration including with SOA and Enterprise Security Solution.

Posted on June 11, 2010, in Database and tagged . Bookmark the permalink. Leave a comment.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: