Now the jmx-url has hard coded suffix with instance name as '/jmxrmi'. That works in most simple scenarios, but sometimes it is needed to distinguish between application instances that are running on same jmx port.
The case is for example Apache ESB, that can run child instances under different names, and the default url ends with '/karaf-root' - see http://fusesource.com/docs/esb/4.4.1/esb_migration/ESBMigrationConfig-JMX.html
The change should be fairly simple - change the '/jmxrmi' suffix for some new field defined in monitored jmx item.
File to be edited: src/zabbix_java/src/com/zabbix/gateway/JMXItemChecker.java: variable url