You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik (Commented) (JIRA)" <ji...@apache.org> on 2012/02/16 17:54:59 UTC

[jira] [Commented] (DERBY-5511) NetworkServerControl start in java applicaton but it's exit with application main thread exit

    [ https://issues.apache.org/jira/browse/DERBY-5511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13209496#comment-13209496 ] 

Dag H. Wanvik commented on DERBY-5511:
--------------------------------------

+1. It is the responsibility of the application to stay alive here, cf. the API docs:

http://db.apache.org/derby/docs/10.8/publishedapi/jdbc4/org/apache/derby/drda/NetworkServerControl.html#NetworkServerControl(java.net.InetAddress,%20int)
                
> NetworkServerControl start in java applicaton but it's exit with application main thread exit
> ---------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5511
>                 URL: https://issues.apache.org/jira/browse/DERBY-5511
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server
>    Affects Versions: 10.8.2.2
>         Environment: java 1.6.0_u29 64bit windows 7 sp1 
>            Reporter: moonumi
>
> public static void main(String[] args) {
> NetworkServerControl serverControl=new NetworkServerControl(InetAddress.getByName("localhost"),1527);
> serverControl.start(new PrintWriter(System.out,true));
> }
> run java application.
> derby started servermode.
> but imediate exit with application main thread.
> it do not wait other connection.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira