rants tagged with "jee"
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...
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...
Consuming @GenericType REST-webservices with jersey-client
I just lost 2 hours of my life trying to consume a RESTful webservice that returns a java.util.List → read more...