The WorkContext's must be setup in the work thread before run() is executed.
So the best place for this would be WorkManagerImpl::startWork(WorkWrapper) as we need to
interact this the rest of the container in regards to the TransactionContext and
SecurityContext.
I agree that the layout of the WorkManagerImpl class could be a bit better - limit
duplicated code, more logging and so on.
Feel free to reorganize the WorkManagerImpl class such that each phase is better
described.
HTH
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244145#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...