camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-7418) org.apache.camel.impl.JndiRegistry.findByTypeWithName
Date Sat, 10 May 2014 22:08:03 GMT

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

Claus Ibsen updated CAMEL-7418:
-------------------------------

    Fix Version/s: 2.14.0
                   2.13.2

> 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
>            Priority: Minor
>             Fix For: 2.13.2, 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)

Mime
View raw message