You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sarat Khilar (JIRA)" <ji...@apache.org> on 2015/07/07 17:50:05 UTC
[jira] [Closed] (CAMEL-8940) Message routing to a method in the
bean is not working if generics is used.
[ https://issues.apache.org/jira/browse/CAMEL-8940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sarat Khilar closed CAMEL-8940.
-------------------------------
Resolution: Not A Problem
Fix Version/s: 2.15.2
Problem is fixed in 2.15.2
> Message routing to a method in the bean is not working if generics is used.
> ---------------------------------------------------------------------------
>
> Key: CAMEL-8940
> URL: https://issues.apache.org/jira/browse/CAMEL-8940
> Project: Camel
> Issue Type: Bug
> Components: bean-integration
> Affects Versions: 2.15.2
> Reporter: Sarat Khilar
> Fix For: 2.15.2
>
>
> Message routing is not working if generic method inteface is used.
> I have added the code snippet here.
> Bean component:
> public interface IHandler<T>
> {
> @Handler
> public void handle(T data);
> }
> public class EmployeePersistHandler implements IHandler<Employee>
> {
> public EmployeePersistHandler()
> {
> super();
> }
> @Override
> public void handle(Employee data)
> {
>
> }
> }
> Routing config:
> public RouteBuilder route()
> {
> return new RouteBuilder() {
>
> @Override
> public void configure() throws Exception
> {
> System.out.println("Route builder is called");
> ThreadPoolBuilder poolBuilder = new ThreadPoolBuilder(createCamelContext());
> ExecutorService customPool = poolBuilder.poolSize(5).maxPoolSize(100).maxQueueSize(-1).build("customPool");
> from("seda:test").shutdownRunningTask(ShutdownRunningTask.CompleteAllTasks).threads().executorService(customPool).bean(employeePersistHandler);
>
> }
> };
>
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)