You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by dssankar <se...@gmail.com> on 2013/10/16 11:38:56 UTC

No component found with scheme:wmq1

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.OUT.ERROR"/>
			<to uri="wmq1e:queue:BRIDGE.APIT.TYPEB.OUT.UAT"/>
		</route>
	</camel:camelContext>
	
Do  i need to add JmsComponet "wmq1" to the camel context ?


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-tp5741642.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No component found with scheme:wmq1

Posted by Christian Mueller <ch...@gmail.com>.
Have a look at the following article [1].
And please subscribe to the discussion forum in Nabble as we describe here
[2].

[1]
http://lowry-techie.blogspot.pt/2010/11/camel-integration-with-websphere-mq.html
[2] http://camel.apache.org/discussion-forums.html

Best,
Christian



--
View this message in context: http://camel.465427.n5.nabble.com/No-component-found-with-scheme-wmq1-tp5741642p5741664.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: No component found with scheme:wmq1

Posted by dssankar <se...@gmail.com>.
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.

Re: No component found with scheme:wmq1

Posted by Christian Mueller <ch...@gmail.com>.
Dssankar,

can you please subscribe to the discussion forum in Nabble as we describe
here [1].
Otherwise all your mails has to be moderate manually by the Camel team so
that your post is also send to our mailing list which most of the Camel team
member are using instead of Nabble. Therefore your post is may
missed/delayed and you don't get an answer in the normal time frame we
answer questions.
Last but not least, it cost time which we cannot spend developing Camel,
answering questions or improving the documentation...

[1] http://camel.apache.org/discussion-forums.html

Thanks in advance,
Christian



--
View this message in context: http://camel.465427.n5.nabble.com/No-component-found-with-scheme-wmq1-tp5741642p5741657.html
Sent from the Camel - Users mailing list archive at Nabble.com.