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

[jira] Created: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

Camel JMX could have problems in WebSphere 6.1 environment
----------------------------------------------------------

                 Key: CAMEL-637
                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
             Project: Apache Camel
          Issue Type: Task
          Components: camel-core
    Affects Versions: 1.4.0
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen


All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
Currently I have disabled it in my sample hello world app.

Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

William Tam commented on CAMEL-637:
-----------------------------------

I'll look at the disable issue first.

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen updated CAMEL-637:
------------------------------

    Attachment: screenshot-1.jpg

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

William Tam updated CAMEL-637:
------------------------------

    Attachment: websphere_jconsole.PNG

Since websphere's mbean server modifies objectnames (e.g. from prg.apache.camel:context=WTAM810/camel,type=context,name=WTAM810/camel to org.apache.camel:cell=WTAM810Node01Cell,name=WTAM810/camel,context=WTAM810/camel,type=context,node=WTAM810Node01,process=server1), the mbean tree also looks a bit different.

> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: mbean_registration_patch.txt, patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg, websphere_jconsole.PNG
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Resolved: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Hadrian Zbarcea resolved CAMEL-637.
-----------------------------------

    Fix Version/s: 1.4.0
                       (was: 1.5.0)
       Resolution: Fixed

Patch applied with many thanks!

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>         Attachments: patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

William Tam commented on CAMEL-637:
-----------------------------------

Nevermind my last comment regarding useJmx's default value.  It is correct as it is (TRUE).

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

Claus Ibsen updated CAMEL-637:
------------------------------

          Summary: Camel JMX does not work in WebSphere 6.1  (was: Camel JMX could have problems in WebSphere 6.1 environment)
    Fix Version/s: 1.5.0
                       (was: 1.4.0)
      Description: 
All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.


  was:
All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
Currently I have disabled it in my sample hello world app.

Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.


> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

William Tam commented on CAMEL-637:
-----------------------------------

Should useJmx (the old flag) default to FALSE?  And shouldn't it be depreciated and removed in 2.0?

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen commented on CAMEL-637:
-----------------------------------

Okay to disable the JMX agent you should not use the useJmx attribute and the new jmxAgent tag.

This snippet works and disables all the JMX stuff.
{code}
    <!-- we use the Camel Java DSL for routing but you can also do it in this xml file instead -->
    <camel:camelContext id="camel">
        <camel:package>dk.regionh.camel</camel:package>
        <camel:jmxAgent id="agent" disabled="true"/>
    </camel:camelContext>
{code}

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen commented on CAMEL-637:
-----------------------------------

Well the patch only addressed the bug with useJmx.

Camel does not run on WebSphere 6.1, and in fact you can not mange the Camel mbeans from the jconsole as you can from eg. Jetty.
However this is no surprise as WebSphere does have its troubles.

I might fight this battle from time to time as my current client is sadly a WebSphere shop.

I will target this for 1.5 and create a ticket for the useJmx that is fixed in 1.4

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>         Attachments: patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

William Tam commented on CAMEL-637:
-----------------------------------

It turns out that you have to either set the "usePlatformMBeanServer" flag to true or set the mbeanServerDefaultDomain to "WebSphere".

That is, do this:

        <camel:jmxAgent id="agent" createConnector="true"  usePlatformMBeanServer="true"/>
or
        <camel:jmxAgent id="agent" createConnector="true"  mbeanServerDefaultDomain="WebSphere"/>

The usePlatformMBeanServer would be a better option.

The problem is the implementation of MBeanServerFactory.createMBeanServer("domain.name")  does not return a mbeanserrver with the expected default domain name.  The instance of mbeanserver that associated with the connector does not seem to be the instance that registered the camel mbeans.


> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: mbean_registration_patch.txt, patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43747#action_43747 ] 

Hadrian Zbarcea commented on CAMEL-637:
---------------------------------------

I think we should use useJmx="false" and it should disable jmx completely.  
If you go some other path, please don't remove useJmx as it will break other projects.  It was removed in a previous commit and I had to reintroduce it.  It looks like my work was incomplete :(.

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen updated CAMEL-637:
------------------------------

    Fix Version/s: 1.5.0

BTW: WebSphere does report some exceptions while shutting down.

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

William Tam updated CAMEL-637:
------------------------------

    Attachment: mbean_registration_patch.txt

This patch (mbean_registration_patch.txt) should address the stacktraces when stopping the the application.   The problem is websphere's mbeanserver modifies the objectname upon mbean registration.  We need to add the actual mbean objectname to the mbean list for unregistration.

> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: mbean_registration_patch.txt, patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Updated: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen updated CAMEL-637:
------------------------------

    Attachment: regh-camel-example.log

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Reopened: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen reopened CAMEL-637:
-------------------------------


> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>         Attachments: patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Resolved: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

Claus Ibsen resolved CAMEL-637.
-------------------------------

    Resolution: Fixed

Applied patch with thanks to William Tam. It works now in WebSphere 6.1.

> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>         Attachments: mbean_registration_patch.txt, patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg, websphere_jconsole.PNG
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen commented on CAMEL-637:
-----------------------------------

William. I can see the problem is that the JMX Agent is still started even though I have disabled it in the Spring XML files.

{code}
[06-27 06:41:43] DEBUG DefaultInstrumentationAgent [WebContainer : 0]: Starting JMX agent on server: com.ibm.ws.management.PlatformMBeanServer@36483648
{code}

{code}
    <!-- we use the Camel Java DSL for routing but you can also do it in this xml file instead -->
    <camel:camelContext id="camel" useJmx="false">
        <camel:package>dk.regionh.camel</camel:package>
        <camel:jmxAgent id="agent" disabled="true"/>
    </camel:camelContext>
{code}

And when the application is stopped then the mbeans can't be unregistered:
{code}
[06-27 06:42:56] INFO  DefaultInstrumentationAgent [WebContainer : 0]: Exception unregistering MBean
javax.management.InstanceNotFoundException: org.apache.camel:context=claus-acer/camel,route=[timer]//hello%3fperiod%3d5000,type=processor,name="Bean[ref: business]"
{code}

I will attach log output and the sample project.

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Work started: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Work on CAMEL-637 started by Claus Ibsen.

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

William Tam updated CAMEL-637:
------------------------------

    Attachment: patch.txt

Attached patch shold address the "useJmx" issue.  When it is set to false, it always disables JMX.  The default is true which is consistent with the jmxAgent disabled flag's default.

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Updated: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

Claus Ibsen updated CAMEL-637:
------------------------------

    Fix Version/s: 1.4.0
                       (was: 1.5.0)

> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>         Attachments: mbean_registration_patch.txt, patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg, websphere_jconsole.PNG
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Commented: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43758#action_43758 ] 

Hadrian Zbarcea commented on CAMEL-637:
---------------------------------------

ok, that works too, although i don't think creating camel-643 was worth the effort :)

> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Updated: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen updated CAMEL-637:
------------------------------

    Attachment: regh-camel-helloworld.rar

The sample project

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen commented on CAMEL-637:
-----------------------------------

Enabling the JMX Connector and connecting using jconsole I can see all the WebSphere mbeans but none from Camel:

{code}
    <!-- we use the Camel Java DSL for routing but you can also do it in this xml file instead -->
    <camel:camelContext id="camel">
        <camel:package>dk.regionh.camel</camel:package>
        <camel:jmxAgent id="agent" disabled="false" createConnector="true"/>
    </camel:camelContext>
{code}

See attached screenshot

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>         Attachments: regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

William Tam commented on CAMEL-637:
-----------------------------------

I can take a look.  Claus, do you have the stackstrace?

> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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


[jira] Commented: (CAMEL-637) Camel JMX does not work in WebSphere 6.1

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

Claus Ibsen commented on CAMEL-637:
-----------------------------------

William thanks again for all your hard work on the JMX stuff. It is really appreciated.

> Camel JMX does not work in WebSphere 6.1
> ----------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.4.0
>
>         Attachments: mbean_registration_patch.txt, patch.txt, regh-camel-example.log, regh-camel-helloworld.rar, screenshot-1.jpg, websphere_jconsole.PNG
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.

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


[jira] Commented: (CAMEL-637) Camel JMX could have problems in WebSphere 6.1 environment

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

Claus Ibsen commented on CAMEL-637:
-----------------------------------

William. Thanks for the offer.

I will grab some stacktrace in the morning, even though starting WebSphere is not something I enjoy doing in my spare time ;)


> Camel JMX could have problems in WebSphere 6.1 environment
> ----------------------------------------------------------
>
>                 Key: CAMEL-637
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-637
>             Project: Apache Camel
>          Issue Type: Task
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.0
>
>
> All the great new Camel JMX stuff should be tested if it works on WebSphere 6.1.
> Currently I have disabled it in my sample hello world app.
> Sorry for creating a ticket here, but otherwise I might forget to test it during my business work days.

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