Yeah, we could make the code a bit smarter and avoid starting the thread if
we know the encryption support is disabled.
Checking with the following code inside a try / catch block should do the
trick imho
   encryptionSupport.getEncryption() != null


2016-03-16 8:36 GMT+01:00 Fabian Lange <[email protected]>:

> Hi,
>
> is there a reason why said thread always runs?
> at
>
> org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport.run(AutoEncryptionSupport.java:78)
>
> in org.apache.karaf.jaas.cfg i have
>
> encryption.enabled = false
>
>
> and I think that means the thread does not need to run. Reason for asking
> is that I want to cut down on unnecessary threads
>
>
> Fabian
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: [email protected]
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Reply via email to