I agree with Chamara. We have a way to configure public hostname (HostName,
MgtHostName in carbon.xml) and port (proxy port in
tomcat/catalina-server.xml). This is what used in generating service
endpoints, WSDL URLs etc. when a server is fronted with LB. I don't see any
necessary for EMM to have a new configuration.

On Tue, Nov 24, 2015 at 12:41 AM, Geeth Munasinghe <[email protected]> wrote:

>
>
> On Tue, Nov 24, 2015 at 12:12 AM, Chamara Ariyarathne <[email protected]>
> wrote:
>
>> Hi Milan. Thanks for the information. We will try this tomorrow. But our
>> purpose is to replace this whole url with a configured host name.
>>
>> However Geeth, I think the EMM team having to introduce a new config to
>> put the globally exposed server url deviates from the purpose of having
>> HostName and MgtHostname properties in the carbon.xml..
>>
>
> Chamara,
> I think I disagree with on that point. I dont think carbon hostname or mgt
> host name cannot be used for globally exposing the server url.  AFAIK there
> is no place to put the port number in carbon.xml. There is no point of
> having just a host name without the port number. The carbon.xml host name
> will be the server ip address or the host name of the server which the
> product is running as clearly mentioned in the document [1].
>
> As another reference, AFAIK in ESB, we use WSDLPrefix [2] in order to
> change the address endpoint of generated wsdls to LB's address when ESB is
> fronted by a LB.
>
> So I think introducing a new config to put the LB host name and port is
> valid.
>
> [1] https://docs.wso2.com/display/Carbon440/Configuring+carbon.xml
> [2] https://docs.wso2.com/display/ESB490/Setting+Up+Host+Names+and+Ports
>
> Thanks
> Geeth
>
>>
>> On Mon, Nov 23, 2015 at 9:58 PM, Milan Perera <[email protected]> wrote:
>>
>>> Hi
>>> ​Chamara​
>>> ,
>>>
>>> Today we found out that even when the Host Names are configured in the
>>>> carbonl.xml to be server's identified domain name, the QR code which is
>>>> generated while device registration, uses the host ip address which is
>>>> picked up from nowhere.
>>>>
>>> ​
>>> Actually this IP is taking from the PAN. In my machine, if I dont set it
>>> manually from the carbon.xml to my wlan IP, it pics the pan1 (10.7.200.1)
>>> and it breaks all the download links that are generated by the jaggery in
>>> most of the time.
>>>
>>> pan1      Link encap:Ethernet  HWaddr c2:1e:fe:3b:6a:6e
>>>           inet addr:10.7.200.1  Bcast:10.7.200.255  Mask:255.255.255.0
>>>           inet6 addr: fe80::c01e:feff:fe3b:6a6e/64 Scope:Link
>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:0
>>>           RX bytes:0 (0.0 B)  TX bytes:28795 (28.7 KB)
>>>
>>> wlan0     Link encap:Ethernet  HWaddr 84:3a:4b:9b:cf:66
>>>           inet addr:192.168.1.10  Bcast:192.168.1.255
>>> Mask:255.255.255.0
>>>           inet6 addr: fe80::863a:4bff:fe9b:cf66/64
>>> Scope:Link
>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500
>>> Metric:1
>>>           RX packets:207466 errors:0 dropped:0 overruns:0
>>> frame:0
>>>           TX packets:41603 errors:0 dropped:0 overruns:0
>>> carrier:0
>>>           collisions:0
>>> txqueuelen:1000
>>>
>>>           RX bytes:209272568 (209.2 MB)  TX bytes:7936480 (7.9 MB) ​
>>>
>>> ​To overcome t​his, what I do is uncomment the <ServerURL> tag from the
>>> carbon.xml and set it to my wlan ip.
>>> <ServerURL>https://192.168.1.10:
>>> ${carbon.management.port}${carbon.context}/services/</ServerURL>
>>>
>>> ​Regards,​
>>>
>>> --
>>> *Milan Perera *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>> Email: [email protected] <[email protected]> | Web: www.wso2.com
>>> <http://lk.linkedin.com/in/milanharinduperera>
>>>
>>
>>
>>
>> --
>> *Chamara Ariyarathne*
>> Associate Technical Lead - QA
>> WSO2 Inc; http://www.wso2.com/
>> Mobile; *+94772786766 <%2B94772786766>*
>>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
S.Uthaiyashankar
VP Engineering
WSO2 Inc.
http://wso2.com/ - "lean . enterprise . middleware"

Phone: +94 714897591
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to