Bob Daly wrote:
The following was in a past reply to the list:
"...you should not use instance variables in your processor, as the same
instance of your processor might be used at the same time by multiple
threads."

What about other Java classes delegated by the main processor class that
is extending SimpleProcessor?  I've been assuming that this is OK...

Hi Bob,


In the readXXX() methods of your custom processor, it is safe to create instances of other classes, as if your readXXX() method is called by two threads, each call will create a distinct set of objects. You could only have a threading issue if those classes share some state among instances, for instance by using static variables.

Alex

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to