You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/07/02 20:05:24 UTC

[jira] [Assigned] (CAMEL-7418) org.apache.camel.impl.JndiRegistry.findByTypeWithName

     [ https://issues.apache.org/jira/browse/CAMEL-7418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-7418:
----------------------------------

    Assignee: Claus Ibsen

> org.apache.camel.impl.JndiRegistry.findByTypeWithName
> -----------------------------------------------------
>
>                 Key: CAMEL-7418
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7418
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.13.0
>            Reporter: André Ricardo da Silva Souza
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.12.5, 2.13.3, 2.14.0
>
>
> I guess this line isn't correct:
> if (type.isInstance(pair.getClass()) || type.getName().equals(pair.getClassName()))
> The variable "pair.getClass()" always returns "javax.naming.NameClassPair" or its subclasses and the method "isInstance" works only with Instances, but doesnt Classes.
>  I think the correct code should be:
> if (type.isAssignableFrom(Class.forName(pair.getClassName())))
> I've tried to test a transacted route, but i couldnt because the error: 
> Failed to create route route1 at: >>> Transacted[] <<< in route: Route(route1)[[From[direct:start]] -> [Transacted[]]] because of No bean could be found in the registry of type: PlatformTransactionManager



--
This message was sent by Atlassian JIRA
(v6.2#6252)