The get-property function looks up registry if the property is not found
------------------------------------------------------------------------
Key: SYNAPSE-147
URL: https://issues.apache.org/jira/browse/SYNAPSE-147
Project: Synapse
Issue Type: Bug
Components: Extension Mediators
Affects Versions: 1.1.QA.B.1
Environment: Ubuntu 7.04, JDK1.5.0_12
Reporter: Evanthika Amarasiri
1. When executing the following configuration ( with "default" tag commented
out ) , got a message saying "Will not evaluate the value of the remote entry,
because the registry is not available"
Configuration
===========
<definitions xmlns="http://ws.apache.org/ns/synapse">
<switch source="//m0:getQuote/m0:request/m0:symbol"
xmlns:m0="http://services.samples/xsd">
<case regex="IBM">
<property name="symbol" value="Great stock - IBM"/>
</case>
<case regex="MSFT">
<property name="symbol" value="Are you sure? - MSFT"/>
</case>
<case regex="SUN">
<property name="symbol" value="Is this a good stock brand? - SUN"/>
</case>
<!--default>
<property name="symbol"
expression="fn:concat('Normal Stock - ',
//m0:getQuote/m0:request/m0:symbol)"
xmlns:m0="http://services.samples/xsd"/>
</default-->
</switch>
<log level="custom">
<property name="symbol" expression="get-property('symbol')"/>
<property name="epr" expression="get-property('To')"/>
</log>
<send/>
</definitions>
Following is the log at the time the client was invoked
[HttpServerWorker-2] DEBUG LogMediator Start : Log mediator
[HttpServerWorker-2] DEBUG SynapseConfiguration Will not evaluate the value of
the remote entry, because the registry is not available
[HttpServerWorker-2] INFO LogMediator symbol = null, epr =
http://10.100.1.228:9001/soap/SimpleStockQuoteService
[HttpServerWorker-2] DEBUG LogMediator End : Log mediator
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]