Concurrent and Distributed Applications with Spring
Recorded at:
samples
by
daniel nistor
Very nice presentation.
Can I have access at the samples and/or slides? Are they available somewhere on the net?
Thanks.
Re: samples
by
Mark Fisher
The samples are available here: git.springsource.org/s2gx-2010/concurrent-progr...
...and the slides are here: www.slideshare.net/DaveSyer/concurrency-fisher-...
Cheers,
Mark
Re: samples
by
Renato Santos
But there are some very small mistakes in the sample code I downloaded from git.springsource.org/s2gx-2010/concurrent-progr... :
- * In the pom.xml file from the project "messaging", the activemq-core dependency should exclude its spring-context transitive dependency. Failing to do so brings version 2.5.6 of spring-context and its transitive dependencies to the project, which results in some compilation errors (like the error "The type ApplicationListener is not generic; it cannot be parameterized with arguments <ApplicationEvent>" present in SimpleEventListener.java). The following config should do the trick (notice the exclusion):
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-core</artifactId>
<version>${org.apache.activemq.version}</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</exclusion>
</exclusions>
</dependency>
- * In the CounterDemo.java from the project "concurrency", there is a comment that reads "also try: newSingleThreadPool, newFixedThreadPool(2)". That newSingleThreadPool should be newSingleThreadExecutor() .
- * Still in CounterDemo.java and not really a bug: the line int loop = 100000; (hundred thousand) should really be int loop = 1000000; (a million). That way, it would be exactly like the presentation and better demonstrate the "Performance Myth-buster" which you explained in the presentation and in that README.TXT. =)
Thanks again for the presentation, slides and code.
Renato.</applicationevent>




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think