← back to Tags
RSS feed

rants tagged with "cdi"

configuring jee apps with cdi

Every application has them - configuration parameters: admin credentials, support email addresses, urls for external services, the list is endless. Either in .properties files or in a database, they are hell to keep track of and maintain. This post details a sane way to keep all meta-information on them strictly in the source code by using JSR-299 (CDI). → read more...

by nsn on 2011-07-11 tags: programming jee java cdi

choosing CDI @Alternatives at runtime

One of the coolest features of JSR-299 are @Alternatives, letting you choose concrete implementations by simply specifying them in your beans.xml, either each one seperately or grouped in @Alternative @Stereotypes. Since we have to choose @Alternatives according to the environment the application is deployed to (development, testing, staging, production...) I was looking for a way to configure the CDI-container whithout building seperate wars for each one. → read more...

by nsn on 2011-30-11 tags: programming jee java cdi