因为需要,要更换JMX端口从8082到8081
但是修改了ObjectName里的port=xxx 后仍然更改不了
查了下 发现需要使用
adaptor.setPort来更改
Objectname只是在Mbeanserver里注册的名字而已 使用port=张三也行
[url]http://topic.csdn.net/u/20091120/10/8d1fdcba-b1b6-4a76-b930-d494f0888a49.html[/url]
[url]http://crmky.spaces.live.com/blog/cns!8C989768DB1A6B14!481.entry[/url]
但是修改了ObjectName里的port=xxx 后仍然更改不了
查了下 发现需要使用
adaptor.setPort来更改
Objectname只是在Mbeanserver里注册的名字而已 使用port=张三也行
[url]http://topic.csdn.net/u/20091120/10/8d1fdcba-b1b6-4a76-b930-d494f0888a49.html[/url]
[url]http://crmky.spaces.live.com/blog/cns!8C989768DB1A6B14!481.entry[/url]