You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2008/06/17 05:29:00 UTC

[jira] Created: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
-------------------------------------------------------------------------------------------------------------------

                 Key: CAMEL-613
                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
             Project: Apache Camel
          Issue Type: Improvement
          Components: jmx
    Affects Versions: 1.3.0
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 1.4.0


Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by William Tam <em...@gmail.com>.
I have it but it will be included in "enabled jmx by default" patch.

On Wed, Jun 18, 2008 at 2:42 PM, Claus Ibsen (JIRA) <ji...@apache.org> wrote:
>
>    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43563#action_43563 ]
>
> Claus Ibsen commented on CAMEL-613:
> -----------------------------------
>
> William do you have a patch for the bug with finding the mbean server by domain name?
>
>> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector
>> -------------------------------------------------------------------------------------------------------------------
>>
>>                 Key: CAMEL-613
>>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>>             Project: Apache Camel
>>          Issue Type: Improvement
>>          Components: jmx
>>    Affects Versions: 1.3.0
>>            Reporter: Willem Jiang
>>            Assignee: Willem Jiang
>>             Fix For: 1.4.0
>>
>>
>> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43679#action_43679 ] 

Willem Jiang commented on CAMEL-613:
------------------------------------

Done,  I changed the default connector address to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel, also updated the wiki page http://activemq.apache.org/camel/camel-jmx.html

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43500#action_43500 ] 

Claus Ibsen commented on CAMEL-613:
-----------------------------------

Maybe even ServiceMix and ActiveMQ should start using their own URL so there are no conflicts there as well.

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43563#action_43563 ] 

Claus Ibsen commented on CAMEL-613:
-----------------------------------

William do you have a patch for the bug with finding the mbean server by domain name?

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "William Tam (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43606#action_43606 ] 

William Tam commented on CAMEL-613:
-----------------------------------

I attach a patch in camel-613 that includes a fix for the finding mbean server issue. 

So, what would you like for the default jmx connector url? The current default path is /jmxrmi.  

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43507#action_43507 ] 

Willem Jiang commented on CAMEL-613:
------------------------------------

Servicemix has a servicemix -camel component , camel will work in servicemix container.
So I think we need to change the camel default connector's url.

BTW, if Camel JMX is enabled as default, how can't we deploy more than two camel context (with same default JMX connector URL) in the same servicemix container.

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-613.
--------------------------------

    Resolution: Fixed

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43675#action_43675 ] 

Claus Ibsen commented on CAMEL-613:
-----------------------------------

Willem we are closing in on a new 1.4 RC - could we get the connector url fixed before that? 

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "William Tam (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43531#action_43531 ] 

William Tam commented on CAMEL-613:
-----------------------------------

I can take care of the jira, too.

The current implementation is limited to one agent per CamelContext.  Notice a bug in the following code that findMBeanServer() always returns empty list because the find method is searching by mbean server id (not default domain name).   Once we address that we can share agent among CamelContext.  The CamelNamingStrategy already supports naming mbeans from different CamelContexts to be registered with an agent.  . 

 // jmx is enabled but there's no MBeanServer, so create one
            List servers = MBeanServerFactory.findMBeanServer(jmxDomainName);
            if (servers.size() == 0) {
                server = MBeanServerFactory.createMBeanServer(jmxDomainName);
            } else {
                server = (MBeanServer)servers.get(0);
            }

Also, multiple agents can be attached to a connector server by registering the connector server (itself a mbean) to the agents.

Even we say we enable jmx by default, I am not sure we should create a connector server by default.  The reason is that applications may already have a connector server in the VM (like the above use case of Camel in ServiceMix deployment).  Also, it increases the chances of port conflict as it tries to grab 1099.   I think by default, Camel should create or find an agent and register all camel mbeans.   The user can then configures to attach to a connector server or create a new one.



> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen closed CAMEL-613.
-----------------------------


> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-613) Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43607#action_43607 ] 

Willem Jiang commented on CAMEL-613:
------------------------------------

I want to change it to /jmxrmi/camel and  will take a look at your patch :)

> Change the JMX default connetor's URL to avoid the confilict with the ActiveMQ or ServiceMix JMX default connector 
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-613
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-613
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: jmx
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> Since the Camel default JMX connector's URL is same with ActiveMQ and ServiceMix default JMX Connector URL,  we need to change it to avoid the conflict.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.