[CompStrm Wiki] How to run the AwServer outside NetBeans
Status: Beta
Brought to you by:
blaforge
From: Bill la F. <laf...@ya...> - 2006-05-09 00:47:54
|
The AwServer can be run either from NetBeans (handy for debugging) or outside it. I'm only going to cover how to run the server outside of NetBeans here. (Running it inside of NetBeans is more a matter of configuring NetBeans to use the right Java platform and opening the project.) First, the rmiregistry must already be running, and with the classpath set to include AwCommon.jar. Now if you look in the top level directory, AgileWiki3, of the download file (AgileWiki3-alpha21) you will see startServer.bat. This file contains the following: java -jar AwServer\dist\AwServer.jar Really the only requirement here is that the directory containing AwServer.jar also holds a lib directory which holds AwCommon.jar. The server must, of course, be running before/while you are using a client. The server normally dynamicly assigns itself an anonymous port. However at agilewiki.org it is running behind a firewall, so there a parameter file is used to assign port 1098. The server by default uses the name "Ark" when it binds its self to the rmiregistry, but this also can be changed by the parameter file. When binding a name for itself on the rmiregistry, it provides both its name and port number. It also gives the prefered host name. But it must be running on the same host as the rmiregistry. Three files are created by the server the first time it is run, in the directory from where you invoke it (the working directory): AgileWiki.wdb3 -- the database AgileWiki.wdbb -- the before image file and AgileWiki.wdbl -- the log file. The server is moderately robust. You should be able to crash it repeatedly and it will recover ever so gracefully. Unfortunately there is still a bug and occasionally it will not restart. This doesn't happen too often (unfortunately from the perspective of finding this bug). But when it does, you can simply delete these 3 files and restart. But then you've lost all your content! --------------------------------- Yahoo! India Answers: Share what you know. Learn something new. Click here Send instant messages to your online friends - NOW |