/**
* @see MessageListener#onMessage(Message)
*/
public void onMessage(Message message) {
StaticDataService aService = new StaticDataService();
try {
ObjectMessage objectMessage = (ObjectMessage) message;
Object object = objectMessage.getObject();
if( object == null ){
aService.updateMeanWeekWage();
} else {
WageDTO aWage = (WageDTO) object;
aService.updateMeanWeekWage( aWage );
}
}
catch (JMSException pException) {
EventLogger.getInstance().log(Level.SEVERE, pException.getMessage());
}