Sorry, my english is poor, I try to explain that problem I reached.
I write a program using SAF, and I want to start derby server for my
purpose, then I wrote:
@Action
public void startServer() {
try {
PrintWriter pw = new PrintWriter(System.out);
InetAddress ia = InetAddress.getByName("172.22.25.210");
NetworkServerControl serverControl = new NetworkServerControl(ia,
1527);
serverControl.start(pw);
System.out.println(serverControl.getSysinfo());
//serverControl.shutdown();
} catch (Exception ex) {
ex.printStackTrace();
}
}
Then I found my program blocked on
"System.out.println(serverControl.getSysinfo());"
And I found that any function call to serverControl will be blocked after
.start()
Only one way, using 127.0.0.1 for derby could run normally.
Thanks for any help!
--
View this message in context:
http://old.nabble.com/Derby-confuse-with-SWing-Application-Framework-tp28629315p28629315.html
Sent from the Apache Derby Developers mailing list archive at Nabble.com.