<div dir="ltr"><div dir="ltr">Very interesting, thanks Jon.  So if I understand correctly, the problem is that the Client has a contract for API1 (published to GW1) and a contract for API2 (published to GW2).  And so when registering a client, we&#39;re trying to send Contracts for APIs that don&#39;t exist on the GW.  So yeah, filtering the list of Contracts during registration makes sense.  We should file this as a bug in Apiman (on GitHub).  Would you be willing to do that?<div><br></div><div><a href="https://github.com/apiman/apiman/issues">https://github.com/apiman/apiman/issues</a><br><div><br></div><div>-Eric</div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 13, 2018 at 1:54 AM Jon Huang &lt;<a href="mailto:chttl582@gmail.com">chttl582@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Eric<div><br></div><div>I spent some time to track this issue.</div><div>First I hit the status API (GATEWAY_API_URL/system/status) and got following response:</div><div><div>{</div><div>    &quot;id&quot;: &quot;apiman-gateway-api&quot;,</div><div>    &quot;name&quot;: &quot;API Gateway REST API&quot;,</div><div>    &quot;description&quot;: &quot;The API Gateway REST API is used by the API Manager to publish APIs and register clients.  You can use it directly if you wish, but if you are utilizing the API Manager then it&#39;s probably best to avoid invoking this API directly.&quot;,</div><div>    &quot;version&quot;: &quot;1.5.2-SNAPSHOT&quot;,</div><div>    &quot;up&quot;: true</div><div>}</div><div>seems OK, then I hit the register client API (PUT 

