269.4. Quartz.properties ファイルの設定

デフォルトでは、Quartz はクラスパスの org/quartz ディレクトリーにある Quartz.properties ファイルを探します。WAR デプロイメントを使用している場合、これは、Quartz.properties を WEB-INF/classes/org/quartz にドロップするだけであることを意味します。

ただし、Camel Quartz2 コンポーネントでは、プロパティーを設定することもできます。

パラメーターデフォルトタイプ説明

properties

null

プロパティー

java.util.Properties インスタンスを設定できます。

propertiesFile

null

String

クラスパスからロードするプロパティーのファイル名。

これを行うには、Spring XML で次のように設定できます。

<bean id="quartz2" class="org.apache.camel.component.quartz2.QuartzComponent">
    <property name="propertiesFile" value="com/mycompany/myquartz.properties"/>
</bean>