db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DERBY-5511) NetworkServerControl start in java applicaton but it's exit with application main thread exit
Date Thu, 16 Feb 2012 16:54:59 GMT

    [ 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

        

Mime
View raw message