db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Van Couvering (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-51) Need NetworkServerControl shutdown API method that does not shutdown derby embedded
Date Wed, 18 May 2005 21:12:52 GMT
     [ http://issues.apache.org/jira/browse/DERBY-51?page=comments#action_65710 ]
David Van Couvering commented on DERBY-51:

I can't seem to reproduce this behavior (see attached modification to the test derbynet/NSInSameJVM.java).
 I also looked in the code for NetworkServerControlImpl, and the code that shuts down embedded
seems to be commented out -- see the commented out code at the end of NetworkServerControlImpl.blockingStart(),
starting with "// Shutdown Cloudscape".

So, unless I missed something, it appears that right now the Derby system does *not* get shut
down when the Network Server is stopped.

Is it that we need an API that makes this an optional behavior?  Or are things OK as they

> Need NetworkServerControl shutdown API method that does not shutdown derby embedded
> -----------------------------------------------------------------------------------
>          Key: DERBY-51
>          URL: http://issues.apache.org/jira/browse/DERBY-51
>      Project: Derby
>         Type: Improvement
>   Components: Network Server
>     Versions:
>     Reporter: Kathey Marsden
>  Attachments: NSinSameJVM.java
> In an applcation server environment where both Network Server 
> and Embedded connections are being used it is a problem when 
> Network server is shutdown and deregisters the embedded driver 
> and shutsdown the databases.
> this would be the signature
> /**
> * Shutdown a Network Server.
> * Shuts down the Network Server listening on the port and InetAddress
> * specified in the constructor for this NetworkServerControl object.
> *
> * @param derbyShutdown if true, shutsdown the derby embedded system . if false do not
shutdown derby embeddded system
> * @exception Exception	throws an exception if an error occurs
> */
> public void shutdown(boolean derbyShutdown) throws Exception

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message