some fixes for jmx

Signed-off-by: Ilan Goldenstein <ilan.goldenstein@ravellosystems.com>