January 5, 2017

Configuration in Java EE 6


Dependency Injection has come strong in Java EE 6, which is widely influenced from Spring Framework.

You can use the same pattern to handle configuration.


And to use it

And finally you need to add and empty WEB-INF/beans.xml to your achieve to make CDI work.

No comments: