You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Evanthika Amarasiri (JIRA)" <ji...@apache.org> on 2007/10/31 05:24:50 UTC

[jira] Commented: (SYNAPSE-147) The get-property function looks up registry if the property is not found

    [ https://issues.apache.org/jira/browse/SYNAPSE-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12538984 ] 

Evanthika Amarasiri commented on SYNAPSE-147:
---------------------------------------------

When the default case is not available, it does not read the registry. The issue wiil be closed

> 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-B1
>         Environment: Ubuntu 7.04, JDK1.5.0_12
>            Reporter: Evanthika Amarasiri
>            Assignee: Ruwan Linton
>             Fix For: 1.1-QA-B2
>
>
> 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: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org