You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by Nishantha Pradeep <uc...@gmail.com> on 2017/07/18 07:03:12 UTC

Adding proxy services dynamically

Hi

Is it possible to dynamically add proxy services to synapse?. If it is
possible, I would be very thankful if someone could direct me to a relevant
documentation.

For example, a Java program can call an API provided by synapse with proxy
configuration data and synapse registers the proxy service. Proxy services
should automatically be restarted in case of a synapse restart.

-Thanks
Nishantha

Re: Adding proxy services dynamically

Posted by Vanjikumaran Sivajothy <va...@gmail.com>.
Do not copy the complete file as it contain the complete run-time
configuration.
Synapse artifacts has been logically broken into different segments,
Therefore, you have to just copy into new file StockQuoteProxy.xml
in <SYNAPSE_HOME>/repository/conf/synapse-config/proxy-services



[1]
<proxy name="StockQuoteProxy"> <target> <endpoint> <address uri="
http://localhost:9000/services/SimpleStockQuoteService"/> </endpoint>
<outSequence> <send/> </outSequence> </target> <publishWSDL
uri="file:repository/conf/sample/resources/proxy/sample_proxy_1.wsdl"/>
</proxy>

On Tue, Jul 18, 2017 at 1:57 AM, Nishantha Pradeep <uc...@gmail.com>
wrote:

> did you mean copy XML configuration such as synapse_sample_150.xml to
> above-mentioned location?
>
> On Tue, Jul 18, 2017 at 1:14 PM, Vanjikumaran Sivajothy <va...@apache.org>
> wrote:
>
> > On Tue, Jul 18, 2017 at 12:33 PM, Nishantha Pradeep <
> > ucscnishantha@gmail.com
> > > wrote:
> >
> > > Hi
> > >
> > > Is it possible to dynamically add proxy services to synapse?
> >
> >
> > Yes, It is possible since synapse supports the hot deployment.  you have
> to
> > generate/create your proxy service in
> > <SYNAPSE_HOME>/repository/conf/synapse-config/proxy-services and Hot
> > deployment will deploy with out restart the server.
> >
> >
> >
> > > . If it is
> > > possible, I would be very thankful if someone could direct me to a
> > relevant
> > > documentation.
> > >
> >
> >
> > > For example, a Java program can call an API provided by synapse with
> > proxy
> > > configuration data and synapse registers the proxy service. Proxy
> > services
> > > should automatically be restarted in case of a synapse restart.
> > >
> > > -Thanks
> > > Nishantha
> > >
> >
>



-- 
Best Regards,
Vanji

Re: Adding proxy services dynamically

Posted by Nishantha Pradeep <uc...@gmail.com>.
did you mean copy XML configuration such as synapse_sample_150.xml to
above-mentioned location?

On Tue, Jul 18, 2017 at 1:14 PM, Vanjikumaran Sivajothy <va...@apache.org>
wrote:

> On Tue, Jul 18, 2017 at 12:33 PM, Nishantha Pradeep <
> ucscnishantha@gmail.com
> > wrote:
>
> > Hi
> >
> > Is it possible to dynamically add proxy services to synapse?
>
>
> Yes, It is possible since synapse supports the hot deployment.  you have to
> generate/create your proxy service in
> <SYNAPSE_HOME>/repository/conf/synapse-config/proxy-services and Hot
> deployment will deploy with out restart the server.
>
>
>
> > . If it is
> > possible, I would be very thankful if someone could direct me to a
> relevant
> > documentation.
> >
>
>
> > For example, a Java program can call an API provided by synapse with
> proxy
> > configuration data and synapse registers the proxy service. Proxy
> services
> > should automatically be restarted in case of a synapse restart.
> >
> > -Thanks
> > Nishantha
> >
>

Re: Adding proxy services dynamically

Posted by Vanjikumaran Sivajothy <va...@apache.org>.
On Tue, Jul 18, 2017 at 12:33 PM, Nishantha Pradeep <ucscnishantha@gmail.com
> wrote:

> Hi
>
> Is it possible to dynamically add proxy services to synapse?


Yes, It is possible since synapse supports the hot deployment.  you have to
generate/create your proxy service in
<SYNAPSE_HOME>/repository/conf/synapse-config/proxy-services and Hot
deployment will deploy with out restart the server.



> . If it is
> possible, I would be very thankful if someone could direct me to a relevant
> documentation.
>


> For example, a Java program can call an API provided by synapse with proxy
> configuration data and synapse registers the proxy service. Proxy services
> should automatically be restarted in case of a synapse restart.
>
> -Thanks
> Nishantha
>