grant {
permission java.net.SocketPermission "*:*", "accept,connect,listen,resolve";
permission javax.management.MBeanServerPermission "*";
permission javax.management.MBeanPermission "*", "invoke";
permission javax.management.MBeanPermission "[domain:type=NB,name=2]", "addNotificationListener";
permission javax.management.MBeanPermission "*", "removeNotificationListener";
};