You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by gmotts <ga...@ventyx.com> on 2009/01/13 20:24:41 UTC

Re: Async Bridge Pattern Error

I found the error, it's a simple spelling mistake in the ServiceMix
Documentation, the word "constructor" is spelled wrong, the 's' is missing
and hence the Error 
<constructor-arg value="/my-response/message/@corrId"/>


gmotts wrote:
> 
> According to the ServiceMix documentation listed below for defining an
> Async Bridge, I should be able to define a #responseCorrIdExpression with
> an XPath value, however I receive an error creating the bean
> "'org.apache.servicemix.eip.patterns.AsyncBridge'".  Has anyone tired
> this?
> 
> Thanks in advance,
> -Gary
> 
> 
> ERROR:
> "Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'responseCorrIdExpression' defined in file
> [C:\ESB\iona\fuse-esb-3.3.1.11\data\smx\service-assemblies\bridge-sa\version_1\sus\servicemix-eip\bridge-eip-asyncbridge-su\xbean.xml]:
> Invocation of init method failed; nested exception is
> java.lang.IllegalArgumentException: You must specify the xpath property"
> 
> SerivceMix Documentation:
> The correlation ID can be transmitted from the asynchronous bridge to the
> target only using a message property, where the property name can be
> customized. In the other direction, the correlation ID coming back from
> the target can be set either in a message property or in the message
> payload.
> The asynchronous bridge could use an Expression to extract the correlation
> ID from the message returned from the target. The following example shows
> how to modify the correlation ID settings:
> <eip:async-bridge
> service="sample:AsyncBridge"
> endpoint="AsyncBridgeEndpoint"
> responseCorrIdProperty="correlationIdProperty"
> responseCorrId="#responseCorrIdExpression">
> <eip:target>
> <eip:exchange-target service="sample:SampleTarget"
> />
> </eip:target>
> </eip:async-bridge>
> <bean id="responseCorrIdExpression" class="org.apache.servi
> cemix.expression.JAXPStringXPathExpression" >
> <contructor-arg value="/my-response/message/@corrId"/>
>  </bean> 
> 

-- 
View this message in context: http://www.nabble.com/Async-Bridge-Pattern-Error-tp21235584p21442653.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.