public void onMessage(Message message){
  MapMessage mapMessage=null;
  if (Debug.verboseOn())   Debug.logVerbose("JMS Message Received --> " + message,module);
  if (message instanceof MapMessage) {
    mapMessage=(MapMessage)message;
  }
 else {
    Debug.logError("Received message is not a MapMessage!",module);
    return;
  }
  runService(mapMessage);
}

public void onMessage ( Message message ) { MapMessage mapMessage = null ; if ( Debug . verboseOn ( ) ) Debug . logVerbose ( "JMS Message Received --> " + message , module ) ; if ( message instanceof MapMessage ) { mapMessage = ( MapMessage ) message ; } else { Debug . logError ( "Received message is not a MapMessage!" , module ) ; return ; } runService ( mapMessage ) ; }
receives the mapmessage and processes the service .
