[JBoss-user] [Management, JMX/JBoss] - Re: Starting threads from Scheduler
Almost ;) Transactions from the same origin must be processed in sequence. Transactions from different origins can be processed i parallell. So the threads must be coordinated to avoid working on the same origin at the same time. Anyway, I have solved this now by using one scheduler that populates a java.util.concurrent.BlockingQueue. My worker threads feed of the blockingqueue, and the swchedulerwaits for all threads to die before finishing. Unless starting threads from my scheduler should be avoided, I believe this is a simple solution. -Karl Ivar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913068#3913068 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913068 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Starting threads from Scheduler
Wait a minute... are you saying that a scheduler can start other schedulers programmatically? And they will all run in parallell? I'm a bit unsure what the benefits will be over using threads, but i'll look into it. Thanks again, Karl Ivar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912567#3912567 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912567 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: Starting threads from Scheduler
Thanks for the tip! In my case, using separate schedulers introduces the problem of coordinating them; the threads must work on different "chunks" of data to avoid conflicts. I'm sure the coordination can be done, but it would be easier to use just one "master" scheduler if possible. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912560#3912560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912560 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Config-files outside of .EAR
That works great! This info should be on the front page on "JBoss for dummies"... I suppose this not necessarily implies that /server/default/conf is in the classpath? -Karl Ivar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912557#3912557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912557 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Config-files outside of .EAR
Hi all, Is there a possibility to have an external config-file for an EAR application? I would like this file to have the deployment-environment specific settings that would differ in e.g. a production vs. test environment. When moving an EAR file from TEST to PROD today, we have to expand the EAR, expand an embedded JAR, edit a propery file, re-zip, re-zip and deploy. All this just to change the path to a directory that is different in TEST and PROD. And someone must remember to do this _every_ time we deploy (which is not very realistic, as someone else is doing the deployment). Most resource-related settings are handled this way already by external configuration of datasources etc, but there is almost always need for additional settings that is specific for the application being deployed. Everything in the server/lib folder has to be JARs, so I cannot just drop a .property file in there either. Is the only alternative to unpacking jars setting the JVM/system parameters? regards, Karl Ivar Dahl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912330#3912330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912330 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Starting threads from Scheduler
Hi, I am currently initiating batch processing from a scheduler implementing org.jboss.varia.scheduler.Schedulable. This scheduler does a sequence of calls to an EJB (proxied by Spring). This works great, but to achieve better performance, I would like to do several of the EJB calls in parallell. As far as I can see it, this could be solved by a) Using 5-10 parallell threads in my scheduler, or b) Doing asynchronous MDB calls insted of calls to my SLSB. Do anyone have any experience with one vs. the other? Is it advisable to start threads from a scheduler at all? Are there other techniques that I can use to enable parallell batch processing? (As a side note if you wonder why the scheduler must do all these calls: I need the scheduler to break up the batch to allow me to have one transaction per call. I have so far been unable to make a new transaction when one EJB calls another EJB in combination with Spring and Hibernate.) Thanks, Karl Ivar Dahl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912321#3912321 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912321 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user