[ 
https://issues.apache.org/jira/browse/FELIX-6194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16961721#comment-16961721
 ] 

Carsten Ziegeler commented on FELIX-6194:
-----------------------------------------

ConfigurationAdmin#getConfiguration(PID) never returns null - to avoid binding 
the configuration to your bundle you should call 
ConfigurationAdmin#getConfiguration(PID, null).
The Apache Felix Jetty implementation can start up several servers - the main 
server is controlled by this configuration - only if you want to start more 
than one server, you should use factory configurations. If you just want to 
have one - which I think is your use case - do not use factory configurations 
at all.

> Get the SslContextFactory from Jetty
> ------------------------------------
>
>                 Key: FELIX-6194
>                 URL: https://issues.apache.org/jira/browse/FELIX-6194
>             Project: Felix
>          Issue Type: Wish
>    Affects Versions: http.jetty-4.0.14
>         Environment: Java 8
>            Reporter: vato
>            Priority: Critical
>              Labels: features
>
> Hi,
> I would like to reload my keystore using 
> [SslContextFactory|https://www.eclipse.org/jetty/javadoc/current/org/eclipse/jetty/util/ssl/SslContextFactory.html#reload(java.util.function.Consumer)]
>  however I'm not able to get it from the bundle. I need to do this in runtime 
> and updating the bundle properties affects the whole server which is not a 
> good option for me. 
> Please see this stackoverflow issue for more details
> [https://stackoverflow.com/questions/58260745/setting-ssl-keystore-at-runtime-in-apache-felix]
> Thanks in advance!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to