Re: [Dev] [APIM][Throttling] JMSConnection Details in api-manager.xml

2018-05-03 Thread Samitha Chathuranga
Thanks Harsha.

On Thu, May 3, 2018 at 12:22 PM, Harsha Kumara  wrote:

>
>
> On Thu, May 3, 2018 at 9:50 PM, Harsha Kumara  wrote:
>
>>
>>
>> On Thu, May 3, 2018 at 9:44 PM, Samitha Chathuranga 
>> wrote:
>>
>>> Hi all,
>>>
>>> AFAIU in Gateway nodes the  in api-manager.xml 
>>> defines the connection details to the TM to listen to the JMS topic in TM, 
>>> to get the throttle decisions. The  defined under that is used 
>>> to establish that connection initially.
>>>
>>> 
>>>(1)tcp://[Traffic-Manager-host]:5673
>>>
>>> Then under  under  we are 
>>> defining again the
>>>  url, which is the actual broker 
>>> endpoint to listen to the topic.
>>>
>>> 
>>> .
>>>
>>> 
>>> ...
>>>
>>> (2) amqp://admin:admin@clientID/carbon?brokerlist='tcp://>> c-Manager-host>:5673?retries='5'%26connectdelay='50'
>>>  
>>>
>>> Please correct me if my understanding is wrong.
>>>
>>> But in that url also we are defining Traffic-Manager-Host and Port. So what 
>>> is the use of defining it again
>>> here too?
>>>
>>> If you put the url in ServiceURL, you can refer it in the ${jms.url} in
>> the connection factory which is the default setting. But when you go for
>> failover mode of TM, you can't define single url. Hence it would be best to
>> change the connection factory URL with the failover MB configuration.
>>
> Like amqp://admin:admin@clientID
> /carbon?failover='roundrobin'%26cyclecount='2'%26brokerlist='tcp://
> 127.0.0.1:5673?retries='5'%26connectdelay='50';tcp://
> 127.0.0.1:5674?retries='5'%26connectdelay='50'';tcp://
> 127.0.0.1:5675?retries='5'%26connectdelay='50''
>
>
>> And in our docs [1] under* Single Traffic Manager* (tab) under *Step 6.6 - 
>> Configure and start the Gateway *it is
>>> guided to include both (1) and (2). But under *HA of Traffic Manager* (tab) 
>>> guide, the (1) is not mentioned to
>>> configure. Is this something missing in the doc?
>>>
>>> [1] 
>>> https://docs.wso2.com/display/AM210/Deploying+WSO2+API-M+in+a+Distributed+Setup#DeployingWSO2API-MinaDistributedSetup-Step6.6-ConfigureandstarttheGateway
>>>
>>>
>>> Regards,
>>>
>>> Samitha
>>>
>>>
>>>
>>>
>>>
>>> --
>>> *Samitha Chathuranga*
>>> *Software Engineer*, *WSO2 Inc.*
>>> lean.enterprise.middleware
>>> Mobile: +94715123761
>>>
>>> [image: http://wso2.com/signature] 
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
*Samitha Chathuranga*
*Software Engineer*, *WSO2 Inc.*
lean.enterprise.middleware
Mobile: +94715123761

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][Throttling] JMSConnection Details in api-manager.xml

2018-05-03 Thread Harsha Kumara
On Thu, May 3, 2018 at 9:50 PM, Harsha Kumara  wrote:

