Hi Christian,

Thank you. Your suggestion worked. I am a little concerned, though, that
the ExecutorService seems to be shared among different HapiContexts, so
calling hapiContext.getExecutorService().shutdown() could easily affect
other contexts which is pretty unintuitive.

When I was trying to figure this out myself, I saw the JVM shutdown hook in
DefaultHapiContext.getExecutorService(). I don't think this hook will do
anything because the JVM will not shut down until the ExecutorService is
shutdown anyway. At least it never worked for me.

Thanks again,
David



On Tue, Jun 4, 2013 at 4:21 AM, Christian Ohr <[email protected]>wrote:

> ConnectionHub.shutdown() basically shuts down the underlying thread pool
> as long as it hasn't been provided e.g. from an Application Server. We are
> trying to hide these technical details from the API, so the method was
> deprecated.
>
> Obviously something like HapiContext.shutdown() is the missing instead,
> and it probably gets added in the next HAPI version. For the time being you
> can safely use ConnectionHub.shutdown() or directly
> hapiContext.getExecutorService().shutdown().
>
> cheers
> Christian
>
>
> 2013/6/3 David Tombs <[email protected]>
>
>> Hi,
>>
>> Anybody have an idea?
>>
>> Thanks,
>> David
>>
>>
>> --
>> Wise men _still_ seek Him.
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. A cloud service to automate IT design, transition and operations
>> 2. Dashboards that offer high-level views of enterprise services
>> 3. A single system of record for all IT processes
>> http://p.sf.net/sfu/servicenow-d2d-j
>> _______________________________________________
>> Hl7api-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>>
>>
>


-- 
Wise men _still_ seek Him.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to