[jetty-user] Configuring keystore-path for spring defined Jetty bean

[email protected] Thu, 14 Apr 2011 18:06:51 +0200
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
I instantiate my Jetty-server in a Spring Context.
The Spring Context is started during a JUnit test.

My keystore for SSL/TLS is placed in  
src/test/resources/stores/ssl-keystore.jks

How can I pass the resulting classpath location (build into  
"test-classes/stores/ssl-keystore.jks") to the SslSocketConnector as  
"keystore" property (replacing ${ssl.keystore.path})?

("classpath:/stores/ssl-kestore.jks" does not work, because it is  
Spring specific syntax)


<bean id="jettyServer" class="org.mortbay.jetty.Server"
                 init-method="start" destroy-method="stop">
   ...
   <property name="connectors">
     <list>
       ...
       <bean id="SSLConnector"  
class="org.mortbay.jetty.security.SslSocketConnector" ...>
         <property name="keystore" value="${ssl.keystore.path}" />


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email