čtvrtek 24. července 2008

commonj TimerManager

Trápil jsem se rozběháním commonj knihovny na BEA WebLogic 9.2. Potřeboval jsem rozběhat periodický timer a byl jsem nucen použít tuto feature (Quartz mi byl zakázán).
Postupoval jsem podle manuálu a světe div se, nefungovalo to.

Prý stačí vložit do web.xml následující konstrukci a je to

<resource-ref>
<res-ref-name>timer/MyTimer</res-ref-name>
<res-type>commonj.timer.TimerManager</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Unshareable</res-sharing-scope>
</resource-ref>

Problém ovšem nastane při deploy !?!
Žádná package commonj.timer totiž není, zato existuje commonj.timers.
Chyba je tedy v jednom písmenku - s.

Žádné komentáře: