[jboss-dev-forums] [Design of JCA on JBoss] - Re: Implement WorkContextProvider Check
jesper.pedersen
do-not-reply at jboss.com
Tue Jul 14 08:56:57 EDT 2009
Figure 11-1 shows that the getWorkContexts() method is called by the WorkManager after the Work instance has been submitted by doWork(), startWork() and scheuleWork().
Chapter 10.3.3.5 states that a WorkCompletedException can be thrown with an appropriate error code which in this case is one of the WorkContextErrorCodes.
There is a bit more work in regards to custom contexts if you see the last paragraph in 11.4.2 - the container must always check the most specific context first - and then go up the in hierarchy to find a supported one.
You can just attach a single patch with all the changes needed if you don't want to split the patch into separate pieces. And more tests are always good :)
You can get additional checkstyle checks by uncommenting
| <module name="UnusedImports"/>
|
in tools/checkstyle/checkstyle.xml. A couple of checkstyle bugs does that we can't enable this module by default at the moment.
Thanks for your contributions !
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243531#4243531
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243531
More information about the jboss-dev-forums
mailing list