Skip to content

Instantly share code, notes, and snippets.

@jboner
Created March 21, 2010 22:44
Show Gist options
  • Save jboner/339613 to your computer and use it in GitHub Desktop.
Save jboner/339613 to your computer and use it in GitHub Desktop.
<!-- 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