Nitin Verma
unread,Jun 7, 2011, 12:55:54 PM6/7/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to XADisk
First conversation:
Jaroslav (Question) - Normally, work which is run with WorkManager
should run simple job and return. If you need to run something in some
interval, it woud be better to use some timer service which calls
startWork for each execution. Starting works, which does not finish,
causes problems in weblogic. After some defined time, these threads
are marked as STUCK and weblogic kills them. This is reason for
creating <work-manager> element in weblogic-ra.xml, which has ignore-
stuck-threads set to true.
Myself (Response) - From the JCA spec, it is very common for Work
instances to keep running for lifetime of the JCA Adapter. The Stuck
threads facility from Weblogic can be seen as an additional feature.
XADisk uses both periodic and non-periodic work instances, so we won't
be able to use some timer service. In my opinion, solution of the
ignore-stuck-threads=true should be good enough and would allow us to
keep using the standard technology like JCA.
Jaroslav (Response) - Yes, this "super feature" with STUCK threads is
two-edged. It allows server to kill some threads which are e.g.
deadlocked, but for long-running transactions or works it is like the
mother-in-law. Again I agree, weblogic-ra.xml is the right place to
keep it working for weblogic.