I am trying to write camel route in spring web application along with IBM WebsphereMQ as input endpoint.
My Web.xml file <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/spring/hub-routes.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> hub-routes.xml content as follows <bean id="cf" class="com.ibm.mq.jms.MQConnectionFactory"> <property name="transportType" value="1"/> <property name="hostName" value="82.150.254.201"/> <property name="port" value="11451"/> <property name="queueManager" value="GWT11.BT2"/> <property name="channel" value="APIT_GWT11.BT2"/> </bean> <bean id="wmq1" class="org.apache.camel.component.jms.JmsComponent"> <property name="connectionFactory" ref="cf"/> </bean> <camel:camelContext xmlns="http://camel.apache.org/schema/spring" id="airportUpdateToAirosCamelContext" autoStartup="true"> <route id="airportUpdateToAiros"> <from uri="wmq1:queue:BRIDGE.APIT.TYPEB.ABC.ERROR"/> <to uri="wmq1:queue:BRIDGE.APIT.TYPEB.ABC.UAT"/> </route> </camel:camelContext> Do i need to add JmsComponet "wmq1" to the camel context ? Camel context not able to identify wmq1 component. Getting the following exception: 09:28:25,645 | SAMPLE | blrd4723 | ERROR | 1-27 | o.s.w.c.ContextLoader | | Context initialization failed: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route airportUpdateToAiros: Route(airportUpdateToAiros)[[From[wmq1:queue:BRIDGE.APIT.TYP... because of Failed to resolve endpoint: wmq1://queue:BRIDGE.APIT.TYPEB.ABC.ERROR due to: No component found with scheme: wmq1 at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1338) at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120) at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:287) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:324) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:934) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:89) Please help me. -- View this message in context: http://camel.465427.n5.nabble.com/No-component-found-with-scheme-wmq1-tp5741642p5741662.html Sent from the Camel - Users mailing list archive at Nabble.com.