255.3. quartz.properties ファイルの設定
デフォルトでは、Quartz はクラスパスの org/quartz
ディレクトリーで quartz.properties
ファイルを検索します。WAR デプロイメントを使用している場合は、WEB-INF/classes/org/quartz
で quartz.properties を削除するだけです。
しかし、Camel Quartz2 コンポーネントでは、プロパティーを設定することもできます。
パラメーター | デフォルト | Type | 説明 |
---|---|---|---|
|
|
|
|
|
|
| クラスパスからロードするプロパティーのファイル名 |
これを行うには、以下のように Spring XML でこれを設定します。
<bean id="quartz2" class="org.apache.camel.component.quartz2.QuartzComponent"> <property name="propertiesFile" value="com/mycompany/myquartz.properties"/> </bean>
<bean id="quartz2" class="org.apache.camel.component.quartz2.QuartzComponent">
<property name="propertiesFile" value="com/mycompany/myquartz.properties"/>
</bean>