forked from eigengo/akka-patterns
-
Notifications
You must be signed in to change notification settings - Fork 6
Configuration
leedm777 edited this page Jul 6, 2012
·
3 revisions
#Configuration
Typical Akka applications require configurable elements. And by those, I mean trivial things such as javax.sql.DataSource
s, javax.mail.Session
s and many others. We would like to keep our codebase the same accross environments; and by codebase, I also mean the configuration files. The main reason is that I can guarantee that at some point, someone will forget to update the configuration file on the production servers. (Go anecdotal evidence!)
Now, in typical Java EE applications deployed in fat application servers (ugh!), we would use JNDI. Our code would lookup the JNDI elements, and we would configure the container with the right entries. Let's explore the configuration options in Akka applications.