Я пытаюсь развернуть приложение Java EE, содержащее несколько служб таймера EJB (с постоянством = true).Сервер жалуется, что источник данных не определен:
Caused by: javax.ejb.EJBException: See nested exception; nested exception is: java.lang.IllegalStateException: The ejbPersistentTimer feature is enabled, but the defaultEJBPersistentTimerExecutor persistent executor cannot be resolved. The most likely cause is that the DefaultDataSource datasource has not been configured. Persistent EJB timers require a datasource configuration for persistence.
Включена функция ejbPersistentTimer-3.2.Я не могу найти пример, как настроить такой источник данных в файле server.xml
Я пытался:
<dataSource id="timerDataSource" jndiName="jdbc/timerDataSource">
</dataSource>
<databaseStore id="EJBTimerDatabaseStore"
tablePrefix="EJBTimer_" dataSourceRef="timerDataSource" />
<persistentExecutor
id="defaultEJBPersistentTimerExecutor"
taskStoreRef="EJBTimerDatabaseStore" />
Но это, кажется, не достаточно?Мне тоже нужно было активировать DerbyDB как функцию?