[JBoss jBPM] - Re: async pain
by kukeltje
"ax666" wrote : Ronald, you're absolutely right, but there's nothing I can do now.
| Our hacks are not of a quality for a patch. I can quickly describe what we did:
| - new job executor who is starting 1 job reader thread
| - job reader thread uses java executor service for thread pool
| - reads jobs from db and starts new single job execution thread for each job
| - synchronize on "exclusive" and on process id/node
| - wait 1 second in each single job execution thread to not interfere with other jobs still running, this is the worst part, but it works
| - changes are extensions, no patches. new job executor configured in jbpm config
|
|
I asked one of the core developers to comment on this, so let's wait on that. Mind that real-time processing was never one of the main requirements of jBPM, so the 1 second is not to bad imo (jms could do this automatically for you with the retry-timeout)
"ax666" wrote :
| too bad above doesn't work with 3.2.1
Hmm... so you mean there is a difference in this area between 3.2 and 3.2.1?
"ax666" wrote :
| how many is "many people" ?
|
A few hundred.... no just kidding... getting it in the top 10 of most voted issues should be enough.. 3-5 votes i think
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058624#4058624
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058624
18Â years, 9Â months
[Installation, Configuration & Deployment] - Re: Seperate log4j.xml for each application
by meissa
the problem is not comming log4j. It's a jboss classloading problem.
In jboss4.3 sp1 version, you could have a log4j.jar version for each of you application.
But with jboss 4.2 version doing so, you may experience with exception below
| log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
| log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
| log4j:ERROR [WebappClassLoader
| delegate: false
| repositories:
| /WEB-INF/classes/
| ----------> Parent Classloader:
| java.net.FactoryURLClassLoader@18c10af
| ] whereas object of type
| log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1a33d48].
| log4j:ERROR Could not instantiate appender named "FILE".
|
It seem not possible to override jboss server librairies (log4j.jar is present in jboss server lib and has been customised).
Even if you try to isolate classloadiing, it's not working witk log4j.
Meissa
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058623#4058623
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058623
18Â years, 9Â months
[JBoss jBPM] - Re: async pain
by ax666
Ronald, you're absolutely right, but there's nothing I can do now.
Our hacks are not of a quality for a patch. I can quickly describe what we did:
- new job executor who is starting 1 job reader thread
- job reader thread uses java executor service for thread pool
- reads jobs from db and starts new single job execution thread for each job
- synchronize on "exclusive" and on process id/node
- wait 1 second in each single job execution thread to not interfere with other jobs still running, this is the worst part, but it works
- changes are extensions, no patches. new job executor configured in jbpm config
too bad above doesn't work with 3.2.1
how many is "many people" ?
alex
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058616#4058616
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058616
18Â years, 9Â months