db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Máximo Castillo <maximo.j.casti...@gmail.com>
Subject Re: Stopping NetworkServerControl
Date Thu, 22 Apr 2010 20:33:56 GMT
You have to use something like this:

if(embeddedConn != null)
embeddedConn.close();
try
{
// shutdown Derby Network Server
*DriverManager.getConnection("jdbc:derby:;shutdown=true");*
}
catch(SQLException se)
{
//ignore se
}

Just create a connection with a "jdbc:derby:;shutdown=true" url


Maximo

On Thu, Apr 22, 2010 at 4:37 PM, David Van Couvering <david@vancouvering.com
> wrote:

> Sorry if this is obvious, but I can't seem to figure it out.  I know how to
> start a network listener for an embedded database:
>
> new NetworkServerControl().start(writer);
>
> but how do you stop it?  There is no stop method on NetworkServerControl...
>
> Thanks!
>
> David
>
> --
> David W. Van Couvering
>
> http://www.linkedin.com/in/davidvc
> http://davidvancouvering.blogspot.com
> http://twitter.com/dcouvering
>

Mime
View raw message