Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/350.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java EJB TimerService:更改文件数据存储的位置_Java_Timer_Jboss_Ejb - Fatal编程技术网

Java EJB TimerService:更改文件数据存储的位置

Java EJB TimerService:更改文件数据存储的位置,java,timer,jboss,ejb,Java,Timer,Jboss,Ejb,我正在使用EJB的TimerService,并使用文件数据存储来持久化计时器。文件位于standalone/data/timer service data/applicationname fullversion buildnumber.NameOfBean中 每次我碰撞版本或内部版本号时,计时器将位于新目录中,我将失去持久性。 通过查看配置XML,我似乎可以更改计时器持久性的基本目录,但似乎找不到任何地方来指定用于标识应用程序的内容。我最好使用应用程序名,可能还有一个主要版本,去掉次要版本和内部

我正在使用EJB的TimerService,并使用文件数据存储来持久化计时器。文件位于
standalone/data/timer service data/applicationname fullversion buildnumber.NameOfBean

每次我碰撞版本或内部版本号时,计时器将位于新目录中,我将失去持久性。

通过查看配置XML,我似乎可以更改计时器持久性的基本目录,但似乎找不到任何地方来指定用于标识应用程序的内容。我最好使用应用程序名,可能还有一个主要版本,去掉次要版本和内部版本号,确保应用程序在次要版本中使用相同的计时器数据存储


我使用的是JBoss 6.4.5.GA.

您好,您可以配置计时器服务相关文件的路径

见正式文件

登录 登录到管理控制台

Open the Timer Service Tab
Click on Profile in the top right, expand the Container item in the Profile panel on the left and select EJB 3. Select the Services
选项卡,然后是计时器服务选项卡

Enter Edit Mode
Click the Edit Button. The fields become editable.

Make the Required Changes.
You can select a different EJB3 thread pool used for the Timer Service if additional thread pools have been configured, and you can
更改用于保存计时器服务数据的目录。计时器 服务数据目录配置由两个值组成:Path、 存储数据的目录;和相对的,目录 包含路径。默认情况下,“相对于”设置为文件系统路径 变数


您好,您可以配置计时器服务相关文件的路径

见正式文件

登录 登录到管理控制台

Open the Timer Service Tab
Click on Profile in the top right, expand the Container item in the Profile panel on the left and select EJB 3. Select the Services
选项卡,然后是计时器服务选项卡

Enter Edit Mode
Click the Edit Button. The fields become editable.

Make the Required Changes.
You can select a different EJB3 thread pool used for the Timer Service if additional thread pools have been configured, and you can
更改用于保存计时器服务数据的目录。计时器 服务数据目录配置由两个值组成:Path、 存储数据的目录;和相对的,目录 包含路径。默认情况下,“相对于”设置为文件系统路径 变数


看起来很像Configuration>Container>EJB3>Services下的常规路径设置是计时器的基本目录,而不是每个计时器的特定目录名。看起来它使用的是应用程序名,我希望通过编程或在应用程序配置中更改它。看起来很像configuration>Container>EJB3>Services下的常规路径设置是计时器的基本目录,而不是每个计时器的特定目录名。看起来它使用的是应用程序名,我希望通过编程或在应用程序配置中更改它。