Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-12-02 Thread Selvaratnam Uthaiyashankar
EMM folks, Did you guys test this with cluster setup? All features should be tested by corresponding developer on a cluster setup before resolving the feature as done-done. These issues means, these features were not tested in a clustered setup fronting with LB? On Wed, Dec 2, 2015 at 11:36 AM,

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-12-02 Thread Geeth Munasinghe
Hi Shankar, We are currently testing with cluster set up as we have not been able to do it before, and will release the next version with the clustering guide too. Thanks Geeth *G. K. S. Munasinghe* *Senior Software Engineer,* *WSO2, Inc. http://wso2.com *

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-12-02 Thread Selvaratnam Uthaiyashankar
Hi Geeth, read the mail again.. How can we resolve the feature as done-done without testing with clustering? How did we release alpha without testing in clustering? What do you mean by "we have not been able to do it before"? What stopped us from doing cluster testing? Isn't EMM designed with

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-12-01 Thread Chamara Ariyarathne
I disagree with that. Using the carbon.xml HostName value is not just for constructing a url in a mail. It was only one requirement. There are further issues encountered due to not using carbon.xml HostName value in the product. https://wso2.org/jira/browse/EMM-1017 On Tue, Dec 1, 2015 at 9:09

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-12-01 Thread Dulitha Wijewantha
On Thu, Nov 26, 2015 at 8:33 AM, Afkham Azeez wrote: > I think your requirement is to to send a URL to the client in an email. > The best option is the define the entire URL as some config element and use > that without complicating stuff so much. > ​+1 for this. ​ > > > On

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-26 Thread Geeth Munasinghe
On Thu, Nov 26, 2015 at 11:56 AM, Sameera Jayasoma wrote: > At the moment carbon.xml contains proxy host, proxy context path of the > worker cluster. But proxy port of the worker cluster is missing. Therefore > we need to add this to carbon.xml. > > Suggestion is to put

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-26 Thread Afkham Azeez
I think your requirement is to to send a URL to the client in an email. The best option is the define the entire URL as some config element and use that without complicating stuff so much. On Thu, Nov 26, 2015 at 6:53 PM, Geeth Munasinghe wrote: > > > On Thu, Nov 26, 2015 at

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-25 Thread Sameera Jayasoma
At the moment carbon.xml contains proxy host, proxy context path of the worker cluster. But proxy port of the worker cluster is missing. Therefore we need to add this to carbon.xml. Suggestion is to put following properties under the "Ports" element. 80 443 WDYT? Thanks, Sameera. On Tue, Nov

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-24 Thread Chamara Ariyarathne
Hi Milan, Your information is also incorrect. I tried changing the tag in carbon.xml and tried the same scenario and the QR code is still generated with the host machine's Ethernet ip-address. Thanks. On Tue, Nov 24, 2015 at 12:38 PM, Afkham Azeez wrote: > Yes. You have to

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Geeth Munasinghe
On Tue, Nov 24, 2015 at 12:12 AM, Chamara Ariyarathne 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

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Chamara Ariyarathne
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

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Chamara Ariyarathne
We have a major design culprit with this situation now with the hostname not getting picked up from carbon.xml. First reported jira is this https://wso2.org/jira/browse/EMM-900 Today we found out that even when the Host Names are configured in the carbonl.xml to be server's identified domain

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Geeth Munasinghe
Hi Chamara For the first issue, as you and me had many offline discussions about it, let me explain the reason again, why we moved the LB host name and LB port to be taken from a different file (cdm-config.xml). This was required when we send email to users to get their devices enrolled, we need

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Chamara Ariyarathne
So Geeth, my argument is even if there is a url re-write in the load balancer, the carbon.xml HostName and MgtHostName value should be the domain name which is exposed to outside world, hence in your example: emm.wso2.com. Do you have a counter argument for this? On Mon, Nov 23, 2015 at 8:03

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Afkham Azeez
Yes. You have to use the value in the carbon. Xml On Nov 24, 2015 8:17 AM, "Selvaratnam Uthaiyashankar" wrote: > 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

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Selvaratnam Uthaiyashankar
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

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Geeth Munasinghe
What about the port? On Monday, November 23, 2015, Chamara Ariyarathne wrote: > So Geeth, my argument is even if there is a url re-write in the load > balancer, the carbon.xml HostName and MgtHostName value should be the > domain name which is exposed to outside world, > >

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-23 Thread Milan Perera
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

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-17 Thread Chamara Ariyarathne
Hi Azeez, Agree with that. However the precedence should be to use the HostName value in the carbon.xml which is ultimately the deployment's exposed host name, hence the constructed url in the email would be the correct access url from outside. My argument is, this url shouldn't be kept in some

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Afkham Azeez
proxy host name On Wed, Nov 11, 2015 at 12:28 AM, Chamara Ariyarathne wrote: > Hi All, > > When a new user is added to EMM, the user will be notified with an email > to subscribe a device to MDM domain. The email contains the server url to > be accessed from the device. > >

[Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Chamara Ariyarathne
Hi All, When a new user is added to EMM, the user will be notified with an email to subscribe a device to MDM domain. The email contains the server url to be accessed from the device. https://localhost:9443/mdm/enrollment In a usual deployment when a EMM cluster is fronted by a LB, this url

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Geeth Munasinghe
Hi Azeez, In case of URL rewrite by LB, can we handle that by the proxy settings on catalina-server.xml ? Thanks Geeth *G. K. S. Munasinghe* *Senior Software Engineer,* *WSO2, Inc. http://wso2.com * *lean.enterprise.middleware.* email: ge...@wso2.com phone:(+94)

Re: [Dev] [EMM] Doubt on Server Url to be taken from carbon.xml HostName value or some other configuration.

2015-11-11 Thread Afkham Azeez
This is for information purposes only. The mail says the URL we send to the users in the email contains local host. May be you can get the IP address/host from the incoming request and use that. On Wed, Nov 11, 2015 at 3:59 AM, Geeth Munasinghe wrote: > Hi Azeez, > > In case of