On Saturday, May 31, 2014, Ajith Vitharana <[email protected]> wrote:

>
> Hi Ruwan
>
> On Sat, May 31, 2014 at 7:43 AM, Ruwan Yatawara <[email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>
>> Hi Ajith,
>>
>> As per the latest release of APIM,  we added a new life cycle state
>> called prototyped. In that stage (it can be either and endpoint or a In
>> line script implementation) also the api gets deployed in the gateway (mock
>> api).
>>
>
> In a production setup , what is the purpose of deploying mock API in the
> GW ?
>

No need of doing that if you don't want to. You can provide the sandbox URL
only and deploy the API in the sandbox Gateway only. The API will be put
into the Prod Gateway once you provide the prod URL and save. You need to
configure the Gateways appropriately in the
<APIGateway><Environments> section for this type of deployment to be
possible.

Thanks,
NuwanD.


>
> Thanks.
> Ajith
>
>
>  However, if u just press just the save button at each stage and straight
> away move on to the manage section, said gateway calls will not be made.
>
> Thanks and Regards,
> Ruwan
>
> - sent from my mobile
> On 31 May 2014 02:43, "Ajith Vitharana" <[email protected]> wrote:
>
>  Hi All,
>
> I have observed that publisher invoking the GW while creating a new API
> (at the each API design steps ).
> Why do we need that call before publishing to the GW ? Because we know
> that the state of the API is CREATED.
>
> org.apache.commons.httpclient.ConnectTimeoutException: The host did not
> accept the connection within timeout of 30000 ms
>        at
> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:155)
>        at
> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
>        at
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
>        at
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
>        at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
>        at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>        at
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>        at
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:622)
>        at
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
>        at
> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
>        at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:451)
>        at
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:278)
>        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
>        at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
>        at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
>        *at
> org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login(AuthenticationAdminStub.java:659)*
>        at
> org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.login(AbstractAPIGatewayAdminClient.java:90)
>        at
> org.wso2.carbon.apimgt.impl.utils.AbstractAPIGatewayAdminClient.setup(AbstractAPIGatewayAdminClient.java:53)
>        at
> org.wso2.carbon.apimgt.impl.utils.RESTAPIAdminClient.<init>(RESTAPIAdminClient.java:40)
>       * at
> org.wso2.carbon.apimgt.impl.APIGatewayManager.isAPIPublished(APIGatewayManager.java:247)*
>        at
> org.wso2.carbon.apimgt.impl.APIProviderImpl.isAPIPublished(APIProviderImpl.java:929)
>        at
> org.wso2.carbon.apimgt.impl.APIProviderImpl.updateAPI(APIProviderImpl.java:508)
>        at
> org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.updateAPI(UserAwareAPIProvider.java:58)
>        at
> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.saveAPI(APIProviderHostObject.java:727)
>        at
> org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.jsFunction_updateAPIDesign(APIProviderHostObject.java:579)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>        at org.mozilla.javascript.FunctionObject.
>
>
>
>
> --
> Ajith Vitharana.
> WSO2 Inc. - http://wso2.org
> Email  :  [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>
> Mobile : +94772217350
>
>

-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : [email protected]
Phone : +94 777 775 729
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to