[jboss-user] [JBoss jBPM] - Re: ProcessDefinition in 2nd level cache

estaub do-not-reply at jboss.com
Wed May 2 10:28:38 EDT 2007


Tom, 

The exact same design issue is in last week's commit (rev 1.2) to JpdlParser.java.  SaxParserFactory is not threadsafe.

Either each thread needs it's own SaxParserFactory (typically hung off a ThreadLocal), 

... or the newInstance() call in SaxParserFactory.createXmlReader() needs to be synchronized on a static class member or SaxParserFactory.class.

In this case, since contention will be so rare, just adding the synchronize (...JpdlParser.class) seems fine.

-Ed Staub

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042443#4042443

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042443



More information about the jboss-user mailing list