Re: Expose MBeans in CXF

2011-05-21 Thread Sergey Beryozkin
>> Are you saying that you have to use UriInfo and UriBuilder for >> creating hrefs whenever you need to >> build an MBean representation ? >> > > After everytime server bounces, I need to at first use this url request:   > http://localhost:8080/services/jmx/, the good thing is, this request only

RE: Expose MBeans in CXF

2011-05-21 Thread Shenglin Qiu
Hi Sergey: I am able to use sub-resource locator and @UriInfo and implement: class JMXServer: @Path("/mbean/") public CxfMBean locateMBean() throws MalformedObjectNameException, NullPointerException{ UriBuilder uriBuilder = uriInfo.getBaseUriBuilder().path(this.getClass(), "lis