2016-11-21 5 views
0

OSGIバンドルの青写真に関する質問が1つあります。私はactivitiを1つにまとめていますが、青写真でいくつかの設定を行う必要があります。私はそれらの設定を変更するたびにバンドルを新しいものにコンパイルしたくない。それを変更してバンドルを再起動するだけでよいのですか?osgiのバンドルから変数を取り出す

<bean id="configuration" class="org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration" 
     ext:field-injection="true"> 
    <property name="databaseType" value="h2"/> 
    <property name="dataSource" ref="dataSource"/> 
    <property name="transactionManager" ref="transactionManager"/> 
    <property name="databaseSchemaUpdate" value="true"/> 
    <property name="transactionsExternallyManaged" value="true"/> 
    <property name="defaultCamelContext" value="defaultContext"/> 
    <property name="mailServerHost" value="smtp.googlemail.com"/> 
    <property name="mailServerUsername" value="xxxx"/> 
    <property name="mailServerPassword" value="xxxx"/> 
    <property name="mailServerPort" value="465"/> 
    <property name="useSSL" value="true" /> 
    <property name="useTLS" value="true" /> 
    <property name="mailServerDefaultFrom" value="senderadress"/> 
</bean> 

ありがとうございました!

答えて

0

OSGiでは、構成管理用の仕様を使用します。 Apache Karafでは、etcディレクトリのファイルにconfigを格納することができます。

青写真に注入するには、青写真cm名前空間を使用します。 See this tutorial使い方

関連する問題