Some corrections to rest and jms invocations