GATEWAY_API_URL<span style="color:rgb(80,80,80);font-family:OpenSans,Helvetica,Arial,sans-serif;font-size:12px;white-space:pre-wrap">/clients</span>) to retrieve further information, which returned an ApiNotFoundException.</div><div>After reviewing the payload, I found the register client API sent every contract info to the gateway endpoint. (ex: contract A &amp; B to Gateway 2, refer to following diagram)</div><div><div>{</div><div><span style="white-space:pre-wrap">        </span>&quot;organizationId&quot;: &quot;ORG&quot;,</div><div><span style="white-space:pre-wrap">        </span>&quot;clientId&quot;: &quot;CLIENT&quot;,</div><div><span style="white-space:pre-wrap">        </span>&quot;version&quot;: &quot;1.0&quot;,</div><div><span style="white-space:pre-wrap">        </span>&quot;apiKey&quot;: &quot;1763bc30-64af-4fd8-877e-1382c1a2cac2&quot;,</div><div><span style="white-space:pre-wrap">        </span>&quot;contracts&quot;: [{</div><div><span style="white-space:pre-wrap">                        </span>&quot;apiOrgId&quot;: &quot;ORG&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;apiId&quot;: &quot;API1&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;apiVersion&quot;: &quot;1.0&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;plan&quot;: &quot;plan&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;policies&quot;: []</div><div><span style="white-space:pre-wrap">                </span>}, {</div><div><span style="white-space:pre-wrap">                        </span>&quot;apiOrgId&quot;: &quot;ORG&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;apiId&quot;: &quot;API2&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;apiVersion&quot;: &quot;1.0&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;plan&quot;: &quot;plan&quot;,</div><div><span style="white-space:pre-wrap">                        </span>&quot;policies&quot;: []</div><div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">        </span>]</div><div>}</div></div><div><br></div><div><div><img src="cid:ii_jpm8z57q5" alt="image.png" width="562" height="333"><br></div></div><div><br></div><div>So if there is an contract&#39;s which its API publishing to another gateway leads to 404 not found exception. (ex: contract A info sent to Gateway 2)</div><div>Maybe filtering the register client API payload or preventing API manager UI from creating contract between APIs with different gateways can solve this issue. (or is there any other solution?)</div><div>Thanks.</div><div><div><br></div></div><div><div><div><br></div></div></div><div class="gmail_quote"><div dir="ltr">Eric Wittmann &lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt; 於 2018年12月6日 週四 下午9:47寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Your diagram looks exactly right.  I don&#39;t know why you are getting a 404 error when trying to register the client.  My best guess is that your Gateway 2 configuration is actually incorrect and that the &quot;Test Gateway&quot; function is returning a false positive somehow.  Can you post the configuration settings you are using for *BOTH* of your Gateways?  (I assume you can successfully publish an API to Gateway 1).<div><br></div><div>You should be able to manually confirm your Gateway settings using e.g. curl or postman.  There is an endpoint on the Gateway API that you can hit:<br></div><div><br></div><div>GATEWAY_API_URL/system/status</div><div><br></div><div>You&#39;ll need to provide auth info for this to work, but it will return a JSON response like this:</div><div><br></div><div>{</div><div>    &quot;id&quot;: &quot;xyz&quot;,</div><div>    &quot;name&quot;: &quot;Apiman Gateway API&quot;,</div><div>   &quot;description&quot;: &quot;... something here ...&quot;,</div><div>   &quot;version&quot;: &quot;x.y.z&quot;,</div><div>   &quot;up&quot;: true</div><div>}</div><div><br></div><div>The UI should be checking that endpoint when you click the &quot;Test Gateway&quot; button, but perhaps there&#39;s a bug in that.</div><div><br></div><div>If the above endpoint can be hit and verified, then I&#39;m at a complete loss as to why you&#39;d be getting a 404 when trying to publish!  The implication is that the Gateway API endpoint that the UI is attempting to use is missing.  But if /system/status can be found, then everything else should be available too!</div><div><br></div><div><a class="gmail_plusreply" id="gmail-m_-5781356442921183393gmail-m_-7255192664797277690plusReplyChip-0" href="mailto:msavy@redhat.com" target="_blank">@Marc Savy</a> - any thoughts on this?<br></div><div><br></div><div>-Eric</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 6, 2018 at 3:02 AM Jon Huang &lt;<a href="mailto:chttl582@gmail.com" target="_blank">chttl582@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dear Eric<div><br></div><div>Thanks for your explanation.</div><div>I tried to deploy another gateway with a new storage(Elasticsearch) and configure API to publish on the new one. (API manager version 1.5.1)</div><div>However when I tried to create a contract between API and client apps then re-register client apps, error happened. </div><div><span style="background-color:rgb(252,252,252);color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,monospace;font-size:11px">It seems API manager fails to connect to gateway2. (But UI-&gt; </span><font color="#333333" face="Menlo, Monaco, Consolas, monospace"><span style="font-size:11px">Manage Gateways -&gt; Edit Gateway -&gt; Test Gateway returns </span></font><strong style="font-size:13px;box-sizing:border-box;color:rgb(51,51,51);font-family:&quot;Open Sans&quot;,Helvetica,Arial,sans-serif">Gateway Configuration Valid</strong><span style="font-size:11px;color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,monospace">)</span>  <br></div><div>(<span style="background-color:rgb(252,252,252);color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,monospace;font-size:11px">io.apiman.manager.api.rest.contract.exceptions.ActionException: Failed to register client.)</span></div><div><font color="#333333" face="Menlo, Monaco, Consolas, monospace"><span style="font-size:11px;background-color:rgb(252,252,252)">I put detail log in attachment if you are interested.</span></font></div><div><font color="#333333" face="Menlo, Monaco, Consolas, monospace"><span style="font-size:11px;background-color:rgb(252,252,252)">Thanks</span></font></div><div><font color="#333333" face="Menlo, Monaco, Consolas, monospace"><span style="font-size:11px;background-color:rgb(252,252,252)"><br></span></font></div><div><font color="#333333" face="Menlo, Monaco, Consolas, monospace"><span style="font-size:11px;background-color:rgb(252,252,252)">simple diagram for my deployment test.</span></font></div><div><div><img src="cid:ii_jpc8veo91" alt="image.png" width="562" height="175"><br></div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt; 於 2018年11月30日 週五 下午10:24寫道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="DE-CH">
<div class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Eric,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">thanks for this detailed answer
</span><span style="font-size:11pt;font-family:Wingdings;color:rgb(31,73,125)">J</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">This is quite interesting. We didn’t expected this behavior. Maybe it would be good to place this in the documentation, maybe with
 this picture ;)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">But this raises a few new questions for us. I try to explain:
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250MsoListParagraph"><u></u><span style="font-size:11pt;font-family:Symbol;color:rgb(31,73,125)"><span>·<span style="font:7pt &quot;Times New Roman&quot;">        
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Do we need for
<b>alternate</b> setup two UIs if we don’t want to use the REST interface or CLI-Tool?<u></u><u></u></span></p>
<p class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250MsoListParagraph" style="margin-left:72pt">
<u></u><span style="font-size:11pt;font-family:&quot;Courier New&quot;;color:rgb(31,73,125)"><span>o<span style="font:7pt &quot;Times New Roman&quot;">  
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">One for «Gateway Alpha» and one for «Gateway Beta»?<u></u><u></u></span></p>
<p class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250MsoListParagraph" style="margin-left:72pt">
<u></u><span style="font-size:11pt;font-family:&quot;Courier New&quot;;color:rgb(31,73,125)"><span>o<span style="font:7pt &quot;Times New Roman&quot;">  
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Because I think you can only connect one elasticseach instance with the UI. Am I right on this?<u></u><u></u></span></p>
<p class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250MsoListParagraph" style="margin-left:72pt">
<u></u><span style="font-size:11pt;font-family:&quot;Courier New&quot;;color:rgb(31,73,125)"><span>o<span style="font:7pt &quot;Times New Roman&quot;">  
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">What about the metrics in this use case
</span><span style="font-size:11pt;font-family:Wingdings;color:rgb(31,73,125)">à</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> leads to two UIs?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250MsoListParagraph"><u></u><span style="font-size:11pt;font-family:Symbol;color:rgb(31,73,125)"><span>·<span style="font:7pt &quot;Times New Roman&quot;">        
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">For the «one logical gateway»<u></u><u></u></span></p>
<p class="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250MsoListParagraph" style="margin-left:72pt">
<u></u><span style="font-size:11pt;font-family:&quot;Courier New&quot;;color:rgb(31,73,125)"><span>o<span style="font:7pt &quot;Times New Roman&quot;">  
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If I understand you correctly this would mean that I also have to configure only one gateway in my UI and can add X more
 without adding them into the UI. <br>
I just have to point them against the same elasticsearch instance.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I also post this mail to the github issue, so we can stay within the mailinglist.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Thanks again,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Florian<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">Von:</span></b><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif"> Eric Wittmann &lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;
<br>
<b>Gesendet:</b> Friday, 30 November 2018 14:57<br>
<b>An:</b> Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt;<br>
<b>Cc:</b> <a href="mailto:chttl582@gmail.com" target="_blank">chttl582@gmail.com</a>; Marc Savy &lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;; Kihm, Benjamin &lt;<a href="mailto:Benjamin.Kihm@scheer-group.com" target="_blank">Benjamin.Kihm@scheer-group.com</a>&gt;; Gebert, Alfred &lt;<a href="mailto:Alfred.Gebert@scheer-group.com" target="_blank">Alfred.Gebert@scheer-group.com</a>&gt;; <a href="mailto:apiman-user@lists.jboss.org" target="_blank">apiman-user@lists.jboss.org</a><br>
<b>Betreff:</b> Re: [Apiman-user] [DKIM] Re: publish api to specific gateway<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Sure no problem.  The typical use-case for having multiple Gateway nodes is to scale the gateway layer horizontally and then put a load balancer in front of them.  So for example you might start up 5 apiman gateway instances and configure
 them all to use the same Elasticsearch instance for persistence (i.e. where to store configuration info like which APIs have been published).  In this use-case, every gateway instance has the same set of APIs &quot;published&quot; to it.  You can publish an API from
 the UI/manager to **any** of the gateway instances and they will all know about that API.  This is the &quot;Single Logical Gateway&quot; use-case -- the UI/manager and all consumers don&#39;t know or care how many gateway nodes there are - there could be 1 node, or there
 could be 100.  It behaves the same logically.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">An **alternate** use case for having multiple gateways is when you actually want different APIs to be deployed to different gateways.  So let&#39;s say you wanted Gateway Alpha to be able to proxy traffic to APIs A, B, and C.  Then you have
 Gateway Beta which you want to proxy traffic to APIs C, D, and E.  In that case, consumer traffic MUST be routed through Gateway Alpha in order to access APIs A and B.  Consumer traffic MUST be routed through Gateway Beta to access APIs D and E.  Finally,
 consumer traffic can be routed to **either** Gateway Alpha or Gateway Beta in order to access API C.  Think of this as the &quot;Two Logical Gateways&quot; use-case.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In order to achieve the &quot;Two Logical Gateways&quot; use-case, you will need **two** separate persistence stores (Elasticsearch instances).  Then you configure Gateway Alpha to use persistence store #1 and configure Gateway Beta to use persistence
 store #2.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Note that you can have multiple gateway nodes for EACH of the two logical gateways.  So for example you could have 5 gateway instances all pointing to persistence store #1 - these 5 nodes would make up a single logical gateway called &quot;Gateway
 Alpha&quot;.  Then you could have 10 gateway instances all pointing to persistence store #2 - and these would be a single logical gateway called &quot;Gateway Beta&quot;.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Here is a diagram of what the architecture might look like:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><img width="563" height="363" style="width: 5.8645in; height: 3.7812in;" id="gmail-m_-5781356442921183393gmail-m_-7255192664797277690m_6511788125738798262m_-6303282842112533250_x0000_i1025" alt="image.png"><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Nov 30, 2018 at 8:38 AM Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Eric,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">now I’m confused. We use Elasticsearch as backend. If I understand you correctly it would mean that
 we have to setup an Elasticsearch instance for each gateway?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">On the other point, if the gateways operate as logical unit, why is there a configuration option in
 the ui?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Can you explain this a little bit more detailed? Maybe you have a configuration example.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards,<br>
Florian</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">Von:</span></b><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif"> Eric Wittmann
 &lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;
<br>
<b>Gesendet:</b> Friday, 30 November 2018 14:22<br>
<b>An:</b> Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt;<br>
<b>Cc:</b> <a href="mailto:chttl582@gmail.com" target="_blank">chttl582@gmail.com</a>; Marc Savy &lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;; Kihm, Benjamin &lt;<a href="mailto:Benjamin.Kihm@scheer-group.com" target="_blank">Benjamin.Kihm@scheer-group.com</a>&gt;;
 Gebert, Alfred &lt;<a href="mailto:Alfred.Gebert@scheer-group.com" target="_blank">Alfred.Gebert@scheer-group.com</a>&gt;;
<a href="mailto:apiman-user@lists.jboss.org" target="_blank">apiman-user@lists.jboss.org</a><br>
<b>Betreff:</b> Re: [Apiman-user] [DKIM] Re: publish api to specific gateway</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Are both gateways using the same persistent storage?  Each gateway would need separate, independent persistence otherwise they will behave as a single &quot;logical&quot; gateway.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">-Eric<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Nov 30, 2018 at 4:39 AM Volk, Florian &lt;<a href="mailto:Florian.Volk@scheer-group.com" target="_blank">Florian.Volk@scheer-group.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hello together,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I was interested in this and made a short test in my loacal environment and I am able to reproduce
 this.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">I created a ticket on github for this (</span><a href="https://github.com/apiman/apiman/issues/711" target="_blank"><span style="font-size:11pt;font-family:Calibri,sans-serif">https://github.com/apiman/apiman/issues/711</span></a><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">).
 We may can fix this shortly.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Regards,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Florian</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">Von:</span></b><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">
</span><a href="mailto:apiman-user-bounces@lists.jboss.org" target="_blank"><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">apiman-user-bounces@lists.jboss.org</span></a><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">
 &lt;</span><a href="mailto:apiman-user-bounces@lists.jboss.org" target="_blank"><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">apiman-user-bounces@lists.jboss.org</span></a><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">&gt;
<b>Im Auftrag von </b>Jon Huang<br>
<b>Gesendet:</b> Friday, 30 November 2018 03:28<br>
<b>An:</b> </span><a href="mailto:marc.savy@redhat.com" target="_blank"><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">marc.savy@redhat.com</span></a><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif"><br>
<b>Cc:</b> </span><a href="mailto:apiman-user@lists.jboss.org" target="_blank"><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif">apiman-user@lists.jboss.org</span></a><span lang="DE" style="font-size:11pt;font-family:Calibri,sans-serif"><br>
<b>Betreff:</b> [DKIM] Re: [Apiman-user] publish api to specific gateway</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Dear Marc<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Yes I untick another gateway however request towards both gateways still works.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Besides I tried to publish API via admin REST API (post api version then put gateway info), both gateways forwards request too.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Before filing a bug is there any apigw setting I shall check? (such as parameter in apiman.properties or etc...)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks for your help.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">Regards<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Marc Savy &lt;<a href="mailto:marc.savy@redhat.com" target="_blank">marc.savy@redhat.com</a>&gt;
<span style="font-family:&quot;MS Gothic&quot;">於</span> 2018<span style="font-family:&quot;MS Gothic&quot;">年</span>11<span style="font-family:&quot;MS Gothic&quot;">月</span>21<span style="font-family:&quot;MS Gothic&quot;">日</span>
<span style="font-family:&quot;MS Gothic&quot;">週三</span> <span style="font-family:&quot;MS Gothic&quot;">
下午</span>9:35<span style="font-family:&quot;MS Gothic&quot;">寫道:</span><u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<p class="MsoNormal">Apologies for the terribly slow reply. We&#39;ve had so much spam I&#39;ve missed legitimate emails like this.<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Did you explicitly untick the other gateway? Was this via the UI or the API?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Did you resolve this issue? If not, please file a bug: <a href="https://github.com/apiman/apiman/issues" target="_blank">https://github.com/apiman/apiman/issues</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, 4 Oct 2018 at 05:00, Jon Huang &lt;<a href="mailto:chttl582@gmail.com" target="_blank">chttl582@gmail.com</a>&gt; wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<p class="MsoNormal">Dears<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I had set up 2 gateways.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">When I new an API, I have to choose which gateway to publish. (select list at Gateway section in the implementation tab).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">However after creating a client app and contract for test, I found request via another gateway still works.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">(I guest when publishing to gateway 1 and request via gateway 2 shall fail)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Am I misunderstanding or I miss some settings to make it work?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>

</blockquote></div>
</blockquote></div>
</blockquote></div></div></div></div></div></div>
</blockquote></div>