db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Van Couvering <david.vancouver...@gmail.com>
Subject Re: Stopping NetworkServerControl
Date Thu, 22 Apr 2010 23:08:29 GMT
Hm, I don't want to shut down the database, it may be in use.  I just want
to stop the network listener.  Is that not possible?

David

2010/4/22 Máximo Castillo <maximo.j.castillo@gmail.com>

> 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
>>
>
>


-- 
David W. Van Couvering

http://www.linkedin.com/in/davidvc
http://davidvancouvering.blogspot.com
http://twitter.com/dcouvering

Mime
View raw message