jruby: allow connectiion by service name

Use service name connection in tests with jruby.