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 2009/03/03 10:24:59 UTC
[jira] Created: (CAMEL-1411) CamelContext - Add ClassResolver to be
used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
----------------------------------------------------------------------------------------------------------------------------------------
Key: CAMEL-1411
URL: https://issues.apache.org/activemq/browse/CAMEL-1411
Project: Apache Camel
Issue Type: Bug
Components: camel-osgi
Affects Versions: 1.6.0
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Priority: Critical
Fix For: 2.0.0
Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50170#action_50170 ]
Willem Jiang commented on CAMEL-1411:
-------------------------------------
Since some ResolverUtil created without any camel context involved, we need to find more specify way to do this.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50173#action_50173 ]
Willem Jiang commented on CAMEL-1411:
-------------------------------------
So we need to add a method in camel context to get a right ResolverUtil now.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50191#action_50191 ]
Charles Moulliard commented on CAMEL-1411:
------------------------------------------
Do I have to change something in Camel-bindy code or the modification will be transparent not matter if deployment is done on osgi server or not ?
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1411:
----------------------------------
Assignee: Claus Ibsen
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Charles Moulliard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50208#action_50208 ]
Charles Moulliard commented on CAMEL-1411:
------------------------------------------
I made a test and everything works fine. Thanks ;-)
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50166#action_50166 ]
Claus Ibsen commented on CAMEL-1411:
------------------------------------
This is also related to let ResolverUtil be pluggable so you can let it work in other platforms such as JBoss, WebSphere.
Will add stuff for both strategies to be pluggable.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50172#action_50172 ]
Claus Ibsen commented on CAMEL-1411:
------------------------------------
ResolverUtil is used in
camel-spring
camel-osgi
camel-bindy
camel-core
I got the stuff on camel-core working. I know I can get bindy working as well as it can get hold of the camel context when doing marhsall/unmarshal.
camel-spring and camel-osgi should be possible. camel-spring is creating the camel-context.
And camel-osgi should set its osgi aware resolvers instead of the default one when it creates the camel context.
So I do think its doable.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50174#action_50174 ]
Claus Ibsen commented on CAMEL-1411:
------------------------------------
Yes I am adding a new SPI interface for the pluggable resolvers. And having getters/setters on the CamelContext so you can plugin which one you want to use.
And let camel-spring auto discover them in the spring bean registry if any provided so it can be automatic set just by declaring a bean in spring XML
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50207#action_50207 ]
Hadrian Zbarcea commented on CAMEL-1411:
----------------------------------------
@Charles, yes, there should be no difference if the deployment is in an osgi container or not.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50162#action_50162 ]
Claus Ibsen commented on CAMEL-1411:
------------------------------------
Send mail to dev forum for discussion first.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1411:
----------------------------------
Assignee: (was: Claus Ibsen)
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50180#action_50180 ]
Claus Ibsen commented on CAMEL-1411:
------------------------------------
I have committed it to trunk. There is now a getClassResolver() on CamelContext that works as ObjectHelper does.
But it allows us to provide another class resolver for OSGi if needed.
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1411) CamelContext - Add ClassResolver to
be used when you need to load a class instead of ObjectHelper.loadClass to
work in OSGi environments
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1411.
--------------------------------
Resolution: Fixed
> CamelContext - Add ClassResolver to be used when you need to load a class instead of ObjectHelper.loadClass to work in OSGi environments
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1411
> URL: https://issues.apache.org/activemq/browse/CAMEL-1411
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-osgi
> Affects Versions: 1.6.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Critical
> Fix For: 2.0.0
>
>
> Add the skeleton and let Willem add the stuff in camel-osgi
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.