Raxa/raxacore — pull request #15 by staticBit (2012-07-04 07:08:36+00:00)
Title: RAXAJSS-258 Fixed Raxacore Crash Bug

Raxacore was crashing with this error in the tomcat log:

WARN - ServiceContext.getService(706) |2012-07-03 02:47:23,989| Waiting to get service: interface org.raxa.module.raxacore.PatientListService while the context is being refreshed

This error was caused because we were trying to use a Context object before Spring finished loading all the beans. If we try and access global properties in constructors methods or as static variables such an issue would be faced.

The line PatientListService service = Context.getService(PatientListService.class); was causing the error.

Moved this initialization to a method and invoked that method from all the rest call methods.