Created
March 21, 2010 22:44
-
-
Save jboner/339613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Example of Akka/Spring integration --> | |
<beans> | |
<!-- Create an active object --> | |
<akka:active-object id="myActiveObject" | |
target="com.biz.MyPOJO" | |
transactional="true" | |
timeout="1000" /> | |
<!-- Create an supervisor hierarchy --> | |
<akka:supervision id="my-supervisor"> | |
<akka:restart-strategy failover="AllForOne" | |
retries="3" | |
timerange="1000"> | |
<akka:trap-exits> | |
<akka:trap-exit>java.io.IOException</akka:trap-exit> | |
</akka:trap-exits> | |
</akka:restart-strategy> | |
<akka:active-objects> | |
<akka:active-object target="com.biz.MyPOJO" | |
lifecycle="permanent" | |
timeout="1000"> | |
<akka:restart-callbacks pre="preRestart" | |
post="postRestart"/> | |
</akka:active-object> | |
</akka:active-objects> | |
</akka:supervision> | |
</beans> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment