remeniuk / akka-cm-dispatcher Goto Github PK
View Code? Open in Web Editor NEWContainer managed thread pools for Akka Dispatchers
Container managed thread pools for Akka Dispatchers
TESTED AGAINST GLASSFISH 2.1.1, JDK 1.6.0_17. Based on Spring WorkManagerTaskExecutors (http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/jca/work/WorkManagerTaskExecutor.html) Allows using container-managed thread pools (through JCA WorkManager) for Akka Dispathers. The following containers are supported: - GlassFish (use thread-pool/work manager obtained by name or default thread-pool) - JBoss (use WorkManager MBean obtainer by bean name or default work manager) - WebSphere 6.0+, WebLogic 9.0+(use work manager obtained by JNDI name, or default work manager) GlassFish example: val dispatcher = new ExecutorBasedEventDrivenDispatcher("name") with ContainerManagedThreadPoolBuilder dispatcher .withGlassFishManagedDefaultThreadPool // if you want to use default WorkManager .buildThreadPool or dispatcher .withGlassFishManagedThreadPool("actor-thread-pool")// if you want to use named thread pool .buildThreadPool ===Download, test and build=== 1. git clone git://github.com/remeniuk/akka-cm-dispatcher.git 2. cd akka-cm-dispatcher 3. sbt 4. sbt> update 5. sbt> test ===Run example=== 1. sbt> project glassfish-managed-dispatchers-example 2. sbt> package 3. Deploy glassfish-managed-dispatchers-example\target\scala_2.8.0\glassfish-managed-dispatchers-example_2.8.0-1.0.war to Glassfish 4. Create named thread pool 5. Find list of supported dispatchers at http://localhost:8080/glassfish-managed-dispatchers-example_2.8.0-1.0/examples/dispatcherTypes 6. Run test at http://localhost:8080/glassfish-managed-dispatchers-example_2.8.0-1.0/examples/glassfish/<dispatcher type>/<thread pool name / default for default Glassfish WorkManager>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.