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 <[email protected]> > 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 < > [email protected]> 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
