Jeff, There are problems with graceful shutdown: https://jira.terracotta.org/jira/browse/DEV-406
So, in DistributedObjectServer.stop you'll see that really, it won't stop. For now, I think System.exec/TCStop is the way to go if you need full control. Gary ----- Original Message ----- From: "Jeff Genender" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, September 04, 2007 10:59 AM Subject: Re: [tc-dev] Embedding Terracotta (Geronimo plugin) > Anyone have an idea? > > Jeff > > Jeff Genender wrote: >> ok...I may be getting my ports mixed up...looks like its 9510 that is >> not shut down...and it is indeed the DSOServer. >> >> Thanks, >> >> >> Jeff >> >> >> Jeff Genender wrote: >>> Ok...if I am not mistaken (and I may very well be)...I need the ability >>> to shut down the dsoServer from the TCServerImpl. I think this may give >>> me what I want... >>> >>> Anyone game to make this change? (Am I right in my assumption?) >>> >>> Thanks, >>> >>> Jeff >>> >>> Jeff Genender wrote: >>>> Hi folks, >>>> >>>> I have made tremendous progress on the Terracotta server plugin for >>>> Geronimo. It installs from a repository and I can start the server >>>> just >>>> fine within Geronimo. >>>> >>>> But the problem I am having now is the stop. I am unable to use the >>>> TCStop because it does a full shutdown which ultimately ends with a >>>> System.exit(), which certainly is not good for embedded >>>> implementations, >>>> since it shuts down Geronimo too :-( >>>> >>>> Therefore I went to save the server object when I created it and I just >>>> called stop() when I want to shut down the TCServer. This effectively >>>> stops the server on 9510, but it leaves the 9520 (JMXServer) server >>>> running. But I need to shut that down too. Basically, I want to do >>>> the >>>> equivalent of a shutdown() without the System.exit(). >>>> >>>> Ideas on how to do this? >>>> >>>> Thanks, >>>> >>>> Jeff >>>> _______________________________________________ >>>> tc-dev mailing list >>>> [email protected] >>>> http://lists.terracotta.org/mailman/listinfo/tc-dev >>> _______________________________________________ >>> tc-dev mailing list >>> [email protected] >>> http://lists.terracotta.org/mailman/listinfo/tc-dev >> _______________________________________________ >> tc-dev mailing list >> [email protected] >> http://lists.terracotta.org/mailman/listinfo/tc-dev > _______________________________________________ > tc-dev mailing list > [email protected] > http://lists.terracotta.org/mailman/listinfo/tc-dev > _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