>
>
> On Thu, May 3, 2018 at 9:44 PM, Samitha Chathuranga 
> wrote:
>
>> Hi all,
>>
>> AFAIU in Gateway nodes the  in api-manager.xml defines 
>> the connection details to the TM to listen to the JMS topic in TM, to get 
>> the throttle decisions. The  defined under that is used to 
>> establish that connection initially.
>>
>> 
>>(1)tcp://[Traffic-Manager-host]:5673
>>
>> Then under  under  we are 
>> defining again the
>>  url, which is the actual broker 
>> endpoint to listen to the topic.
>>
>> 
>> .
>>
>> 
>> ...
>>
>> (2) amqp://admin:admin@clientID/carbon?brokerlist='tcp://> c-Manager-host>:5673?retries='5'%26connectdelay='50'
>>  
>>
>> Please correct me if my understanding is wrong.
>>
>> But in that url also we are defining Traffic-Manager-Host and Port. So what 
>> is the use of defining it again
>> here too?
>>
>> If you put the url in ServiceURL, you can refer it in the ${jms.url} in
> the connection factory which is the default setting. But when you go for
> failover mode of TM, you can't define single url. Hence it would be best to
> change the connection factory URL with the failover MB configuration.
>
Like amqp://admin:admin@clientID
/carbon?failover='roundrobin'%26cyclecount='2'%26brokerlist='tcp://
127.0.0.1:5673?retries='5'%26connectdelay='50';tcp://127.0.0.1:5674?retries='5'%26connectdelay='50'';tcp://127.0.0.1:5675?retries='5'%26connectdelay='50''


> And in our docs [1] under* Single Traffic Manager* (tab) under *Step 6.6 - 
> Configure and start the Gateway *it is
>> guided to include both (1) and (2). But under *HA of Traffic Manager* (tab) 
>> guide, the (1) is not mentioned to
>> configure. Is this something missing in the doc?
>>
>> [1] 
>> https://docs.wso2.com/display/AM210/Deploying+WSO2+API-M+in+a+Distributed+Setup#DeployingWSO2API-MinaDistributedSetup-Step6.6-ConfigureandstarttheGateway
>>
>>
>> Regards,
>>
>> Samitha
>>
>>
>>
>>
>>
>> --
>> *Samitha Chathuranga*
>> *Software Engineer*, *WSO2 Inc.*
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>> [image: http://wso2.com/signature] 
>>
>
>
>
> --
> Harsha Kumara
> Software Engineer, WSO2 Inc.
> Mobile: +94775505618
> Blog:harshcreationz.blogspot.com
>



-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM][Throttling] JMSConnection Details in api-manager.xml

2018-05-03 Thread Harsha Kumara
On Thu, May 3, 2018 at 9:44 PM, Samitha Chathuranga 
wrote:

> Hi all,
>
> AFAIU in Gateway nodes the  in api-manager.xml defines 
> the connection details to the TM to listen to the JMS topic in TM, to get the 
> throttle decisions. The  defined under that is used to establish 
> that connection initially.
>
> 
>(1)tcp://[Traffic-Manager-host]:5673
>
> Then under  under  we are 
> defining again the
>  url, which is the actual broker 
> endpoint to listen to the topic.
>
> 
> .
>
> 
> ...
>
> (2) amqp://admin:admin@clientID/carbon?brokerlist='tcp://<
> Traffic-Manager-host>:5673?retries='5'%26connectdelay='50'
>  
>
> Please correct me if my understanding is wrong.
>
> But in that url also we are defining Traffic-Manager-Host and Port. So what 
> is the use of defining it again
> here too?
>
> If you put the url in ServiceURL, you can refer it in the ${jms.url} in
the connection factory which is the default setting. But when you go for
failover mode of TM, you can't define single url. Hence it would be best to
change the connection factory URL with the failover MB configuration.

> And in our docs [1] under* Single Traffic Manager* (tab) under *Step 6.6 - 
> Configure and start the Gateway *it is
> guided to include both (1) and (2). But under *HA of Traffic Manager* (tab) 
> guide, the (1) is not mentioned to
> configure. Is this something missing in the doc?
>
> [1] 
> https://docs.wso2.com/display/AM210/Deploying+WSO2+API-M+in+a+Distributed+Setup#DeployingWSO2API-MinaDistributedSetup-Step6.6-ConfigureandstarttheGateway
>
>
> Regards,
>
> Samitha
>
>
>
>
>
> --
> *Samitha Chathuranga*
> *Software Engineer*, *WSO2 Inc.*
> lean.enterprise.middleware
> Mobile: +94715123761
>
> [image: http://wso2.com/signature] 
>



-- 
Harsha Kumara
Software Engineer, WSO2 Inc.
Mobile: +94775505618
Blog:harshcreationz.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev