Helo all, I have written a MessageDrivenBean and inside this process i will call some other Beans / Works parallel, wait some time, get the results from the ready processes and cancel the others. I read about the jca WorkManager and this were a very good solution for my problem.
But I can't find any example how to work on jboss with a WorkManager, lookup etc. so I do it in this way: | JBossWorkManager jwm = new JBossWorkManager(); | ThreadPool tp = new BasicThreadPool(); | jwm.setThreadPool(tp); | | Work work = new MyWork(1); | Work work2 = new MyWork(2); | | ExecutionContext ec = new ExecutionContext(); | | jwm.startWork(work,0,ec,null); | jwm.startWork(work2,0,ec,null); | But I think, this is not the right way! My question: How can i get a Workmanager from JBoss, through a JNDI lookup for example. best regards christian View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3908885#3908885 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3908885 ------------------------------------------------------- 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