HI Lahiru,

File path

<ESB_HOME>/
repository/deployment/server/synapse-configs/default/proxy-services

On Wed, Oct 29, 2014 at 10:02 AM, Lahiru Chandima <[email protected]> wrote:

> Hi Waruna,
>
> Here is the git repo url
>
> https://github.com/lahiruchandima/publish_event_mediator
>
> Here is the Synapse config
>
> <definitions xmlns="http://ws.apache.org/ns/synapse";>
>     <proxy name="StockQuoteProxy">
>         <target>
>             <endpoint>
>                 <address uri="
> http://localhost:9000/services/SimpleStockQuoteService"/>
>             </endpoint>
>             <outSequence>
>                 <send/>
>                 *<publishEvent/>*
>             </outSequence>
>         </target>
>         <publishWSDL
> uri="file:repository/samples/resources/proxy/sample_proxy_1.wsdl"/>
>     </proxy>
> </definitions>
>
>
> Thanks
>
>
>
> On Wed, Oct 29, 2014 at 9:49 AM, Waruna Perera <[email protected]> wrote:
>
>> HI Lahiru,
>>
>> Can you share the code in GitHub? And share your synapse config as well.
>>
>> On Wed, Oct 29, 2014 at 9:37 AM, Lahiru Chandima <[email protected]>
>> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to create a new mediator (not a class mediator) for ESB. I
>>> have encountered several problems so far.
>>>
>>> 1. Where does the synapse config of ESB reside? I searched for some text
>>> in the config (shown in the management console) in the ESB directory but
>>> couldn't find the location.
>>>
>>> 2. So far I have crated a maven project for the mediator and created
>>> mediator, mediator factory and mediator serializer classes (I haven't
>>> created the mediator configuration UI module yet). I copied the generated
>>> jar file to repository/components/plugins directory, added the new mediator
>>> to a sequence in the synapse config of ESB sample 150[1
>>> <https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services>]
>>> and started ESB with sample 150 config. ESB gives following exception at
>>> startup.
>>>
>>> [2014-10-29 09:05:48,116]  WARN - SynapseXMLConfigurationFactory Proxy
>>> Service configuration: StockQuoteProxy cannot be built - Continue in
>>> fail-safe mode
>>> java.lang.NullPointerException
>>>     at
>>> org.apache.synapse.config.xml.MediatorFactoryFinder.getMediator(MediatorFactoryFinder.java:207)
>>>     at
>>> org.apache.synapse.config.xml.AbstractListMediatorFactory.addChildren(AbstractListMediatorFactory.java:41)
>>>     at
>>> org.apache.synapse.config.xml.SequenceMediatorFactory.createAnonymousSequence(SequenceMediatorFactory.java:70)
>>>     at
>>> org.apache.synapse.config.xml.ProxyServiceFactory.createProxy(ProxyServiceFactory.java:193)
>>>     at
>>> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.defineProxy(SynapseXMLConfigurationFactory.java:142)
>>>     at
>>> org.apache.synapse.config.xml.SynapseXMLConfigurationFactory.getConfiguration(SynapseXMLConfigurationFactory.java:92)
>>>
>>>
>>> Looks like ESB cannot find the factory for creating the new mediator
>>> specified in the synapse config. What should I do for ESB to identify my
>>> jar as an ESB mediator?
>>>
>>> Can somebody help me on this?
>>>
>>> [1]
>>> https://docs.wso2.com/display/ESB481/Sample+150%3A+Introduction+to+Proxy+Services
>>>
>>> Thanks
>>> --
>>> Lahiru Chandima
>>> *Senior Software Engineer*
>>> Mobile : +94 (0) 772 253283
>>> [email protected]
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>
>
> --
> Lahiru Chandima
> *Senior Software Engineer*
> Mobile : +94 (0) 772 253283
> [email protected]
>



-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to