I am tring to start the Derby Database
to listen on a given port on a remote machin. Let say I am on my window
PC called 'myMachin' IP=xxx.xxx.xxx.xxx. I want to start Derby to listen
on another window machine called 'otherMachin' IP=yyy.yyy.yyy.yyy.
If I logon to 'otherMachin' and lauch
the following command all works fine:
-cp CLASSPATH org.apache.derby.drda.NetworkServerControl start -h 0.0.0.0
Then I can create the database and several
client applications can retrieve, insert, update and delete information
stored in the database.
What I want to do is to start the server
from 'myMachin' as I cannot logon to the actual server and run the script
local to the machin. I have tried several option but I alway get an error
"Cannot list on 'otherMachin' on port 1527".
-cp CLASSPATH org.apache.derby.drda.NetworkServerControl start -h otherMachin
-cp CLASSPATH org.apache.derby.drda.NetworkServerControl start -h yyy.yyy.yyy.yyy
My CLASSPATH is ".;./vendor/lib/derby.jar;./vendor/lib/derbynet.jar".
Is this possible to do, or do we need
to be on the local host to start the server?
If this is possible what am I doing
If it is not possible, I've seen some
post for Linux, where they suggest using ssh to remote connect to the linux
box where the Database resides and the server must listen. What would be
the equivalent for Windows?
Thanks for any help.