db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John H. Embretsen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-51) Need NetworkServerControl shutdown API method that does not shutdown derby embedded
Date Wed, 19 Apr 2006 08:34:18 GMT
    [ http://issues.apache.org/jira/browse/DERBY-51?page=comments#action_12375072 ] 

John H. Embretsen commented on DERBY-51:

Kathey Marsden commented:

> I don't think the default behaviour for the API shutdown can be changed at this point.

Why is that?

>  So I suggest we do the following:
> 1) Close this issue as invalid
> 2) Open a new issue to add an API  public void shutdown(boolean derbyShutdown) 
> 3) Make it clear in the javadoc that  public void shutdown()  does not shutdown Derby
(calls shutdown(false)) 

If we don't change the default API behavior then we also need to do

4) Correct the manuals. 

Specifically, I found the following statement in the admin guide,  http://db.apache.org/derby/docs/dev/adminguide/tadminconfigshuttingdownthenetworkserver.html,
for trunk:

If user authentication is disabled, a Derby database will shut down normally when the Network
Server is shut down. If user authentication is enabled, you must explicitly shut down the
database before shutting down the Network Server by specifying a valid Derby user name and

> 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