cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aki Yoshida <elak...@googlemail.com>
Subject Re: [DISCUSSION] Adding the instance.id on the ObjectName
Date Fri, 29 Jun 2012 13:21:27 GMT
Okay. This was not about the bus itself but about the endpoints and others.

In that case, it makes sense to encode the id value in the object name.

Thanks for the explanation.
regards, aki

2012/6/29 Willem Jiang <willem.jiang@gmail.com>:
> Let's take the ManagedEndpoint as an example.
> If the user create two jaxws endpoint with same SEI like this.
> <jaxws:endpoint id="endpoint1"
>  serviceClass="com.example.SEI"
>  address="http://localhost:9000/service1" />
>
> <jaxws:endpoint id="endpoint2"
>  serviceClass="com.example.SEI"
>  address="http://localhost:9000/service2" />
>
> It ends up with javax.management.InstanceAlreadyExistsException.
> As CXF build up the ObjectName for the ManagedEndpoint with the same bus id,
> service name and endpoint name.
>
>
> On Fri Jun 29 18:42:47 2012, Aki Yoshida wrote:
>>
>> Hi Willem,
>> I am not sure exactly what you mean by this "instance.id".
>>
>> Currently, if no id attribute is set, the bus.id is generated by the
>> bundle id plus cxf and a random number.
>> When the id attribute is set, it is used as the bus.id shown in JMX.
>>
>> I am not sure how this "instance.id" is supposed to be used in your use
>> case.
>>
>> Could you give some examples?
>> Thanks.
>> regards, aki
>>
>> 2012/6/29 Willem Jiang <willem.jiang@gmail.com>:
>>>
>>> Hi,
>>>
>>> As you know CXF management provides a lots MBeans out of box. It works
>>> perfect if it run as stand alone.
>>> If we deploy the CXF endpoints into container like Apache Karaf, we may
>>> hit
>>> the issue that Object is already registered. That is because we don't
>>> build
>>> up unique Object name for JMX to use. And there could be more than one
>>> Bus
>>> which id is CXF.
>>>
>>> To resolve this issue I suggest we add the "instance.id" on the
>>> ObjectName.
>>> As JMX supports to look up the object with a query string, I don't think
>>> this change will effect much on the user CXF management codes.
>>>
>>> Any thoughts?
>>>
>>> --
>>> Willem
>>> ----------------------------------
>>> FuseSource
>>> Web: http://www.fusesource.com
>>> Blog:    http://willemjiang.blogspot.com (English)
>>>         http://jnn.javaeye.com (Chinese)
>>> Twitter: willemjiang
>>> Weibo: willemjiang
>>>
>>
>
>
>
> --
> Willem
> ----------------------------------
> FuseSource
> Web: http://www.fusesource.com
> Blog:    http://willemjiang.blogspot.com (English)
>        http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang
> Weibo: willemjiang
>

Mime
View raw message