Breaker

Eclipse Europa is Out

Previous versions of eclipse supports J2EE which is old style enterprise application development. I havent tested yet but new version of eclipse called europa supports JEE.You can download it from http://www.eclipse.org/europa/ I hope it is worth. No related posts.

Breaker

Dependency Injection

….@EJB OrangeJuiceManagerLocal ojml;@EJB WaterManagerLocal wml;…. private OrangeJuice getSomeOrangeJuice(){ List oranges = ojml.finAllOranges(); Water water = wml.findColdWater(); return mixOrangeToWater(oranges,water);} …. 😉 Related posts: EJB3 Unit Test

Breaker

Java Application Scope

Using php one can easily define global variables using global $variable However, if you are using java, you have to do something. Java can provide variables,objects to be defined or stored in application life-cycle called application scope. You can define it in jsp; getServletContext().setAttribute(String,Object); To access this varibale Sample sample = (Sample) getServletContext().getAttribute(String); No related …