15
May
Dependency Injection with EJB 2.x
in JEE
Comments
Very often, I see in an EJB 2.x environment message driven or session beans with the following code : public void onMessage(Message message) { Connection connection = null; try { Context ctx = new Context(); DataSource datasource = (DataSource)ctx.lookup("jdbc/ds"); Connection connetion = ...
Read More