Hi Jared,
it certainly looks like a bug in not finishing the ExecutorService when
a connection is destroyed... Calling DataStore.dispose() on your finally
block should do the trick I think, though it's also possible that some
remain live until finalize() is called on Session, may need to check.
Can you create a jira issue for the data-arcsde component and assign to
me? you can do that here <
http://jira.codehaus.org/browse/GEOT>. As a
bonus you'll get notified by Jira when the issue is fixed (which I can
do quickly).
Cheers,
Gabriel
jericks wrote:
> Hello,
>
> I have written some command line utilities using geotools and I noticed that
> when I use them with ArcSDE DataStores they don't exit (without an explicit
> call to System.exit(0)), even though I am closing the DataStore and the
> FeatureIterator in try/finally blocks. I suspect it's related to threading
> and I wonder if it's a bug.
>
> Thanks,
> Jared
--
Gabriel Roldan
OpenGeo -
http://opengeo.orgExpert service straight from the developers.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users