camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Camel CXF: In-VM
Date Thu, 09 Aug 2012 02:12:11 GMT
I don't suggest you to use the local transport, as you need to make sure the client and server
are in the same JVM and they are sharing the same bus. 

Did you have any chance to use the traditional http address ? 

-- 
Willem Jiang

FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang




On Thursday, August 9, 2012 at 3:47 AM, objectorange wrote:

> I get this error:
> 
> java.lang.IllegalStateException: Local destination does not have a
> MessageObserver on address
> local://company.com/infrastructure/services/hash/HashService (http://company.com/infrastructure/services/hash/HashService)
> 
> Here is my beans.xml content:
> 
> <cxf:cxfEndpoint xmlns:hsi="http://company.com/infrastructure/services/hash"
> id="HashServiceEndpoint"
> wsdlURL="HashService.wsdl"
> 
> address="local://company.com/infrastructure/services/hash/HashService (http://company.com/infrastructure/services/hash/HashService)"
> serviceName="hsi:HashService"
> endpointName="hsi:HashServicePort"
> 
> serviceClass="com.company.infrastructure.services.hash.HashServiceImpl">
> <cxf:properties>
> <entry key="dataFormat" value="PAYLOAD"/>
> </cxf:properties>
> </cxf:cxfEndpoint>
> 
> <camel:camelContext id="HashService">
> 
> <camel:route id="HashService-Route" trace="false">
> <camel:from uri="vm:HashService" />
> 
> <camel:throttle timePeriodMillis="1000"
> id="HashService-Throttle">
> <camel:constant>100</camel:constant>
> <camel:threads threadName="HashService-Thread"
> keepAliveTime="300"
> poolSize="20"
> maxPoolSize="40"
> maxQueueSize="40"
> rejectedPolicy="CallerRuns"
> id="HashService-ThreadPool">
> 
> <camel:to uri="cxf:bean:HashServiceEndpoint"
> id="HashServiceEndpoint-To"/>
> 
> </camel:threads>
> </camel:throttle>
> </camel:route>
> 
> </camel:camelContext>
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-CXF-In-VM-tp5716772p5717011.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message