Re: [Dev] IS application-authentication.xml required for application management feature
In Git - the is no version controlling for files - it's for a repository. Unless we can make that file a repo of it's own, we can't use git modules. I am +1 for Kicha's solution. Primary feature owns the file and other features that uses the file needs to add the primary feature as a dependency. Cheers~ On Tue, Dec 2, 2014 at 5:59 AM, Johann Nallathamby wrote: > IMHO sharing a single configuration file among multiple features is not > that bad compared to maintaining different versions of the same file in > different products. That's what creates problems. E.g. identity.xml is > maintained by API Manager separately and that creates problems. > > I don't think we have ruled out, multiple features sharing the same file. > E.g. identity.xml is the main configuration file shared by all identity > features. If we are going to maintain separate files for each feature that > is going to be a difficult for users. > > The svn externals solution was a clean way of doing this in svn. We need > to find similar solution in Git. If you are going to say one file per > feature that rule needs to be implemented strictly in all features. > > On Tue, Dec 2, 2014 at 6:07 PM, Kishanthan Thangarajah < > kishant...@wso2.com> wrote: > >> There can be only one feature which own a specific resources (es : a >> configuration file). If another feature is trying to include this resource >> then it is wrong. >> >> We can make the second feature depend on the first, so that when second >> gets installed, first one also gets installed and available (during which >> the relevant resources also gets copied) >> Or merge these two features and make a single feature. >> >> On Tue, Dec 2, 2014 at 12:47 PM, Johann Nallathamby >> wrote: >> >>> It is actually coming from application-authentication-framework feature. >>> Not from product level. In svn the ideal way would be to have svn >>> externals. But in Git I am not sure how we handle this. Duplicating this >>> file will be a nightmare. AFAIK in Git there is a similar way to do this. >>> >>> On Tue, Dec 2, 2014 at 12:40 PM, Harsha Kumara wrote: >>> >>>> Hi All, >>>> >>>> In Storage Server we are using application management server feature >>>> for custom permission implementation. But application management feature >>>> requires application-authentication.xml which is not bundled with the >>>> feature. I think it's not appropriate to keep configuration in product >>>> itself. This configuration is coming from application authentication >>>> framework feature. Is it Ok to include this xml in application management >>>> feature as well? If else, what would be the approach to do it? >>>> >>>> Thanks, >>>> Harsha >>>> >>>> -- >>>> Harsha Kumara >>>> Software Engineer, WSO2 Inc. >>>> Mobile: +94775505618 >>>> Blog:harshcreationz.blogspot.com >>>> >>> >>> >>> >>> -- >>> Thanks & Regards, >>> >>> *Johann Dilantha Nallathamby* >>> Associate Technical Lead & Product Lead of WSO2 Identity Server >>> Integration Technologies Team >>> WSO2, Inc. >>> lean.enterprise.middleware >>> >>> Mobile - *+9476950* >>> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>* >>> >> >> >> >> -- >> *Kishanthan Thangarajah* >> Senior Software Engineer, >> Platform Technologies Team, >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - +94773426635 >> Blog - *http://kishanthan.wordpress.com >> <http://kishanthan.wordpress.com>* >> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>* >> > > > > -- > Thanks & Regards, > > *Johann Dilantha Nallathamby* > Associate Technical Lead & Product Lead of WSO2 Identity Server > Integration Technologies Team > WSO2, Inc. > lean.enterprise.middleware > > Mobile - *+9476950* > Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret
Rekindling an old thread. Are we going to support this in next IS release? On Thu, Apr 17, 2014 at 8:26 PM, Kasun Dananjaya Delgolla wrote: > +1. I think this is the ideal way of doing that. > > > On Thu, Apr 17, 2014 at 5:57 PM, Gayan Gunawardana wrote: > >> Hi, >> >> +1 for dynamic client generation. >> >> This is what we have discussed in several meetings. >> >> If time permit I can have a look at the spec and do the implementation. >> This will be an ideal solution for most of security holes. >> >> >> >> On Thu, Apr 17, 2014 at 5:41 PM, Suresh Attanayaka >> wrote: >> >>> Hi, >>> >>> We can use Dynamic Client Registration[1] to get a ClientKey and a >>> ClientSecrete. The advantage here is that different instances of the same >>> application will have different ClientKey and ClientSecrete. With this we >>> can identify each installation. >>> >>> Dynamic Client Registration has a registration endpoint which requires >>> an initial token. The initial token can be obtained using basic >>> authentication, then the client can use that initial token to register >>> itself at the EMM and get the ClientKey + ClientSecrete. >>> >>> Once the client has received the ClientKey and ClientSecrete, it should >>> store it securely. >>> >>> [1]- http://openid.net/specs/openid-connect-registration-1_0.html >>> >>> >>> >>> >>> On Thu, Apr 17, 2014 at 2:52 PM, Harshan Liyanage >>> wrote: >>> >>>> I think we could use a technique like "*Image Steganography[[1]*" to >>>> store consumer key/secret inside the application so it would be difficult >>>> to hack. For the image we can use something like application logo so it >>>> won't get much attention. On the otherhand we could modify the >>>> steganography algorithm and make it much more secure. >>>> >>>> [1]. http://en.wikipedia.org/wiki/Steganography >>>> >>>> Best Regards, >>>> >>>> Lakshitha Harshan >>>> Software Engineer >>>> Mobile: *+94724423048* >>>> Email: hars...@wso2.com >>>> Blog : http://harshanliyanage.blogspot.com/ >>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>* >>>> lean.enterprise.middleware. >>>> >>>> >>>> On Thu, Apr 17, 2014 at 2:21 PM, Chathura Dilan >>>> wrote: >>>> >>>>> if it is unique to the app, there could be another security issue. >>>>> Someone can get our source and authenticate himself with his app, and they >>>>> are able to download the key from the server. >>>>> >>>>> >>>>> On Thu, Apr 17, 2014 at 2:12 PM, Chathura Dilan >>>>> wrote: >>>>> >>>>>> Is consumer/secret key unique to a user or is it unique to the app? >>>>>> >>>>>> >>>>>> On Thu, Apr 17, 2014 at 12:20 PM, Chan wrote: >>>>>> >>>>>>> +1 to the idea since basic auth will be first used to obtain the >>>>>>> consumer secret. But we might have to change the flow from how it >>>>>>> usually >>>>>>> work. >>>>>>> >>>>>>> Cheers~ >>>>>>> >>>>>>> >>>>>>> On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla < >>>>>>> kas...@wso2.com> wrote: >>>>>>> >>>>>>>> Hi All, >>>>>>>> >>>>>>>> We're going to protect all the API calls from EMM client side using >>>>>>>> OAuth. >>>>>>>> >>>>>>>> I have a concern whether to store the consumer key/secret inside >>>>>>>> the EMM Agent Application or making it dynamic. We can actually send >>>>>>>> those >>>>>>>> 2 when the user authenticates from the mobile client (As the >>>>>>>> response), and >>>>>>>> then we can store it inside a private preference (Which is application >>>>>>>> private). >>>>>>>> >>>>>>>> I see this as the safest way because keeping it hardcoded in the >>>>>>>> source or a file might be extremely easy to hack. So WDYT? >&
Re: [Dev] Act-as scenario bug fix for SAMLTokenIssuer [Rampart]
Adding the correct Ishara On Wed, Nov 5, 2014 at 3:06 PM, Chan wrote: > Hi guys, > There is a bug in the SAMLTokenIssuer class in rampart-trust module. I am > attaching the svn diff for the fix. > > Cheers~ > > -- > Chan (Dulitha Wijewantha) > Software Engineer - Mobile Development > WSO2 Inc > Lean.Enterprise.Mobileware > * ~Email duli...@wso2.com * > * ~Mobile +94712112165 <%2B94712112165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~Github @dulichan <https://github.com/dulichan>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Act-as scenario bug fix for SAMLTokenIssuer [Rampart]
Hi guys, There is a bug in the SAMLTokenIssuer class in rampart-trust module. I am attaching the svn diff for the fix. Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* svndiff Description: Binary data ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Niranjan Karunanandham
Congratz ! On Wed, Nov 5, 2014 at 9:37 AM, Sam Sivayogam wrote: > Congrats Niranjan :) > > On Tue, Nov 4, 2014 at 6:02 PM, Vijitha Ekanayake > wrote: > >> Congratulations !!! >> >> On Tue, Nov 4, 2014 at 11:43 AM, Sameera Perera >> wrote: >> >>> Hi all, >>> >>> It's my pleasure to announce Niranjan as a WSO2 Committer. He has been >>> an active contributor for WSO2 Enterprise Mobility Manager. >>> >>> Niranjan, welcome aboard and keep up the good work!. >>> >>> -- >>> >>> -- >>> >>> *Sameera Perera* >>> Director of Engineering >>> gtalk: samee...@wso2.com >>> Tel : 94 11 214 5345 >>> Fax :94 11 2145300 >>> *WSO2, Inc.* <http://wso2.com/> >>> lean.enterprise.middleware >>> >>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Vijitha Ekanayake >> Software Engineer*, *WSO2, Inc.; http://wso2.com/ >> Mobile : +94 777 24 73 39 | +94 718 74 44 08 >> lean.enterprise.middleware >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Sam Sivayogam* > > Software Engineer > > <http://www.wso2.com/> > *Mobile* : +94 772 906 439 > *Office* : +94 112 145 345 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Access a properties file inside an AAR service
Solved it. Had to remove the .getClassLoader() :) On Fri, Oct 31, 2014 at 1:23 PM, Chan wrote: > Hi guys, > I want access a properties file packed inside an AAR service > (HelloService/resources/client.properties). I have tried below - > > InputStream stream = > Client.class.getClassLoader().getResourceAsStream(ClientConstants.PROPERTIES_FILE_PATH); > > The steam comes out as null. I doubled checked the path but it's correct. > I also saw this mail thread [1]. It doesn't have a conclusion for the > problem. > > [1] - > http://mail-archives.apache.org/mod_mbox/axis-java-user/200812.mbox/%3c20978881.p...@talk.nabble.com%3E > > Cheers~ > > -- > Chan (Dulitha Wijewantha) > Software Engineer - Mobile Development > WSO2 Inc > Lean.Enterprise.Mobileware > * ~Email duli...@wso2.com * > * ~Mobile +94712112165 <%2B94712112165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~Github @dulichan <https://github.com/dulichan>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Access a properties file inside an AAR service
Hi guys, I want access a properties file packed inside an AAR service (HelloService/resources/client.properties). I have tried below - InputStream stream = Client.class.getClassLoader().getResourceAsStream(ClientConstants.PROPERTIES_FILE_PATH); The steam comes out as null. I doubled checked the path but it's correct. I also saw this mail thread [1]. It doesn't have a conclusion for the problem. [1] - http://mail-archives.apache.org/mod_mbox/axis-java-user/200812.mbox/%3c20978881.p...@talk.nabble.com%3E Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Front-end framework to use
AFIK - jQuery Mobile is very slow :) On Tue, Oct 21, 2014 at 2:40 PM, Harshan Liyanage wrote: > Hi CD, > > You can also you JQuery mobile for single page web apps. It would be much > easier for you since you are already familiar with JQuery. > > Thanks, > > Best Regards, > > Lakshitha Harshan > Software Engineer > Mobile: *+94724423048* > Email: hars...@wso2.com > Blog : http://harshanliyanage.blogspot.com/ > *WSO2, Inc. :** wso2.com <http://wso2.com/>* > lean.enterprise.middleware. > > On Tue, Oct 21, 2014 at 2:33 PM, CD Athuraliya > wrote: > >> Hi Chan, >> >> Thanks a lot for the help. I will go through references and contact you >> if it is needed. Anyway this will be a simple single page front end. >> Something similar can be viewed here [1]. >> >> [1] https://lk.roadlk.com/traffic/near/ >> >> Best regards. >> >> On Tue, Oct 21, 2014 at 2:21 PM, Chan wrote: >> >>> Hi CD, >>> If you intending to write a fully front end web app - I suggest you use >>> a front end framework like AngularJS or Backbone - otherwise it will get >>> very messy when the app gets complicated. If you need angular related help >>> - please meet me or Dilan from AppM. >>> >>> Cheers~ >>> >>> On Tue, Oct 21, 2014 at 1:40 PM, Sameera Medagammaddegedara < >>> samee...@wso2.com> wrote: >>> >>>> Hi CD, >>>> >>>> It is ideal if you use a framework like backbone [1] or angular [2] to >>>> structure your application as opposed to writing your views completely >>>> using jquery.However, we do not have a de facto framework for building >>>> single page apps.Please have a chat with Dulitha (Chan) as the mobile team >>>> has written a few views in angular. >>>> >>>> *Reference* >>>> [1] http://backbonejs.org/ >>>> [2] https://angularjs.org/ >>>> >>>> Thank You, >>>> Sameera >>>> >>>> >>>> On Tue, Oct 21, 2014 at 11:06 AM, CD Athuraliya >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> Thanks a lot for the feedback. The GUI will be used to display real >>>>> time road traffic information extracted from a Twitter feed to the user. >>>>> Information includes geolocations and textual information on traffic level >>>>> which are more convenient to display in a single page. I will continue my >>>>> work with Bootstrap with jQuery for the GUI following your feedback. >>>>> >>>>> Thanks and best regards. >>>>> >>>>> On Tue, Oct 21, 2014 at 10:43 AM, Shiva Balachandran >>>>> wrote: >>>>> >>>>>> Hi CD, >>>>>> >>>>>> If functionality of the UI can be achieved using Bootstrap with >>>>>> jQuery it would be a good way to proceed, as it would be light and fast. >>>>>> Look into the links below to see if you can find a better suited >>>>>> framework >>>>>> from your development. >>>>>> >>>>>> 1 - http://www.sitepoint.com/top-10-front-end-development-frameworks/ >>>>>> 2 - http://handlebarsjs.com/ >>>>>> >>>>>> >>>>>> Thank you. >>>>>> >>>>>> On Tue, Oct 21, 2014 at 12:46 AM, CD Athuraliya >>>>>> wrote: >>>>>> >>>>>>> Hi Shiva, >>>>>>> >>>>>>> The GUI will be mainly used for user interaction and geo map >>>>>>> integration. I am currently using Bootstrap with jQuery for this >>>>>>> purpose. Kindly point out if there is a better choice. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> On Mon, Oct 20, 2014 at 5:42 PM, Shiva Balachandran >>>>>>> wrote: >>>>>>> >>>>>>>> Hi CD, >>>>>>>> >>>>>>>> Can you please be more specific about what goes in the web based >>>>>>>> GUI. There are many frameworks/modules, used for such purposes but >>>>>>>> depending on your necessities, you can narrow down a suitable one. >>>>>>>> Any mock-ups or designs? >>>>>>>> >>>>>>>> Thank you, >>>>>>>&g
Re: [Dev] Front-end framework to use
Hi CD, If you intending to write a fully front end web app - I suggest you use a front end framework like AngularJS or Backbone - otherwise it will get very messy when the app gets complicated. If you need angular related help - please meet me or Dilan from AppM. Cheers~ On Tue, Oct 21, 2014 at 1:40 PM, Sameera Medagammaddegedara < samee...@wso2.com> wrote: > Hi CD, > > It is ideal if you use a framework like backbone [1] or angular [2] to > structure your application as opposed to writing your views completely > using jquery.However, we do not have a de facto framework for building > single page apps.Please have a chat with Dulitha (Chan) as the mobile team > has written a few views in angular. > > *Reference* > [1] http://backbonejs.org/ > [2] https://angularjs.org/ > > Thank You, > Sameera > > > On Tue, Oct 21, 2014 at 11:06 AM, CD Athuraliya > wrote: > >> Hi all, >> >> Thanks a lot for the feedback. The GUI will be used to display real time >> road traffic information extracted from a Twitter feed to the user. >> Information includes geolocations and textual information on traffic level >> which are more convenient to display in a single page. I will continue my >> work with Bootstrap with jQuery for the GUI following your feedback. >> >> Thanks and best regards. >> >> On Tue, Oct 21, 2014 at 10:43 AM, Shiva Balachandran >> wrote: >> >>> Hi CD, >>> >>> If functionality of the UI can be achieved using Bootstrap with jQuery >>> it would be a good way to proceed, as it would be light and fast. Look into >>> the links below to see if you can find a better suited framework from your >>> development. >>> >>> 1 - http://www.sitepoint.com/top-10-front-end-development-frameworks/ >>> 2 - http://handlebarsjs.com/ >>> >>> >>> Thank you. >>> >>> On Tue, Oct 21, 2014 at 12:46 AM, CD Athuraliya >>> wrote: >>> >>>> Hi Shiva, >>>> >>>> The GUI will be mainly used for user interaction and geo map >>>> integration. I am currently using Bootstrap with jQuery for this >>>> purpose. Kindly point out if there is a better choice. >>>> >>>> Thanks. >>>> >>>> On Mon, Oct 20, 2014 at 5:42 PM, Shiva Balachandran >>>> wrote: >>>> >>>>> Hi CD, >>>>> >>>>> Can you please be more specific about what goes in the web based GUI. >>>>> There are many frameworks/modules, used for such purposes but >>>>> depending on your necessities, you can narrow down a suitable one. >>>>> Any mock-ups or designs? >>>>> >>>>> Thank you, >>>>> >>>>> Shiva Balachandran >>>>> >>>>> On Fri, Oct 17, 2014 at 11:09 AM, CD Athuraliya >>>>> wrote: >>>>> >>>>>> Hi Chamila, >>>>>> >>>>>> Thanks for the tip on license compatibility. I will look into this. >>>>>> >>>>>> Best regards. >>>>>> >>>>>> On Fri, Oct 17, 2014 at 11:05 AM, Chamila De Alwis >>>>> > wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I haven't done any serious front end work, but as an additional >>>>>>> concern when selecting frameworks and modules, have a look at the >>>>>>> license >>>>>>> they are using. They should be licensed under Apache License v2.0 or >>>>>>> under >>>>>>> a compatible license. It might help going briefly through the >>>>>>> articles[1][2][3] on Apache about license compatibility before >>>>>>> selecting a >>>>>>> particular module. >>>>>>> >>>>>>> Perhaps Dakshika can add ideas on the specific frameworks to use >>>>>>> >>>>>>> [1] - http://www.apache.org/licenses/GPL-compatibility.html >>>>>>> [2] - http://www.apache.org/legal/3party.html >>>>>>> [3] - http://www.apache.org/legal/resolved.html >>>>>>> >>>>>>> >>>>>>> Regards, >>>>>>> Chamila de Alwis >>>>>>> Software Engineer | WSO2 | +94772207163 >>>>>>> Blog: code.chamiladealwis.com >>>>>>> >>>>>>> >>>&
Re: [Dev] jaggery file upload
I believe it's because Jaggery Apps are web apps that needs to operate under the deployments directory. Writing into other directories of the server is potentially harmful and a bad practice. But I do understand the testing part (since it's easy to save a file to filesystem). How about having a special folder inside the webapp (like 'files') and saving them to that location. Saving part needs to be abstracted away so that it can be later switched to some other implementation. Also I think you need to read this file from a Java component. For that - you can use the absolute path to the web app itself (again the same method as above -abstract the implementation) @SameeraM @SameeraP remember the file server discussion we had couple of months ago. I think - now we need to have a platform wide, scalable, secure standard to write to files and read files. Cheers~ On Tue, Oct 7, 2014 at 12:41 PM, Lochana Menikarachchi wrote: > Is there any reason to restrict file system operations (why not outside > Jaggery application context root) ? > http://jaggeryjs.org/documentation.jag?api=file > > On Tue, Oct 7, 2014 at 12:20 PM, Lochana Menikarachchi > wrote: > >> We need to support file uploading to a server location (for testing etc.) >> in addition to S3,HDFS etc. >> >> My question is why does file.save do it the way it does.. >> >> Operation Returns Description File(String filename)Object >> >> var file = new File("/templates/tmp.jag"); >> >> Takes a filename and provides a File object. (File path is relative to >> the Jaggery application context root) >> >> shouldn't it allow saving to any location.. >> >> >> On Tue, Oct 7, 2014 at 12:11 PM, Chan wrote: >> >>> Hi Lochana, >>> Exactly. The correct method to store files is to use a separate file >>> service (S3) or use HDFS/RDMS to store the files. Adding @sameeraM to the >>> thread. >>> >>> Cheers~ >>> >>> On Tue, Oct 7, 2014 at 12:09 PM, Lochana Menikarachchi >> > wrote: >>> >>>> Hi, >>>> >>>> >>File uploading brings about a number of issues in scalability. For >>>> example - if we upload files to the deployments directory- it's not going >>>> to scale properly (DepSync will sync all these files across the cluster if >>>> DepSync enabled). >>>> >>>> This is exactly what is happening with current file save method, >>>> >>>> if you do following: >>>> >>>> var carbon = require('carbon'); >>>> var datasetService = >>>> carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService'); >>>> var uploadingLimit = datasetService.getDatasetUploadingLimit(); >>>> var memThreshold = datasetService.getDatasetInMemoryThreshold(); >>>> var uploadingDir = datasetService.getDatasetUploadingDir(); >>>> var file = request.getFile("uploadDataset"); >>>>* file.saveAs(uploadingDir+"/"+file.getName());* >>>> >>>> file gets saved under deployment directory. >>>> >>>> We need to upload the file into some other directory on the server.. >>>> >>>> >>>> On Tue, Oct 7, 2014 at 11:44 AM, Chan wrote: >>>> >>>>> Hi Lochana, >>>>> File uploading brings about a number of issues in scalability. For >>>>> example - if we upload files to the deployments directory- it's not going >>>>> to scale properly (DepSync will sync all these files across the cluster if >>>>> DepSync enabled). Also saving a file to a specific path is inadvisable >>>>> cause paths will depend upon deploying machine. >>>>> >>>>> Can you elaborate more on the requirement - where we can give a >>>>> solution? >>>>> >>>>> Cheers~ >>>>> >>>>> On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi < >>>>> loch...@wso2.com> wrote: >>>>> >>>>>> Unfortunately, that's not going to work. Shouldn't there be a file >>>>>> uploader in jaggery (that can upload a file to a given location)? >>>>>> >>>>>> On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne < >>>>>> dil...@wso2.com> wrote: >>>>>> >>>>>>> Hi Lochana! >>>>>>> >>>>>>> Do not know exactly whether their is
Re: [Dev] jaggery file upload
Hi Lochana, Exactly. The correct method to store files is to use a separate file service (S3) or use HDFS/RDMS to store the files. Adding @sameeraM to the thread. Cheers~ On Tue, Oct 7, 2014 at 12:09 PM, Lochana Menikarachchi wrote: > Hi, > > >>File uploading brings about a number of issues in scalability. For > example - if we upload files to the deployments directory- it's not going > to scale properly (DepSync will sync all these files across the cluster if > DepSync enabled). > > This is exactly what is happening with current file save method, > > if you do following: > > var carbon = require('carbon'); > var datasetService = > carbon.server.osgiService('org.wso2.carbon.ml.dataset.DatasetService'); > var uploadingLimit = datasetService.getDatasetUploadingLimit(); > var memThreshold = datasetService.getDatasetInMemoryThreshold(); > var uploadingDir = datasetService.getDatasetUploadingDir(); > var file = request.getFile("uploadDataset"); >* file.saveAs(uploadingDir+"/"+file.getName());* > > file gets saved under deployment directory. > > We need to upload the file into some other directory on the server.. > > > On Tue, Oct 7, 2014 at 11:44 AM, Chan wrote: > >> Hi Lochana, >> File uploading brings about a number of issues in scalability. For >> example - if we upload files to the deployments directory- it's not going >> to scale properly (DepSync will sync all these files across the cluster if >> DepSync enabled). Also saving a file to a specific path is inadvisable >> cause paths will depend upon deploying machine. >> >> Can you elaborate more on the requirement - where we can give a solution? >> >> Cheers~ >> >> On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi >> wrote: >> >>> Unfortunately, that's not going to work. Shouldn't there be a file >>> uploader in jaggery (that can upload a file to a given location)? >>> >>> On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne >> > wrote: >>> >>>> Hi Lochana! >>>> >>>> Do not know exactly whether their is a way to directly >>>> give an absolute path and save the file. >>>> >>>> BTW, as a workaround, if no such way exists, can you try to create the >>>> corresponding relative path for the given absolute one >>>> and use the same method provided. >>>> >>>> Cheers! >>>> >>>> >>>> *Dilan U. Ariyaratne* >>>> Software Engineer >>>> WSO2 Inc. <http://wso2.com/> >>>> Mobile: +94775149066 >>>> lean . enterprise . middleware >>>> >>>> On Tue, Oct 7, 2014 at 10:29 AM, Lochana Menikarachchi < >>>> loch...@wso2.com> wrote: >>>> >>>>> Dilan, There is a specific requirement.. We need to upload a file to a >>>>> given location >>>>> Madhuka, That method returns absolute path.. What I want is to upload >>>>> a file to a given location (that is when absolute path is given as a >>>>> string) >>>>> Thanks. >>>>> >>>>> On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha < >>>>> madhukaudan...@gmail.com> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> you can do it. absolute path >>>>>> >>>>>> var absolute = function (path) { >>>>>> var systemProcess = require('process'); >>>>>> var parent = 'file:///' + >>>>>> (systemProcess.getProperty('jaggery.home') || >>>>>> systemProcess.getProperty('carbon.home')).replace(/[\\]/g, >>>>>> '/').replace(/^[\/]/g, ''); >>>>>> return parent + MODULE_PATH + path; >>>>>> }; >>>>>> >>>>>> [1] >>>>>> https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js >>>>>> On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi < >>>>>> loch...@wso2.com> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> Madhuka Udantha >>>>>> http://madhukaudantha.blogspot.com >>>>>> >&
Re: [Dev] jaggery file upload
Hi Lochana, File uploading brings about a number of issues in scalability. For example - if we upload files to the deployments directory- it's not going to scale properly (DepSync will sync all these files across the cluster if DepSync enabled). Also saving a file to a specific path is inadvisable cause paths will depend upon deploying machine. Can you elaborate more on the requirement - where we can give a solution? Cheers~ On Tue, Oct 7, 2014 at 10:50 AM, Lochana Menikarachchi wrote: > Unfortunately, that's not going to work. Shouldn't there be a file > uploader in jaggery (that can upload a file to a given location)? > > On Tue, Oct 7, 2014 at 10:45 AM, Dilan Udara Ariyaratne > wrote: > >> Hi Lochana! >> >> Do not know exactly whether their is a way to directly >> give an absolute path and save the file. >> >> BTW, as a workaround, if no such way exists, can you try to create the >> corresponding relative path for the given absolute one >> and use the same method provided. >> >> Cheers! >> >> >> *Dilan U. Ariyaratne* >> Software Engineer >> WSO2 Inc. <http://wso2.com/> >> Mobile: +94775149066 >> lean . enterprise . middleware >> >> On Tue, Oct 7, 2014 at 10:29 AM, Lochana Menikarachchi >> wrote: >> >>> Dilan, There is a specific requirement.. We need to upload a file to a >>> given location >>> Madhuka, That method returns absolute path.. What I want is to upload a >>> file to a given location (that is when absolute path is given as a string) >>> Thanks. >>> >>> On Tue, Oct 7, 2014 at 9:55 AM, madhuka udantha < >>> madhukaudan...@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> you can do it. absolute path >>>> >>>> var absolute = function (path) { >>>> var systemProcess = require('process'); >>>> var parent = 'file:///' + >>>> (systemProcess.getProperty('jaggery.home') || >>>> systemProcess.getProperty('carbon.home')).replace(/[\\]/g, >>>> '/').replace(/^[\/]/g, ''); >>>> return parent + MODULE_PATH + path; >>>> }; >>>> >>>> [1] >>>> https://github.com/Madhuka/sugarcane/blob/master/core/sugarcane/scripts/engine/test.js >>>> On Tue, Oct 7, 2014 at 9:37 AM, Lochana Menikarachchi >>> > wrote: >>>> >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Cheers, >>>> Madhuka Udantha >>>> http://madhukaudantha.blogspot.com >>>> >>> >>> >>> >>> -- >>> Lochana Menikarachchi >>> Senior Tech Lead >>> WSO2 Inc. >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > > -- > Lochana Menikarachchi > Senior Tech Lead > WSO2 Inc. > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Is it possible to separate org.wso2.emm.feature into sub features ?
Hi Dinusha, The .p2-inf is used as a workaround solution to keep API Publisher and API Store along with ES Publisher and ES Store. I believe we have to do some refactoring if our feature needs to be installed to another server due to this. I am adding @Harshan to the loop too. Cheers~ On Thu, Oct 2, 2014 at 8:02 AM, Dinusha Senanayaka wrote: > Hi Dilshan, > > There is an entry in p2-inf of emm.feature to copy jaggery apps [1]. If > you are not including jaggery apps though feature, can we remove this ? > This anyway fails in p2-profile feature installation because those jaggery > apps are not zipped inside feature. > > [1]. > https://github.com/wso2/product-emm/blob/master/modules/features/org.wso2.emm.feature/resources/p2.inf > > Regards, > Dinusha. > > On Thu, Oct 2, 2014 at 4:50 AM, Dilshan Edirisuriya > wrote: > >> Hi Dinusha, >> >> Yes we can incooperate these. However this feature will only concentrate >> on embedding few mobile components related to Android and iOS backend >> portion. Unlike API manager EMM does not add Jaggery apps from feature >> level. Majority of the code resides in the Jaggery app. If those needs to >> be reused I assume we have to separate out the Jaggery modules instead and >> reuse it in AppManager rather than spliting the EMM feature into few. +1 >> for adding emm related configuration into the feature. >> >> Regards, >> >> Dilshan >> >> On Wed, Oct 1, 2014 at 11:44 AM, Dinusha Senanayaka >> wrote: >> >>> Hi EMM Team, >>> >>> Currently, EMM has only a aggregated feature [1] which contains UI >>> (Jaggery) and all backend modules. Since we are trying to integrate EMM >>> functionalities into App Manager, can we divide this into feature >>> categories and have several features? . So that we could include only the >>> necessary bundles into App Manager. Also we need to include all EMM related >>> configuration files to be copy from feature instead of keeping them in >>> product level. >>> >>> [1]. >>> https://github.com/wso2/product-emm/blob/master/modules/features/org.wso2.emm.feature/pom.xml >>> >>> >>> Regards, >>> Dinusha. >>> >>> -- >>> Dinusha Dilrukshi >>> Senior Software Engineer >>> WSO2 Inc.: http://wso2.com/ >>> Mobile: +94725255071 >>> Blog: http://dinushasblog.blogspot.com/ >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Dilshan Edirisuriya >> Senior Software Engineer - WSO2 >> Mob: + 94 777878905 >> http://wso2.com/ >> > > > > -- > Dinusha Dilrukshi > Senior Software Engineer > WSO2 Inc.: http://wso2.com/ > Mobile: +94725255071 > Blog: http://dinushasblog.blogspot.com/ > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [WSO2-MB] Subscription Listener Model
Hi Hasitha, I am not quite aware of what the listener does exactly in this context. If we are providing and extensible listener - how about having a rollback callback in each listener that has to be implemented. If one listener fails - the rollback callbacks of all the previously executed listeners will be fired. If it's database related - maybe database transactions/rollbacks? Cheers~ On Sun, Sep 28, 2014 at 8:36 AM, Hasitha Hiranya wrote: > Hi Devs, > > I have introduced listeners based model for WSO2 MB to handle > subscriptions, queues, bindings and exchanges. > > There are multiple implementations of the listeners. These listeners do > various things inside the broker on for example subscription change. Note > that currently we call the listeners one after the other in blocking manner > (maybe we will need to change this i.e make hazlecast call async down the > way). > > If an exception happened in one listener we should rollback all the other > things done by previously triggered listeners. Otherwise that would create > an inconsistency. > > > What is the best way to do this? > > Thanks > > -- > *Hasitha Abeykoon* > Senior Software Engineer; WSO2, Inc.; http://wso2.com > *cell:* *+94 719363063* > *blog: **abeykoon.blogspot.com* <http://abeykoon.blogspot.com> > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Making Realtime Dashboards
Hi guys, I had some offline discussions with - Suho, Lasantha and Dilini. We finally concluded to use CEP 4.0.0 which supports websocket output adaptor. This way -we'll have to implement the load balancing data publisher instead of the async data publisher to publish events. Thus CEP and BAM will both receive the event. CEP pushes the events to the dashboard using web sockets and BAM persists the data to Cassandra. Cheers~ On Sat, Sep 27, 2014 at 5:16 PM, Lasantha Fernando wrote: > Hi Manoj, > > On 27 September 2014 13:56, Manoj Gunawardena wrote: > >> Hi All, >> >> Is there any reason for not pulling real time data from casendra. I >> think writing into RDBMS, and then query from RDBMS is too expensive >> operations. >> casendra has nice REST api to data fetch. >> > > +1 to use Cassandra if it offers better performance than RDBMS (Not sure > of the exact perf stats myself.. :-)). Embedded UES released with CEP has a > gadget-gen tool that automatically generates a jaggery file to poll data > from a selected RDBMS datasource and feeds to the relevant gadget. This > feature is planned to be developed for Cassandra as well, but not yet > available. Of course, you can write your own jaggery file to pull data from > Cassandra, in which case, non-availability of support for Cassandra from > UES gadget-gen tool will not be an issue. > > I had an offline chat with Chan and it seems that he will anyway be > writing his own jaggery service to pull data from a datasource since he > seems to be using CEP features embedded inside BAM which does not have the > CEP/UES dashboard (BAM has its own dashboard which does not have the UES > gadget-gen tool described above). So it would definitely make more sense to > go for Cassandra if that offers better performance and has nice rest apis. > > Thanks, > Lasantha > > >> As Dilini said, in real time scenarios not persistence of data is not >> useful always. >> >> Some scenarios can be found the same set of data required for real time >> and non realtime dashboards. >> >> >> Thanks >> >> >> >> >> >> >> >> >> On Fri, Sep 26, 2014 at 11:32 AM, Chan wrote: >> >>> Hi guys, >>> Based on all the replies - what I understand is - we need to use an >>> Event Sink (Output adaptor) to send all data to a RDBMS. Then create a >>> jaggery service to pull data from the RDBMS. And then poll that data from >>> the jaggery service. I am not sure whether we have web sockets support in >>> the jaggery version we are using or whether we support web sockets at all. >>> I am adding @sameeraM and @supunM to confirm this. >>> >>> @Lasantha currently we have written a Data Publisher for BAM. Do we need >>> to use the HTTPInput adaptor to push data to CEP or can we use the BAM Data >>> Publisher we wrote? >>> >>> @Dilini what was the strategy used on the DEBS dashboard? >>> >>> (Jaggery version we are using is 0.9.0.ALPHA4.wso2v3) >>> >>> Cheers~ >>> >>> On Fri, Sep 26, 2014 at 11:25 AM, Lasantha Fernando >>> wrote: >>> >>>> Hi Chan, >>>> >>>> You can't poll data from Cassandra as yet for the real-time dashboard. >>>> Polling from RDBMS databases is supported currently from UES. Also you can >>>> create a web service and poll data from there. I think that was the >>>> approach used by Dilini for DEBS dashboard. You might be able to try >>>> websockets as well which is available in the current development branch of >>>> CEP. Haven't tried it out though. >>>> >>>> @Dilini, can you add more regarding this if possible? >>>> >>>> Thanks, >>>> Lasantha >>>> >>>> On 26 September 2014 11:00, Malith Dhanushka wrote: >>>> >>>>> In realtime analytics , It doesn't poll data from Cassandra. Rather >>>>> you can utilize preferred output adapter[1] to push results of execution >>>>> plans to dashboards. >>>>> >>>>> [1] https://docs.wso2.com/display/CEP310/Output+Event+Adaptors >>>>> >>>>> Thanks, >>>>> >>>>> On Fri, Sep 26, 2014 at 8:35 AM, Chan wrote: >>>>> >>>>>> Hi guys, >>>>>> How do we make realtime dashboards for data. Currently the data is >>>>>> Published to the Event Receiver (thus persisted to BAM). Do we poll >>>>>> cassandra from the dashboard to show realtime da
Re: [Dev] Making Realtime Dashboards
Hi guys, Based on all the replies - what I understand is - we need to use an Event Sink (Output adaptor) to send all data to a RDBMS. Then create a jaggery service to pull data from the RDBMS. And then poll that data from the jaggery service. I am not sure whether we have web sockets support in the jaggery version we are using or whether we support web sockets at all. I am adding @sameeraM and @supunM to confirm this. @Lasantha currently we have written a Data Publisher for BAM. Do we need to use the HTTPInput adaptor to push data to CEP or can we use the BAM Data Publisher we wrote? @Dilini what was the strategy used on the DEBS dashboard? (Jaggery version we are using is 0.9.0.ALPHA4.wso2v3) Cheers~ On Fri, Sep 26, 2014 at 11:25 AM, Lasantha Fernando wrote: > Hi Chan, > > You can't poll data from Cassandra as yet for the real-time dashboard. > Polling from RDBMS databases is supported currently from UES. Also you can > create a web service and poll data from there. I think that was the > approach used by Dilini for DEBS dashboard. You might be able to try > websockets as well which is available in the current development branch of > CEP. Haven't tried it out though. > > @Dilini, can you add more regarding this if possible? > > Thanks, > Lasantha > > On 26 September 2014 11:00, Malith Dhanushka wrote: > >> In realtime analytics , It doesn't poll data from Cassandra. Rather you >> can utilize preferred output adapter[1] to push results of execution plans >> to dashboards. >> >> [1] https://docs.wso2.com/display/CEP310/Output+Event+Adaptors >> >> Thanks, >> >> On Fri, Sep 26, 2014 at 8:35 AM, Chan wrote: >> >>> Hi guys, >>> How do we make realtime dashboards for data. Currently the data is >>> Published to the Event Receiver (thus persisted to BAM). Do we poll >>> cassandra from the dashboard to show realtime dashboards? >>> >>> Cheers~ >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2 Inc >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B94712112165>* >>> * ~Website dulitha.me <http://dulitha.me>* >>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>> *~Github @dulichan <https://github.com/dulichan>* >>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Malith Dhanushka >> Software Engineer - Data Technologies >> *WSO2, Inc. : wso2.com <http://wso2.com/>* >> *Mobile* : +94 716 506 693 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Lasantha Fernando* > Software Engineer - Data Technologies Team > WSO2 Inc. http://wso2.com > > email: lasan...@wso2.com > mobile: (+94) 71 5247551 > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Making Realtime Dashboards
Hi guys, How do we make realtime dashboards for data. Currently the data is Published to the Event Receiver (thus persisted to BAM). Do we poll cassandra from the dashboard to show realtime dashboards? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] License for Python Agent
Hi all, Usually in python files we setup the license as a referral [1]. Shall we follow the same practice for the python agent [2]? [1] - https://github.com/kennethreitz/requests/blob/master/requests/api.py [2] - https://github.com/dulichan/iot-ref-arch/tree/master/python-agent Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Exposing hardware as resources
I thought about that. But if we follow an approach where we have only the sensor id and device id on the URI - the API won't be that clear. This is because HTTP verbs itself doesn't make much sense to hardware. I have seen some RESTful APIs exposing operations as resources [1]. [1] - https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button On Thu, Sep 18, 2014 at 10:25 AM, Paul Fremantle wrote: > The operation shouldn't be in the URI. That is a highly non-RESTful > approach. > > The URI needs to represent the resource only: > > /{deviceid}/{sensor/actuator-id} > > Paul > > On 18 September 2014 05:51, Chan wrote: > >> The idea is to expose a hardware resource as an API. What an API requires >> is a URI and parameters. With this assumption - we can define below URI for >> the device operations API - >> >> {device-id}/{resource}/{operation}?param=param >> >> With this URI scheme- let's look at how an exposed Buzzer looks like - >> >> rpi1/buzzer/buzz?status=ON >> >> Couple of things I am trying to figure out on this is the verbs used as >> the {operation} parameters. For example are we going to call buzzer/buzz >> and buzzer/unbuzz? Or look into an option where we give a status parameter >> to the API resource? >> >> *Implementation* >> On the implementation side - the device will poll an endpoint on the >> server checking if new operations are available to be performed. If >> operations are available it will perform reverse HTTP binding and obtain >> JSON based operations. Below is a sample payload - >> >> { >> "operations": [ >> { >> "URI": "rpi1/buzzer/buzz?status=ON", >> "data": { >> "timeout": "12" >> } >> }, >> { >> "URI": "rpi1/led/switch?status=ON", >> "data": { >> "timeout": "12", >> "color": "RED" >> } >> } >> ] >> } >> >> The device will return a payload like below - >> { >> "feedback": { >> "rpi1/buzzer/buzz?status=ON": { >> "status": 200, >> "data": {} >> }, >> "rpi1/led/switch?status=ON": { >> "status": >> 4 >> 00, >> "data": { >> "error": "Color specified is not available" >> } >> } >> } >> } >> >> WDYT? >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2 Inc >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > Paul Fremantle > CTO and Co-Founder, WSO2 > OASIS WS-RX TC Co-chair, Apache Member > > UK: +44 207 096 0336 > > blog: http://pzf.fremantle.org > twitter.com/pzfreo > p...@wso2.com > > wso2.com Lean Enterprise Middleware > > Disclaimer: This communication may contain privileged or other > confidential information and is intended exclusively for the addressee/s. > If you are not the intended recipient/s, or believe that you may have > received this communication in error, please reply to the sender indicating > that fact and delete the copy you received and in addition, you should not > print, copy, retransmit, disseminate, or otherwise use the information > contained in this communication. Internet communications cannot be > guaranteed to be timely, secure, error or virus-free. The sender does not > accept liability for any errors or omissions. > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Exposing hardware as resources
The idea is to expose a hardware resource as an API. What an API requires is a URI and parameters. With this assumption - we can define below URI for the device operations API - {device-id}/{resource}/{operation}?param=param With this URI scheme- let's look at how an exposed Buzzer looks like - rpi1/buzzer/buzz?status=ON Couple of things I am trying to figure out on this is the verbs used as the {operation} parameters. For example are we going to call buzzer/buzz and buzzer/unbuzz? Or look into an option where we give a status parameter to the API resource? *Implementation* On the implementation side - the device will poll an endpoint on the server checking if new operations are available to be performed. If operations are available it will perform reverse HTTP binding and obtain JSON based operations. Below is a sample payload - { "operations": [ { "URI": "rpi1/buzzer/buzz?status=ON", "data": { "timeout": "12" } }, { "URI": "rpi1/led/switch?status=ON", "data": { "timeout": "12", "color": "RED" } } ] } The device will return a payload like below - { "feedback": { "rpi1/buzzer/buzz?status=ON": { "status": 200, "data": {} }, "rpi1/led/switch?status=ON": { "status": 4 00, "data": { "error": "Color specified is not available" } } } } WDYT? -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] WSO2 Committers += Harshan Liyanage
Congratz Harshan! On Thu, Sep 18, 2014 at 9:36 AM, Chathurika De Silva wrote: > Congratulations Harshan > > On Thu, Sep 18, 2014 at 9:35 AM, Sewwandi Perera > wrote: > >> Congratulations Harshan...!!! :) >> >> On Thu, Sep 18, 2014 at 9:34 AM, Inosh Perera wrote: >> >>> Congrats Harshan!!! :) >>> >>> On Thu, Sep 18, 2014 at 9:33 AM, Niranjan Karunanandham < >>> niran...@wso2.com> wrote: >>> >>>> Congrats Harshan!! >>>> >>>> >>>> On Thu, Sep 18, 2014 at 9:27 AM, Shanmugarajah Sinnathamby < >>>> s...@wso2.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> Its my pleasure to welcome Harshan Liyanage as a WSO2 Committer. >>>>> Harshan has made great contributions to EMM product and other related >>>>> products during the last few months and in recognition of his commitment >>>>> and contributions, he has been voted as a committer. >>>>> >>>>> Harshan, welcome aboard and keep up the good work. >>>>> >>>>> Best Regards, >>>>> Shan >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Shanmugarajah (Shan)* >>>>> Director, Mobile Architecture, >>>>> WSO2, Inc.; http://wso2.com >>>>> Email: s...@wso2.com >>>>> Mobile : +9448260 >>>>> Blog: http://shanfour.blogspot.com >>>>> >>>>> >>>>> >>>>> -- >>>>> *Shanmugarajah (Shan)* >>>>> Director, Mobile Architecture, >>>>> WSO2, Inc.; http://wso2.com >>>>> Email: s...@wso2.com >>>>> Mobile : +9448260 >>>>> Blog: http://shanfour.blogspot.com >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> *Niranjan Karunanandham* >>>> Senior Software Engineer - WSO2 Inc. >>>> WSO2 Inc.: http://www.wso2.com >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Inosh Perera >>> Software Engineer, WSO2 Inc. >>> Tel: 0785293686 >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Sewwandi Perera >> Software Engineer >> >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> mobile: +94-713765098 >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Chathurika Erandi* > Software Engineer, > WSO2 Inc. > > *E-mail:* chathuri...@wso2.com > *Mobile: *+94714 328 612 > *Blog*: chathurikaerandi.blogspot.com > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Change of a component name in EMM develop
Hi Harshan, The component - utils in master [2] has been changed to core in develop [1]. Is there a reason for this? Also if you change the component name - other places that depend on the component need to be changed too. For example /modules/apps/publisher/mobileupload.jag has to be changed -otherwise the app uploading functionality will be broken. Cheers~ [1] - https://github.com/wso2-dev/product-emm/tree/develop/modules/components [2] - https://github.com/wso2-dev/product-emm/tree/master/modules/components -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge pull request for EMM tests-ui-integration module
Hi Dimuthu, Will check it out and merge. Cheers~ On Wed, Sep 10, 2014 at 5:05 PM, Dimuthu De Lanerolle wrote: > > Hi EMM Team, > > Please merge the pull request > https://github.com/wso2-dev/product-emm/pull/2 , which includes addition > of several essential modules required to run UI tests for EMM together with > the tests-ui-integration module which contains UI tests of EMM. > > Regards > > -- > Dimuthu De Lanerolle > Software Engineer > WSO2 Inc. > lean . enterprise . middlewear. > http://wso2.com/ > Tel. : +94 11 2145345 Fax : +94 11 2145300 email : dimut...@wso2.com > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How to write tests for dynamically changing contents?
Hi Madusanka, It all comes down to what you test. IMO there a 3 things to test - - Whether Google+ API is working :) (This would probably be a test and debug so that we can isolate the problem head on) - Check if Google+ comment object is as expected. If JSON -perform a key check. - Create a mock object for comments and use that to perform deeper level of testing (such as adding liking, threaded comments). Cheers~ On Mon, Sep 8, 2014 at 10:00 PM, Madusanka Premaratne wrote: > Hi all, > We are currently developing an ESB connector for Google+ and we need to > write some tests for Google+ comments list. But the comment list changes > dynamically when a user puts a comment. How can we do a unit test for this.? > According to my knowledge, I know that we can use mock concept. Is that > the way we need to proceed.? > > Thank You, > Madusanka > > -- > *Madusanka Premaratne,* > Associate Software Engineer, > WSO2 Inc. | http://wso2.com | lean.enterprise.middleware > Mobile : +94 71 835 70 73 > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Getting a WSO2 GSoC project for University Assignment
Hi Chethiya, We haven't yet decided on the libraries to use for Document viewing. We did some initial PoC on this - @Kasun should be able to shed some light on this matter. I remember that we used a web view to render a file - Android's web view is capable of rendering PDFs. Also it would be best if you can make a review of all the libraries available for this task and list down pros and cons. That way -we can find a way forward. Cheers~ On Mon, Sep 8, 2014 at 1:09 PM, Chethiya Edirisinghe < chethiyaed...@gmail.com> wrote: > Dear Sir, > > I was wondering if you could suggest me any specific PDF (or doc, excel) > support libraries you intend to use on Document Viewer for WSO2 EMM, since > Android currently does not support any native PDF viewing functionality. > > Thanks, > Chethiya Edirisinghe > > On Mon, Sep 8, 2014 at 6:30 AM, Samisa Abeysinghe wrote: > >> Dulitha, can you please help? >> >> Thanks, >> Samisa... >> >> >> Samisa Abeysinghe >> >> Vice President Delivery >> >> WSO2 Inc. >> http://wso2.com >> >> >> >> On Sun, Sep 7, 2014 at 6:03 PM, Chethiya Edirisinghe < >> chethiyaed...@gmail.com> wrote: >> >>> Dear Sir, >>> >>> I've been trying to contact Mr. Shanmugarajah but unfortunately I >>> haven't heard from him yet. Could you, if possible, refer me to another >>> developer who is currently involved in the project. >>> >>> Thanks, >>> Chethiya Edirisinghe. >>> >>> >>> On Mon, Jun 9, 2014 at 12:51 AM, Samisa Abeysinghe >>> wrote: >>> >>>> Sure, he can do this project >>>> >>>> Thanks, >>>> Samisa... >>>> >>>> >>>> Samisa Abeysinghe >>>> >>>> Vice President Delivery >>>> >>>> WSO2 Inc. >>>> http://wso2.com >>>> >>>> >>>> >>>> On Sun, Jun 8, 2014 at 10:23 PM, Chethiya Edirisinghe < >>>> chethiyaed...@gmail.com> wrote: >>>> >>>>> Dear Sir, >>>>> >>>>> As my friend Madhawa said, I would be grateful if you'd give me the >>>>> green light on the above mentioned project. >>>>> I am hoping to contact Mr. Sinnathamby Shanmugarajah who was the >>>>> assigned mentor for the project and also looking forward for your help and >>>>> advice along the way. >>>>> >>>>> Thanks, >>>>> Chethiya Edirisinghe, >>>>> Undergraduate, >>>>> Dept. of Computer Science and Engineering, >>>>> University of Moratuwa. >>>>> >>>>> >>>> >>> >> > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Datasources view in Storage Server give null pointer
alDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49) at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: org.apache.jasper.JasperException: java.lang.NullPointerException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.ui.JspServlet.service(JspServlet.java:155) at org.wso2.carbon.ui.TilesJspServlet.service(TilesJspServlet.java:80) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37) at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544) at org.eclipse.equinox.http.servlet.internal.RequestDispatcherAdaptor.include(RequestDispatcherAdaptor.java:37) at org.eclipse.equinox.http.helper.ContextPathServletAdaptor$RequestDispatcherAdaptor.include(ContextPathServletAdaptor.java:369) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1015) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:689) at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98) ... 70 more Caused by: java.lang.NullPointerException at org.apache.jsp.ndatasource.newdatasource_jsp._jspService(org.apache.jsp.ndatasource.newdatasource_jsp:226) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) ... 92 more Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Develo
[Dev] Fwd: Question about Jaggery with EMM
Hi Garcia, In the jaggery app - you need to change jaggery.conf - "logLevel": "debug" Afterwards it will show the debug logs. If it doesn't show any debug logs - can you try to create a plain jaggery app inside the jaggeryapps directory with a jaggery.conf file and see if log level works. I tested it locally - and it's working. PS:- I copied the WSO2 dev list as well. Cheers~ -- Forwarded message -- From: Dulitha Wijewantha Date: Sun, Aug 24, 2014 at 10:51 PM Subject: Fwd: Question about Jaggery with EMM To: Dulitha Wijewantha -- Forwarded message -- From: Gabriel Garcia Date: Sun, Aug 24, 2014 at 11:51 AM Subject: Question about Jaggery with EMM To: dulit...@gmail.com Hi Dulitha : I saw your mail in github while i was looking for an answer about how to see a debug log from the wso2 emm jaggery app. I've modified the source code of the emm in tthe server and added some "log.debug(" lines to see what is happening. I've modified the jaggery.conf file to enable debug, but i can see any debug log in the wso2carbon.log file. May you give me a clue about whati'm doing wrong ? Thanks. Gabriel Garcia. -- *Dulitha R. Wijewantha** Software Engineer* Tel: 94112793140 | Mobile: 94712112165 dulit...@gmail.com | http://dulithawijewantha.com -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What does 'Create Datasource' do in WSO2 SS
Thanks guys. Trying to expose a Datasource via DSS. Thought I could copy the content generated for datasources from that file. Would be nice to have a feature in the UI that shows the added datasource in SS. Cheers~ On Fri, Aug 22, 2014 at 11:50 PM, Bhathiya Jayasekara wrote: > Hi Chan, > > Darshana is correct. The datasources you create in UI is stored > in /_system/config/repository/components/org.wso2.carbon.ndatasource/location > in registry. It does the same thing what Datasource UI [1] does. > > [1] https://docs.wso2.com/display/SS110/RDBMS+Datasources > > Thanks, > Bhathiya > > > On Sat, Aug 23, 2014 at 5:50 AM, Darshana Gunawardana > wrote: > >> Hi Chan, >> >> As my understanding, "create datasource" is for create same kind of data >> source we have in master-datasources.xml. But the datasources created >> using UI will not change the file, but it will persist on registry. Other >> than where configs picked-up or persist, it have same functionality as >> datasources defined in master-datasource.xml. May be you will find, step >> 5 in [1] as useful. >> >> [1] >> http://wso2.com/library/articles/2011/09/wso2-unveils-its-relational-storage-solutions-wso2-stratoslive/ >> >> Thanks, >> >> >> >> On Fri, Aug 22, 2014 at 4:10 PM, Chan wrote: >> >>> Hi guys, >>> I tried to find what it means in the docs [1] but it's not clear. What >>> does Create Datasource mean? Does it create an entry in the >>> master-datasources.xml? >>> >>> [image: Inline image 1] >>> >>> [1] - https://docs.wso2.com/display/SS110/Creating+Databases >>> >>> Cheers~ >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2 Inc >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B94712112165>* >>> * ~Website dulitha.me <http://dulitha.me>* >>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>> *~Github @dulichan <https://github.com/dulichan>* >>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Regards, >> >> >> * Darshana Gunawardana *Software Engineer >> WSO2 Inc.; http://wso2.com >> >> * E-mail: darsh...@wso2.com * >> *Mobile: +94718566859 <%2B94718566859> *Lean . Enterprise . Middleware >> > > > > -- > *Bhathiya Jayasekara* > *Software Engineer,* > *WSO2 inc., http://wso2.com <http://wso2.com>* > > *Phone: +94715478185 <%2B94715478185>* > *LinkedIn: http://www.linkedin.com/in/bhathiyaj > <http://www.linkedin.com/in/bhathiyaj>* > *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* > *Blog: http://movingaheadblog.blogspot.com > <http://movingaheadblog.blogspot.com/>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] What does 'Create Datasource' do in WSO2 SS
Hi guys, I tried to find what it means in the docs [1] but it's not clear. What does Create Datasource mean? Does it create an entry in the master-datasources.xml? [image: Inline image 1] [1] - https://docs.wso2.com/display/SS110/Creating+Databases Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Jaggery - Extracting an uploaded .zip file
Yep. What ever product that uses the jaggery feature has this problem. This was discussed before as well [1] [1] - [Architecture] Jaggery unzips all folders? Cheers~ On Tue, Jul 29, 2014 at 9:15 PM, Udara Rathnayake wrote: > Hi Dakshika, > > I noticed the same behavior in latest ES-1.2.0-SNAPSHOT. You can't keep > zip files within jaggeryapps/ dir. > > > > On Tue, Jul 29, 2014 at 2:49 PM, Dakshika Jayathilaka > wrote: > >> @udataR: I have tested with jaggery server(standalone pack >> jaggery-0.9.0-SNAPSHOT) and seems you can keep Zip files inside app >> container without auto extraction. >> >> But it will auto extract on AS. :) >> >> *Dakshika Jayathilaka* >> Software Engineer >> WSO2, Inc. >> lean.enterprise.middleware >> 0771100911 >> >> >> On Tue, Jul 29, 2014 at 9:06 AM, Dilan Udara Ariyaratne >> wrote: >> >>> Hi Buddhima, >>> >>> Once you have created your jaggery app (let's name the containing folder >>> as ), select all the files and folders inside >>> >>> and compress the files into a .zip file which you can upload to the >>> Application server under this path: >>> Home > Manage > Applications > Add > Jaggery >>> >>> If you are simply using the jaggery server to get this done, copy >>> with its content to /apps >>> and start the server. >>> Now, you should be able to access your application using the following >>> url: >>> http://localhost:9763/ by default. >>> >>> Cheers... >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> *Dilan U. Ariyaratne* >>> Software Engineer >>> WSO2 Inc. <http://wso2.com/> >>> Mobile: +94775149066 >>> lean . enterprise . middleware >>> >>> >>> On Tue, Jul 29, 2014 at 2:17 PM, Udara Rathnayake >>> wrote: >>> >>>> Hi Buddhima, >>>> >>>> If you upload a zip file to any location within >>>> /repository/deployment/server/jaggeryapps/ , server will >>>> treat that file as a webapp and unzip it for you. >>>> >>>> You can try this behavior by copying a zip file to a directory inside >>>> your webapp. But I'm not sure whether this behaviour is correct or not. >>>> File API[1] might help you further. >>>> >>>> [1] http://jaggeryjs.org/documentation.jag?api=file >>>> >>>> Regards, >>>> UdaraR >>>> >>>> >>>> On Tue, Jul 29, 2014 at 2:05 PM, Buddhima Wijeweera >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm currently developing a Jaggery app, which user can upload a zip >>>>> file. After uploading the zip file, Jaggery app should extract that zip >>>>> file & put the content in to a folder (at server-side). >>>>> >>>>> So I would like to know how can I do this or is there any place where >>>>> this is already implemented. >>>>> >>>>> Thank You! >>>>> >>>>> -- >>>>> Buddhima Wijeweera >>>>> Software Engineer; WSO2 Inc.; http://wso2.com , >>>>> >>>>> Email: buddh...@wso2.com >>>>> Blog: https://buddhimawijeweera.wordpress.com >>>>> GitHub Profile: https://github.com/Buddhima >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Udara Rathnayake* >>>> Software Engineer >>>> WSO2 Inc. : http://wso2.com >>>> >>>> Mobile : +94 772207239 >>>> Twitter : http://twitter.com/udarakr >>>> Blog: http://udarakr.blogspot.com >>>> >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > > -- > *Udara Rathnayake* > Software Engineer > WSO2 Inc. : http://wso2.com > > Mobile : +94 772207239 > Twitter : http://twitter.com/udarakr > Blog: http://udarakr.blogspot.com > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Android agent registration issue
Hi Islam, I have commented on the StackOverflow issue. Also please note that you can run the EMM server without any configurations and enroll an android device. As for configurations to host on an IP - please do change the sso idp config file as well [1] [1] - https://docs.wso2.com/display/EMM110/General+Server+Configurations (step 2) Cheers~ On Mon, Jul 7, 2014 at 4:57 AM, Mir Islam wrote: > Hi everyone, just started to look into wso2, specifically the emm server. > Got a question regarding installation and registration of device. If this > not the right list, please let me know where I can post. I have posted on > StackOverFlow as well. > http://stackoverflow.com/questions/24600830/wso2-android-agent-getting-404-from-emm > > Basically the agent is getting a 404 error when agent is POSTing to > /emm/api/devices/clientkey URL. I am wondering if I have configured > something wrong on server side. I have tried with latest GIT src and built > the agent. > > Thanks > Mir > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2 Inc Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] VPP implementation for EMM
Ola folks, Last week Shan,Dilan and me had a chat about finishing VPP feature before proceeding onto any IoT related work. Shall will iron out a plan today (possibly in the evening) and finish the feature with in this week? @Shan also are we going to support VPP App Licenses? (I believe we better implement app licenses in one shot for this feature and be done with it :) ) @Dilshan can you describe what need to be implemented in iOS MDM layer to support this? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] EMM Unit test reviewing
Attendee:- Manuranga, Dulitha, Dilan, Krishantha, Kasun, Inosh, Krishanthi, Harshan, Dilshan - Improve the tier up, tier down functions per test case in jaggery test - Integrate to the build (jaggery-test) and Test Automation Framework - Throw errors rather than handling them - Coverage for now can be through a GDoc - Use the test automation suites feature (use default user available in testing) - Mocking ability for database layer Below 2 issues needs to be fixed in jaggery-test - Handle issue in high number of test case execution - Handle issue in error text displaying in UI We will have to migrate to 4.3.0 since our dependencies are in 4.3.0 Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Stratos root app in products
Hi Guys, I found that stratos root app is copied in bin.xml in some products [1]. Do we need to have a stratos root app in EMM as well? Cheers~ [1] - https://github.com/wso2/product-bps/tree/master/modules/distribution/lib/home -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] MQTT Adaptor for CEP
Hi Suho, After looking into the use case - I believe we don't need MQTT adaptors. CEP needs to contact the broker with AMQP protocol and MB needs to communicate with Devices in MQTT protocol. Do we have AMQP adaptor in CEP? Cheers~ On Mon, Jun 23, 2014 at 2:47 PM, Sriskandarajah Suhothayan wrote: > > Hi folks > > CEP team is about to add MQTT Adaptor for the next release. > Please share the code location of the MQTT Client codes you have written > So that we can generalise them if necessary, and integrate them to CEP. > > > Thanks > Suho > > > -- > > *S. Suhothayan * > Technical Lead & Team Lead of WSO2 Complex Event Processor > *WSO2 Inc. *http://wso2.com > * <http://wso2.com/>* > lean . enterprise . middleware > > > *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: > http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: > http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: > http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [EMM] Adding Oracle database support to EMM
IM we need to add an object to application scope that has the right db.json file. This json should be a combination of generic queries and queries for the selected database. On Thursday, June 19, 2014, Harshan Liyanage wrote: > Hi, > > We could categorize the sql queries under each database type in db.js > file. IMO we need a mechanism to detect the database type (mysql, h2, > oracle etc) & return appropriate sql query based on the db type. > > WDYT? > > Thanks, > > Best Regards, > > Lakshitha Harshan > Software Engineer > Mobile: *+94724423048* > Email: hars...@wso2.com > > Blog : http://harshanliyanage.blogspot.com/ > *WSO2, Inc. :** wso2.com <http://wso2.com/>* > lean.enterprise.middleware. > > > On Thu, Jun 19, 2014 at 10:51 AM, Inosh Perera > wrote: > >> Hi all, >> I was looking into adding Oracle database support to EMM and wrote the >> scripts to create tables in Oracle. Since auto increment and is not >> available in Oracle, I wrote sequences and triggers. Afterwards, I started >> checking the SQL queries, that we use in the back end with Oracle, and came >> across 2 issues, >> >> 1. Query - SELECT * FROM notifications WHERE device_id = ? ORDER BY id >> DESC LIMIT 1 >> >> LIMIT is not supported by Oracle- They use ROWNUM for this purpose. Since >> we have one db.js file for all the databases that contain all the db >> queries, how should this be handled custom queries? >> >> >> 2. Query- Notifications - select query 12 >> >> select * from notifications where `device_id`=? and `feature_code`= ? and >> `status`='R' and `id` = (select MAX(`id`) from notifications where >> `device_id`=? and `feature_code`= ? and `status`='R') ORDER BY sent_date >> ASC", >> >> This query contains a special character "`" , for example `device_id` >> that is not supported by Oracle. I will modify the query and use since its >> not a big issue. >> >> Also mdm_report.js file has some select queries written inside it, and >> those must be moved to db.js >> The rest of the queries in db.js is running with Oracle. I will do an >> integration test, once server start up is successful with oracle. >> >> Thank you, >> Inosh >> >> -- >> Inosh Perera >> Software Engineer, WSO2 Inc. >> Tel: 0785293686 >> > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] EMM Android Agent Improvements
>>> >>>>>>>> Hi All, >>>>>>>> >>>>>>>> I'm in the process of improving the EMM Android Agent and following >>>>>>>> are the improvement that I'm currently focusing on, >>>>>>>> >>>>>>>> 1. Camera disable during policy apply- jira- >>>>>>>> https://wso2.org/jira/browse/EMM-648 >>>>>>>> >>>>>>>> To handle this, we need to kill the camera process if it's >>>>>>>> running, before executing camera lock via the device administrator. The >>>>>>>> reason is, android OS does not allow locking while user's using the >>>>>>>> camera >>>>>>>> since it distracts the user experience. So before executing it, we >>>>>>>> need to >>>>>>>> kill the camera process. >>>>>>>> >>>>>>>> 2. After Login, pending notification must be called- currently >>>>>>>> takes time for first one to start >>>>>>>> >>>>>>>>Currently our EMM Agent waits for a server push >>>>>>>> notification/local push to be triggered to get the pending operation >>>>>>>> list >>>>>>>> from the server for the first time after registration. So to make it a >>>>>>>> bit >>>>>>>> faster, we are going to execute a pending operation call on register >>>>>>>> success event. >>>>>>>> >>>>>>>> 3. Handle notifications so that it doesn't send unnecessary network >>>>>>>> calls >>>>>>>> >>>>>>>>(Ex: If the user sets 2 second notification interval, we do not >>>>>>>> need to send continuous network calls if the first call has not given >>>>>>>> the >>>>>>>> response) >>>>>>>> >>>>>>>> Please share your ideas on this. >>>>>>>> >>>>>>>> Thanks >>>>>>>> -- >>>>>>>> Kasun Dananjaya Delgolla >>>>>>>> >>>>>>>> Software Engineer >>>>>>>> WSO2 Inc.; http://wso2.com >>>>>>>> lean.enterprise.middleware >>>>>>>> Tel: +94 11 214 5345 >>>>>>>> Fax: +94 11 2145300 >>>>>>>> Mob: + 94 777 997 850 >>>>>>>> Blog: http://kddcodingparadise.blogspot.com >>>>>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya >>>>>>>> <http://lk.linkedin.com/in/kasundananjaya>* >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> *Niranjan Karunanandham* >>>>>> Senior Software Engineer - WSO2 Inc. >>>>>> WSO2 Inc.: http://www.wso2.com >>>>>> M: +94 777 749 661 >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Kasun Dananjaya Delgolla >>>>> >>>>> Software Engineer >>>>> WSO2 Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> Tel: +94 11 214 5345 >>>>> Fax: +94 11 2145300 >>>>> Mob: + 94 777 997 850 >>>>> Blog: http://kddcodingparadise.blogspot.com >>>>> Linkedin: *http://lk.linkedin.com/in/kasundananjaya >>>>> <http://lk.linkedin.com/in/kasundananjaya>* >>>>> >>>> >>>> >>> >>> >>> -- >>> >>> -- >>> >>> *Sameera Perera* >>> Director of Engineering >>> gtalk: samee...@wso2.com >>> Tel : 94 11 214 5345 >>> Fax :94 11 2145300 >>> *WSO2, Inc.* <http://wso2.com/> >>> lean.enterprise.middleware >>> >>> >>> >> > > > -- > > *Niranjan Karunanandham* > Senior Software Engineer - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > M: +94 777 749 661 > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Proper Guide on RESTful API designing
I think we really need to push this and get a guideline of best practices for REST APIs. Bunch of products have REST APIs built to the core and I think we had some discussions around focusing API Manger on API Designing as well. +1 to have a guideline of best practices for all our products. Cheers~ On Wed, Jun 11, 2014 at 8:45 PM, Dakshika Jayathilaka wrote: > Hi, > > Do we have $subject. Are we following any specific set of guidance or Is > that ok to go with general best practices. ex: [1 > <http://www.amazon.com/gp/product/1449310508/>] > > [1] http://www.amazon.com/gp/product/1449310508/ > > Regards, > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Carbon 5 and REST
Hi Kishanthan/Sameera, I have a question about C5. Will JAX-RS be the default implementation for C5 APIs? For example can we call Admin services with RESTfully? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Introducing JSR-223 into Jaggery along with Nashorn Support
to test the server concurrency. Will do >>>> a proper benchmarking round after improving further. >>>> >>>> *Command Line Tool* >>>> >>>>- In order to use the cmd tool, you need to first set the >>>>environment variable JAGGERY_HOME pointing to your unzipped Jaggery >>>>distribution >>>> - export >>>> >>>> JAGGERY_HOME=/Users/ruchira/binaries/jaggery/1.0.0/m0/jaggery-0.9.0-SNAPSHOT >>>>- Then download *.jar at [8] >>>>- Execute the downloaded *.jar using >>>> - java -jar >>>> org.jaggeryjs.cmd-0.9.0-SNAPSHOT-jar-with-dependencies.jar >>>> - You can require the modules >>>> - relative to your working directory. e.g. require('./foo') if >>>> it the module foo is at /foo.js or /foo/ >>>> - If you have a jaggery-modules directory working direcotry as >>>> /jaggery-modules, then you can require any module exists there >>>> using >>>> require('foo') etc. >>>> >>>> Current implementation is just the core to get started and demonstrate >>>> what I have mentioned above. We have plans along the line to write >>>> a comprehensive Jaggery Package Manager, a maven plugin to execute unit >>>> tests etc. >>>> >>>> [1] https://github.com/ruchiraw/jaggery >>>> [2] >>>> https://github.com/ruchiraw/sandbox/raw/master/jaggery/1.0.0/m0/jaggery-0.9.0-SNAPSHOT.zip >>>> [3] https://github.com/splinter/jaggery-pipe >>>> [4] >>>> https://github.com/ruchiraw/jaggery/blob/4560a303f809d532ad041125c1a29ecc2eb9df55/apps/tomgery/jaggery.conf >>>> [5] >>>> https://github.com/ruchiraw/jaggery/blob/master/apps/demo5/WEB-INF/web.xml >>>> [6] https://github.com/vladimirvivien/clamshell-cli >>>> [7] >>>> https://wiki.openjdk.java.net/display/Nashorn/Using+Rhino+JSR-223+engine+with+JDK8 >>>> [8] >>>> https://github.com/ruchiraw/sandbox/raw/master/jaggery/1.0.0/m0/org.jaggeryjs.cmd-0.9.0-SNAPSHOT-jar-with-dependencies.jar >>>> >>>> >>>> -- >>>> >>>> *Ruchira Wageesha**Associate Technical Lead* >>>> *WSO2 Inc. - lean . enterprise . middleware | wso2.com >>>> <http://wso2.com>* >>>> >>>> *email: ruch...@wso2.com , blog: >>>> ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, >>>> mobile: +94 77 5493444 <%2B94%2077%205493444>* >>>> >>>> ___ >>>> Architecture mailing list >>>> architect...@wso2.org >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> Cheers, >>> Madhuka Udantha >>> http://madhukaudantha.blogspot.com >>> >>> ___ >>> Architecture mailing list >>> architect...@wso2.org >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> >> *Ruchira Wageesha**Associate Technical Lead* >> *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>* >> >> *email: ruch...@wso2.com , blog: >> ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, >> mobile: +94 77 5493444 <%2B94%2077%205493444>* >> >> ___ >> Architecture mailing list >> architect...@wso2.org >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > Cheers, > Madhuka Udantha > http://madhukaudantha.blogspot.com > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Invalid Authorization Grant on IS 5.0.0 with authorization code grant type
Thanks Darshana. It works when sending the same redirect_uri. On Thu, May 29, 2014 at 6:58 PM, Darshana Gunawardana wrote: > Hi Chan, > > Between two requests, redirect_uri got changed.. Can you please try > calling token endpoint using the same redirect_uri used to get > authorization code.. > > Thanks, > > > On Fri, May 30, 2014 at 4:49 AM, Chan wrote: > >> Hi Johann/Darshana, >> I am trying to test a sample jaggery app with authorization code grant >> type OAuth. I am testing this on IS 5.0.0 pack. I added a Service Provider >> and enabled OAuth 2.0 authenticator for it. >> >> Below is the first call I make to the IS - >> >> *https://localhost:9443/oauth2/authorize?response_type=code&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&redirect_uri=https://localhost:9444/coffee_shop/auth >> <https://localhost:9443/oauth2/authorize?response_type=code&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&redirect_uri=https://localhost:9444/coffee_shop/auth>* >> >> >> I get a token to the https://localhost:9444/coffee_shop/auth. I get a >> query string of '*code=fec75d85ce706e8a276519fc63f7aa*'. I then send >> another request to the token end point like below - >> >> *https://localhost:9443/oauth2/token?grant_type=authorization_code&code=fec75d85ce706e8a276519fc63f7aa&redirect_uri=https://localhost:9444/coffee_shop/bam.jag&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&client_secret=TGD7VTCPaE9cfNpM19fm9un2J3Ea >> <https://localhost:9443/oauth2/token?grant_type=authorization_code&code=fec75d85ce706e8a276519fc63f7aa&redirect_uri=https://localhost:9444/coffee_shop/bam.jag&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&client_secret=TGD7VTCPaE9cfNpM19fm9un2J3Ea>* >> >> >> I am getting >> >> { >> >>- error: "invalid_grant", >>- error_description: "Provided Authorization Grant is invalid." >> >> } >> >> What could the problem be? >> >> Cheers~ >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > Regards, > > > *Darshana Gunawardana *Software Engineer > WSO2 Inc.; http://wso2.com > > * E-mail: darsh...@wso2.com * > *Mobile: +94718566859 <%2B94718566859> *Lean . Enterprise . Middleware > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] API versions in EMM
Yeah that makes sense. Our API version should be 1.1.0. Cheers~ On Thu, May 29, 2014 at 11:29 PM, Dilshan Edirisuriya wrote: > Hi, > > EMM current release is 1.1.0 and the API version we have put it as 1.0.0. > What is the correct version we have to use? When there are multiple > releases it will be hard to track unless we properly document it. Also our > APIs are embedded in the EMM app itself as well. So why not follow the same > version number there as the product version? WDYT? > > Regards, > > Dilshan > > -- > Dilshan Edirisuriya > Senior Software Engineer - WSO2 > Mob: + 94 777878905 > http://wso2.com/ > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Invalid Authorization Grant on IS 5.0.0 with authorization code grant type
Hi Johann/Darshana, I am trying to test a sample jaggery app with authorization code grant type OAuth. I am testing this on IS 5.0.0 pack. I added a Service Provider and enabled OAuth 2.0 authenticator for it. Below is the first call I make to the IS - *https://localhost:9443/oauth2/authorize?response_type=code&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&redirect_uri=https://localhost:9444/coffee_shop/auth <https://localhost:9443/oauth2/authorize?response_type=code&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&redirect_uri=https://localhost:9444/coffee_shop/auth>* I get a token to the https://localhost:9444/coffee_shop/auth. I get a query string of '*code=fec75d85ce706e8a276519fc63f7aa*'. I then send another request to the token end point like below - *https://localhost:9443/oauth2/token?grant_type=authorization_code&code=fec75d85ce706e8a276519fc63f7aa&redirect_uri=https://localhost:9444/coffee_shop/bam.jag&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&client_secret=TGD7VTCPaE9cfNpM19fm9un2J3Ea <https://localhost:9443/oauth2/token?grant_type=authorization_code&code=fec75d85ce706e8a276519fc63f7aa&redirect_uri=https://localhost:9444/coffee_shop/bam.jag&client_id=u8iH1rbGrygWsXPDIA_0wlpGt7Aa&client_secret=TGD7VTCPaE9cfNpM19fm9un2J3Ea>* I am getting { - error: "invalid_grant", - error_description: "Provided Authorization Grant is invalid." } What could the problem be? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165 <%2B94712112165>* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Cannot find function address in object - EMM server startup issue
It is merged. I have included the changed carbon module in our pack copying it via Bin.xml. I have gotten it merged it to jaggery master. For us to get it from jaggery we have to get it released. Did someone removed the carbon module from the pack? On Sunday, May 25, 2014, Dilshan Edirisuriya wrote: > Hi Chan, > > I get the following error in emm code base. Chan I believe you have not > merged carbon.server.address to the working code base. > > [2014-05-26 01:07:40,335] ERROR > {org.jaggeryjs.jaggery.core.manager.WebAppManager} - > org.mozilla.javascript.EcmaError: TypeError: Cannot find function address > in obj > org.jaggeryjs.scriptengine.exceptions.ScriptException: > org.mozilla.javascript.EcmaError: TypeError: Cannot find function address > in object [object Object]. (/emm/modu > at > org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) > at > org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) > at > org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:447) > at > org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339) > at > org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) > at > org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) > at > org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2.carbon.apimgt.interceptor.valve.APIManagerInterceptorValve.invoke(APIManagerInterceptorValve.java:81) > at > org.wso2
Re: [Dev] Required changes in EMM Android Agent
need to include a check box. We need to decide the screen where we have to >>> add this. >>> >>> If we are going to implement this, since there are many logical >>> implementation based on the license agreement in Android Agent, we have to >>> do a major change in Android Agent. >>> >>> Please let me know, if I have missed any point. >>> >>> Others opinions are welcome. Please give your comments to proceed on >>> this. >>> >>> Thank you. >>> >>> -- >>> Best Regards, >>> Krishanthi Bhagya Samarasinghe >>> Senior Software engineer >>> >>> Mobile: +94 716028280 >>> >>> >> >> >> -- >> Kasun Dananjaya Delgolla >> >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> Tel: +94 11 214 5345 >> Fax: +94 11 2145300 >> Mob: + 94 777 997 850 >> Blog: http://kddcodingparadise.blogspot.com >> Linkedin: *http://lk.linkedin.com/in/kasundananjaya >> <http://lk.linkedin.com/in/kasundananjaya>* >> > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Please merge PR to jaggery-extension
Hi Ruchira, I have refactored the parameters. Please take a look at the same PR. I'll keep a note to follow the lower camelcase next time. Cheers~ On Tue, May 13, 2014 at 1:01 AM, Ruchira Wageesha wrote: > Hi Chan, > > Could you please redo the pull request by updating new_password, > old_password to lower camelcase. That is the naming convention that we > follow. This is just to make it consistent. > > /Ruchira > > > On Mon, May 12, 2014 at 10:32 PM, Chan wrote: > >> https://github.com/wso2/jaggery-extensions/pull/5 >> >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > > *Ruchira Wageesha**Associate Technical Lead* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>* > > *email: ruch...@wso2.com , blog: > ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, > mobile: +94 77 5493444 <%2B94%2077%205493444>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please respond to Github issue on android client
Hi Kasun, Please look into https://github.com/wso2/MDM-Android-Agent/issues/6 . Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Please merge PR to jaggery-extension
https://github.com/wso2/jaggery-extensions/pull/5 Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Sugarcane release
Where is jaggery-test? Can't seem to find it.. On Mon, May 12, 2014 at 8:41 PM, madhuka udantha wrote: > Hi, > > It is 'jaggery-test' and you can added it jaggery-extension. > If we have any other repo/org is ready for jaggery modules, you can add it > there and get release. > > [1] https://github.com/wso2/jaggery-extensions > > > On Mon, May 12, 2014 at 6:24 PM, Sagara Gunathunga wrote: > >> >> >> >> On Mon, May 12, 2014 at 6:14 PM, Chan wrote: >> >>> Hi folks, >>> We are using sugarcane[1] testing framework for unit tests. It's >>> currently not released. Can we please get it released and available in >>> nexus repo. >>> >> >> Guys, >> >> What is "sugarcane" ? what happen to "JaggeryTest" module that we >> agreed to develop. >> >> >>> >>> Cheers~ >>> >>> [1] - https://github.com/Madhuka/sugarcane >>> >> >> I can't find any licence on above repo also not sure how we (WSO2) can >> release a product hosted on personal repo. >> >> Thanks ! >> >> >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2Mobile >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B94712112165>* >>> * ~Website dulitha.me <http://dulitha.me>* >>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>> *~Github @dulichan <https://github.com/dulichan>* >>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Sagara Gunathunga >> >> Senior Technical Lead; WSO2, Inc.; http://wso2.com >> V.P Apache Web Services;http://ws.apache.org/ >> Linkedin; http://www.linkedin.com/in/ssagara >> Blog ; http://ssagara.blogspot.com >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Cheers, > Madhuka Udantha > http://madhukaudantha.blogspot.com > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Sugarcane release
Hi folks, We are using sugarcane[1] testing framework for unit tests. It's currently not released. Can we please get it released and available in nexus repo. Cheers~ [1] - https://github.com/Madhuka/sugarcane -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Change password for users in EMM
Hi Dilan, For the new UI that you are building -can we have change password feature as well. This is something necessary since our password is randomly generated. Since you are currently building the UI separately - can you also put it in a separate Git repo. Then everyone can contribute to it. Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Not obtaining the server port depending on proxy -Enterprise Store
On Mon, May 5, 2014 at 8:43 AM, Ruchira Wageesha wrote: > I don't thing you need to worry about branches, master branch always > accepts PRs. If you can't make the pull request for master due to some > reason, just create a github issue and attach the patch. > Will do. > > /Ruchira > > > On Mon, May 5, 2014 at 8:07 AM, Chan wrote: > >> Hi folks, >> In the app.js in store [1] - the ports 9763 and 9443 are hardcoded. The >> ports is determined by variety of factors including proxies if used. I did >> a contribution to jaggery few months back on this [2] which can be used to >> get the current address of the server. That uses several System properties >> and takes in to account the proxy setup as well. Hope you guys take this in >> to account. >> >> Note:- I could have sent a PR on this but I don't know what branch >> accepts PR. >> >> Cheers~ >> >> [1] - >> https://github.com/wso2/enterprise-store/blob/master/modules/apps/store/config/app.js#L12 >> [2] - >> https://github.com/wso2/jaggery-extensions/blob/master/carbon/module/scripts/server/server.js#L93 >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > > *Ruchira Wageesha**Associate Technical Lead* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>* > > *email: ruch...@wso2.com , blog: > ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, > mobile: +94 77 5493444 <%2B94%2077%205493444>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Testing startup scripts for EMM in jaggery-test
On Mon, May 5, 2014 at 8:49 AM, Ruchira Wageesha wrote: > > > > On Mon, May 5, 2014 at 7:58 AM, Chan wrote: > >> Hi folks, >> I am trying to test the hostname and ports using jaggery-test for EMM >> startup scripts. Below is the code I would like to test - >> >> var conf = carbon.server.loadConfig('carbon.xml'); >> var offset = conf.*::['Ports'].*::['Offset'].text(); >> var hostName = conf.*::['HostName'].text().toString(); >> >> How do we test such scenarios regarding carbon.xml files? For example >> whether changes to the hostname field is carbon.xml is reflected. >> > What stops you from asserting the required values? Or it might not exactly > clear what you want to do. > I may have not been clear. Let me tell it again - how do we change the carbon.xml Hostname dynamically for test case basis? > >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Ruchira Wageesha**Associate Technical Lead* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>* > > *email: ruch...@wso2.com , blog: > ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, > mobile: +94 77 5493444 <%2B94%2077%205493444>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Not obtaining the server port depending on proxy -Enterprise Store
Hi folks, In the app.js in store [1] - the ports 9763 and 9443 are hardcoded. The ports is determined by variety of factors including proxies if used. I did a contribution to jaggery few months back on this [2] which can be used to get the current address of the server. That uses several System properties and takes in to account the proxy setup as well. Hope you guys take this in to account. Note:- I could have sent a PR on this but I don't know what branch accepts PR. Cheers~ [1] - https://github.com/wso2/enterprise-store/blob/master/modules/apps/store/config/app.js#L12 [2] - https://github.com/wso2/jaggery-extensions/blob/master/carbon/module/scripts/server/server.js#L93 -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Testing startup scripts for EMM in jaggery-test
Hi folks, I am trying to test the hostname and ports using jaggery-test for EMM startup scripts. Below is the code I would like to test - var conf = carbon.server.loadConfig('carbon.xml'); var offset = conf.*::['Ports'].*::['Offset'].text(); var hostName = conf.*::['HostName'].text().toString(); How do we test such scenarios regarding carbon.xml files? For example whether changes to the hostname field is carbon.xml is reflected. Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Meeting Notes on EMM Carbon
Awesome Gayan. We'll merge it tomorrow to the develop branch. Cheers~ On Sun, May 4, 2014 at 12:38 AM, Gayan Gunawardana wrote: > Hi All, > > EMM server ready to go [1]. > > [1]https://github.com/wso2-dev/product-emm/tree/feature/apim-integration > > > On Thu, May 1, 2014 at 7:41 PM, Gayan Gunawardana wrote: > >> Hi Kishanthan, >> >> After going through some points you have given during the discussion(e.g >> kernel patches) we could be able to resolve most of intermittent issues. >> Further I will look at the link you provided for default profiles. Thanks >> for your great help to make EMM server stable. >> >> >> >> >> On Wed, Apr 30, 2014 at 5:58 PM, Kishanthan Thangarajah < >> kishant...@wso2.com> wrote: >> >>> carbon.core and carbon.runtime features are by default available with >>> the "default" profile, so you don't have to explicitly define them with >>> your product's p2 repo definition. But if you are going to use >>> multiple-profiles in your product, then you will have to define them in the >>> p2 repo creation phase and then add them to your specific profile. >>> >>> Refer this for example which does not use multi-profile and use only the >>> default profile : >>> https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/elb/2.1.0/modules/p2-profile/pom.xml >>> >>> >>> On Tue, Apr 29, 2014 at 11:15 PM, Gayan Gunawardana wrote: >>> >>>> Hi Kishanthan, >>>> >>>> As per the discussion we had during the meeting can you specifically >>>> mention the carbon core features we should install into EMM server. We have >>>> seen org.wso2.carbon:org.wso2.carbon.core.feature:4.2.0 and >>>> org.wso2.carbon:org.wso2.carbon.core.runtime.feature:4.2.0 in most of other >>>> products but it differs sometimes. >>>> >>>> WDYT ? >>>> >>>> >>>> On Tue, Apr 29, 2014 at 10:47 PM, Chan wrote: >>>> >>>>> Hi folks, >>>>> We had a meeting today with Kicha to sort out our EMM carbon related >>>>> problems. Attendees - Mobile Team, SameeraP, Kicha. Below are points we >>>>> discussed - >>>>> >>>>>- Finalize on the dependent product versions (specially APIM >>>>>feature version and IS feature version) >>>>>- Use .p2inf to copy feature related files >>>>>- Use bin.xml to copy product related files >>>>>- Get proper changes of files (axis2.xml) done by other teams to >>>>>EMM >>>>>- Not going to use Carbon Profiles since emm_service app is a >>>>>deployment artifact >>>>> >>>>> Please add anything if I missed. >>>>> Cheers~ >>>>> -- >>>>> Chan (Dulitha Wijewantha) >>>>> Software Engineer - Mobile Development >>>>> WSO2Mobile >>>>> Lean.Enterprise.Mobileware >>>>> * ~Email duli...@wso2.com * >>>>> * ~Mobile +94712112165 <%2B94712112165>* >>>>> * ~Website dulitha.me <http://dulitha.me>* >>>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>>> *~Github @dulichan <https://github.com/dulichan>* >>>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>>>> >>>> >>>> >>>> >>>> -- >>>> Gayan Gunawardana >>>> Software Engineer; WSO2 Inc.; http://wso2.com/ >>>> Email: ga...@wso2.com >>>> Mobile: +94 (71) 8020933 >>>> Blog: http://gayanj2ee.blogspot.com/ >>>> >>> >>> >>> >>> -- >>> *Kishanthan Thangarajah* >>> Senior Software Engineer, >>> Platform Technologies Team, >>> WSO2, Inc. >>> lean.enterprise.middleware >>> >>> Mobile - +94773426635 >>> Blog - *http://kishanthan.wordpress.com >>> <http://kishanthan.wordpress.com>* >>> Twitter - *http://twitter.com/kishanthan >>> <http://twitter.com/kishanthan>* >>> >> >> >> >> -- >> Gayan Gunawardana >> Software Engineer; WSO2 Inc.; http://wso2.com/ >> Email: ga...@wso2.com >> Mobile: +94 (71) 8020933 >> Blog: http://gayanj2ee.blogspot.com/ >> > > > > -- > Gayan Gunawardana > Software Engineer; WSO2 Inc.; http://wso2.com/ > Email: ga...@wso2.com > Mobile: +94 (71) 8020933 > Blog: http://gayanj2ee.blogspot.com/ > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Meeting Notes on EMM Carbon
Hi folks, We had a meeting today with Kicha to sort out our EMM carbon related problems. Attendees - Mobile Team, SameeraP, Kicha. Below are points we discussed - - Finalize on the dependent product versions (specially APIM feature version and IS feature version) - Use .p2inf to copy feature related files - Use bin.xml to copy product related files - Get proper changes of files (axis2.xml) done by other teams to EMM - Not going to use Carbon Profiles since emm_service app is a deployment artifact Please add anything if I missed. Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Configuration location for jaggery apps
On Sun, Apr 20, 2014 at 7:26 PM, Madhuka Udantha wrote: > > > > On Sun, Apr 20, 2014 at 12:48 PM, Amila Maha Arachchi wrote: > >> An alternative solution can be proposed based on the nature of the >> jaggery app. i.e. is it available in the product itself, similar to >> publisher and store apps of APIM or is it an app you deploy in to AppServer >> or any other server. >> >> 1. If it is packed with the product, you can simply keep the site.json >> file as a template in puppet or in a suitable way if you are using any >> other config management mechanisms. >> > +1 > How about keeping the configurations in the registry? I don't know how well puppet plays with config jsons in registry though. > >> 2. If the app is deployed in to a server, then it is somewhat difficult >> to manage the config files. Then, one option is to bundle the correct >> config file at the build time (using some maven params or ant stuff). >> >> I don't think we should change the way how the config is read. This could >> be done with alternatives according to your requirements. But, there is no >> concrete solution IMO. >> >> >> On Fri, Apr 18, 2014 at 11:07 PM, Manuranga Perera wrote: >> >>> *Current Implementation* >>> We currently keep configuration files for jaggery apps within the app >>> itself (eg: site.json). >>> >>> *Issue with Current Implementation* >>> But this is creating some difficulties in multi environment deployments. >>> Since the configuration files will contain some environment specific >>> information (eg: SSO IDP URL), this makes the artifacts un-portable across >>> environments. >>> >>> *Suggested Solution* >>> We can implement a mechanism where the configuration is read from an >>> outside location (eg: repository/conf) at deployment time and keep it in >>> the application context and reuse it. >>> >>> >>> Let's discuss the feasibility of this solution. alternative solutions >>> are welcome. >>> >>> -- >>> With regards, >>> *Manu*ranga Perera. >>> >>> phone : 071 7 70 20 50 >>> mail : m...@wso2.com >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Amila Maharachchi* >> Senior Technical Lead >> WSO2, Inc.; http://wso2.com >> >> Blog: http://maharachchi.blogspot.com >> Mobile: +94719371446 >> >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Madhuka* Udantha > Senior Software Engineer > Development Technologies > WSO2 Inc. : http://wso2.com > > *Mobile*: +94774066336 > *Blog*: http://madhukaudantha.blogspot.com/ > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] The refactoring branch
Device Service? or emm service ? On Sat, Apr 19, 2014 at 5:34 PM, Niranjan Karunanandham wrote: > Ok... btw think we need to come up with another name instead of emm_be for > the backend emm jaggery app.. > On 19 Apr 2014 17:24, "Chan" wrote: > >> Will remove. I am going to use bfg [1] for it as specified by Github [2]. >> >> [1] - http://rtyley.github.io/bfg-repo-cleaner/ >> [2] - https://help.github.com/articles/remove-sensitive-data >> >> >> On Sat, Apr 19, 2014 at 4:59 PM, Niranjan Karunanandham < >> niran...@wso2.com> wrote: >> >>> @chan: delete the ios jars in the refractor code.. and also if possible >>> from the history... >>> Please do the same in the organisation github also.. >>> On 19 Apr 2014 16:48, "Chan" wrote: >>> >>>> Hi folks, >>>> The refactoring branch is on github dev [1]. If you are not familiar >>>> with the Git flow model - please search the @architecture list. >>>> >>>> [1] - >>>> https://github.com/wso2-dev/product-emm/tree/feature/backend-refactor >>>> >>>> Cheers~ >>>> >>>> -- >>>> Chan (Dulitha Wijewantha) >>>> Software Engineer - Mobile Development >>>> WSO2Mobile >>>> Lean.Enterprise.Mobileware >>>> * ~Email duli...@wso2.com * >>>> * ~Mobile +94712112165 <%2B94712112165>* >>>> * ~Website dulitha.me <http://dulitha.me>* >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> *~Github @dulichan <https://github.com/dulichan>* >>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>>> >>> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] The refactoring branch
Will remove. I am going to use bfg [1] for it as specified by Github [2]. [1] - http://rtyley.github.io/bfg-repo-cleaner/ [2] - https://help.github.com/articles/remove-sensitive-data On Sat, Apr 19, 2014 at 4:59 PM, Niranjan Karunanandham wrote: > @chan: delete the ios jars in the refractor code.. and also if possible > from the history... > Please do the same in the organisation github also.. > On 19 Apr 2014 16:48, "Chan" wrote: > >> Hi folks, >> The refactoring branch is on github dev [1]. If you are not familiar with >> the Git flow model - please search the @architecture list. >> >> [1] - >> https://github.com/wso2-dev/product-emm/tree/feature/backend-refactor >> >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~Github @dulichan <https://github.com/dulichan>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] The refactoring branch
Hi folks, The refactoring branch is on github dev [1]. If you are not familiar with the Git flow model - please search the @architecture list. [1] - https://github.com/wso2-dev/product-emm/tree/feature/backend-refactor Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] EMM OAuth Implementation - Android - Storing Consumer Secret
+1 to the idea since basic auth will be first used to obtain the consumer secret. But we might have to change the flow from how it usually work. Cheers~ On Thu, Apr 17, 2014 at 12:17 PM, Kasun Dananjaya Delgolla wrote: > Hi All, > > We're going to protect all the API calls from EMM client side using OAuth. > > I have a concern whether to store the consumer key/secret inside the EMM > Agent Application or making it dynamic. We can actually send those 2 when > the user authenticates from the mobile client (As the response), and then > we can store it inside a private preference (Which is application private). > > I see this as the safest way because keeping it hardcoded in the source or > a file might be extremely easy to hack. So WDYT? > > Regards, > -- > Kasun Dananjaya Delgolla > > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > Tel: +94 11 214 5345 > Fax: +94 11 2145300 > Mob: + 94 777 997 850 > Blog: http://kddcodingparadise.blogspot.com > Linkedin: *http://lk.linkedin.com/in/kasundananjaya > <http://lk.linkedin.com/in/kasundananjaya>* > > > > -- > Kasun Dananjaya Delgolla > > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > Tel: +94 11 214 5345 > Fax: +94 11 2145300 > Mob: + 94 777 997 850 > Blog: http://kddcodingparadise.blogspot.com > Linkedin: *http://lk.linkedin.com/in/kasundananjaya > <http://lk.linkedin.com/in/kasundananjaya>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Update on APIM integration for EMM
@Gayan It seems that ES is not using the SSO IdP app. I had a chat with Sameera in the afternoon and found out that there using a page inside carbon that is configured. I will be look into that and update the thread. Cheers~ On Wed, Apr 16, 2014 at 7:53 PM, Gayan Gunawardana wrote: > Problems need to address > > 1. jaggery SSO IDP application does not work after upgrading Identity > features as chunk 08. > > 2. In EMM admin services start with prefix admin/services so this will > break two jaggery applications apistore, publisher where they invoke admin > services. > > -- > Gayan Gunawardana > Software Engineer; WSO2 Inc.; http://wso2.com/ > Email: ga...@wso2.com > Mobile: +94 (71) 8020933 > Blog: http://gayanj2ee.blogspot.com/ > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Branches and workflow for jaggery
Shall we follow a method where there will be no branches for releases? This way if I use 0.9.0.ALPHA4.wso2v4 version (tag) I fixed a bug. I need to use a version higher than that or depend on the snapshot built from a development branch (here -master) ? Otherwise the branches will diverge with fixes to specific branches and this would be a nightmare for migration from one version to another. On Thu, Apr 3, 2014 at 4:44 PM, Chan wrote: > Yeah - I agree with most of your points. The current situation of Jaggery > is that when somebody wants to release their product, they get a release of > jaggery done. Let's say jaggery 0.9.0.ALPHA4.wso2v2. Now a branch is > created and called 0.9.0.ALPHA4.wso2v2. > > If a person has a bug in 0.9.0.ALPHA4.wso2v2 he will fix it in that branch > (IMO is incorrect). Then they use that branch as a dependency. I propose to > use a tag as opposed to a branch (0.9.0.ALPHA4.wso2v2). This tag will be > checked out and the patch will be done and sent to the develop branch. We > make a new release tag out of that version (which is a patch version) - > which can be 0.9.0.ALPHA4.wso2v3. But as opposed to branch -it's a tag. > > Cheers~ > > > On Thu, Apr 3, 2014 at 10:17 AM, Rushmin Fernando wrote: > >> The notion of tags are there in almost the all version control systems, >> though the how they store tags is different. >> >> It's true that Git has some addition features to work with tags. >> >> But the concept of a tag is to point to a snapshot of the code base which >> does not change. >> >> In Git when we checkout a tag it causes a detached head. You can checkout >> a tag and build the code, but it is discouraged to commit to a tag since it >> abusing the purpose. >> >> (But you can create a branch from a tag and use it as the bug fix branch) >> >> Thank you >> >> >> On Thu, Apr 3, 2014 at 1:01 AM, Chan wrote: >> >>> We do indeed support older releases. Git provides a cool feature for >>> this called tagging. We tag the master branch when ever we make a release. >>> If we want to obtain the codebase of 1.0.0 - we just checkout the tag. >>> >>> Cheers~ >>> >>> >>> On Wed, Apr 2, 2014 at 11:51 AM, Rushmin Fernando wrote: >>> >>>> Just thinking aloud since im interested in release management stuff ... >>>> >>>> AFAIK release branches are maintained even after the release to make >>>> sure a bug fix for a specific release can be done without worrying about >>>> further releases done (may be practically half baked code as well) in >>>> develop branch / master. >>>> >>>> But this is subjected to the release pattern of the product. If we >>>> don't support older releases then we might not need release branches after >>>> the release since the latest release is reflected in master branch. >>>> >>>> ( But technically in Git we can create a branch from a commit. So >>>> deleting feature branches might not be a big deal since we can create a >>>> branch from a tag when a bug fix for a release is needed ) >>>> >>>> >>>> On Wed, Apr 2, 2014 at 11:08 AM, Chan wrote: >>>> >>>>> Hi Rushmin, >>>>> There will be 2 permanent branches >>>>> >>>>>- master >>>>>- develop >>>>> >>>>> When we work on a feature - we create a branch called >>>>> feature/feature-name on local repo. If there are collaborators we push >>>>> them >>>>> to remote repo. Afterwards when the feature is complete - we merge it to >>>>> the develop branch. >>>>> If we have a release in 2 weeks - we create a release branch (named >>>>> release/release-name) from the develop branch and work it. This will >>>>> mostly >>>>> be stabilization work. What ever features that are completed during this >>>>> time will not be available to the release since they are not stable. When >>>>> we release - we merge the release branch to master and develop branch. We >>>>> tag the master branch with release name. >>>>> >>>>> Cheers~ >>>>> >>>>> (My previous email fired off with Command +Enter. Apologies to that) >>>>> >>>>> >>>>> On Wed, Apr 2, 2014 at 11:05 AM, Chan wrote: >>>>> >>>>>> There will be 2 permanent branches >>>>>> >
[Dev] Removing the temp configs from EMM
Hi folks, We have used temp config files in the jaggery apps because of the version control Problem. We need to version control configuration files but not exactly the configurations we have. Git has a method to do this [1]. We have to run git update-index --assume-unchanged path/to/file.txt on the config file and it won't be added in git add . . Shall we refactor this in a separate branch? [1] - http://stackoverflow.com/a/18277622/813471 -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~Github @dulichan <https://github.com/dulichan>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Branches and workflow for jaggery
Yeah - I agree with most of your points. The current situation of Jaggery is that when somebody wants to release their product, they get a release of jaggery done. Let's say jaggery 0.9.0.ALPHA4.wso2v2. Now a branch is created and called 0.9.0.ALPHA4.wso2v2. If a person has a bug in 0.9.0.ALPHA4.wso2v2 he will fix it in that branch (IMO is incorrect). Then they use that branch as a dependency. I propose to use a tag as opposed to a branch (0.9.0.ALPHA4.wso2v2). This tag will be checked out and the patch will be done and sent to the develop branch. We make a new release tag out of that version (which is a patch version) - which can be 0.9.0.ALPHA4.wso2v3. But as opposed to branch -it's a tag. Cheers~ On Thu, Apr 3, 2014 at 10:17 AM, Rushmin Fernando wrote: > The notion of tags are there in almost the all version control systems, > though the how they store tags is different. > > It's true that Git has some addition features to work with tags. > > But the concept of a tag is to point to a snapshot of the code base which > does not change. > > In Git when we checkout a tag it causes a detached head. You can checkout > a tag and build the code, but it is discouraged to commit to a tag since it > abusing the purpose. > > (But you can create a branch from a tag and use it as the bug fix branch) > > Thank you > > > On Thu, Apr 3, 2014 at 1:01 AM, Chan wrote: > >> We do indeed support older releases. Git provides a cool feature for this >> called tagging. We tag the master branch when ever we make a release. If we >> want to obtain the codebase of 1.0.0 - we just checkout the tag. >> >> Cheers~ >> >> >> On Wed, Apr 2, 2014 at 11:51 AM, Rushmin Fernando wrote: >> >>> Just thinking aloud since im interested in release management stuff ... >>> >>> AFAIK release branches are maintained even after the release to make >>> sure a bug fix for a specific release can be done without worrying about >>> further releases done (may be practically half baked code as well) in >>> develop branch / master. >>> >>> But this is subjected to the release pattern of the product. If we don't >>> support older releases then we might not need release branches after the >>> release since the latest release is reflected in master branch. >>> >>> ( But technically in Git we can create a branch from a commit. So >>> deleting feature branches might not be a big deal since we can create a >>> branch from a tag when a bug fix for a release is needed ) >>> >>> >>> On Wed, Apr 2, 2014 at 11:08 AM, Chan wrote: >>> >>>> Hi Rushmin, >>>> There will be 2 permanent branches >>>> >>>>- master >>>>- develop >>>> >>>> When we work on a feature - we create a branch called >>>> feature/feature-name on local repo. If there are collaborators we push them >>>> to remote repo. Afterwards when the feature is complete - we merge it to >>>> the develop branch. >>>> If we have a release in 2 weeks - we create a release branch (named >>>> release/release-name) from the develop branch and work it. This will mostly >>>> be stabilization work. What ever features that are completed during this >>>> time will not be available to the release since they are not stable. When >>>> we release - we merge the release branch to master and develop branch. We >>>> tag the master branch with release name. >>>> >>>> Cheers~ >>>> >>>> (My previous email fired off with Command +Enter. Apologies to that) >>>> >>>> >>>> On Wed, Apr 2, 2014 at 11:05 AM, Chan wrote: >>>> >>>>> There will be 2 permanent branches >>>>> >>>>>- master >>>>>- develop >>>>> >>>>> >>>>> >>>>> On Tue, Apr 1, 2014 at 9:30 PM, Rushmin Fernando wrote: >>>>> >>>>>> Hi Chan, >>>>>> >>>>>> Do you mean that there are obsolete release branches which should be >>>>>> deleted, after tagging the tips of them ? >>>>>> >>>>>> Thanks >>>>>> /rushmin >>>>>> >>>>>> >>>>>> On Tue, Apr 1, 2014 at 7:45 PM, Chan wrote: >>>>>> >>>>>>> Hi folks, >>>>>>> I believe we can improve the git workflow of the jaggery project[1]. >>>>>>> Currently we have man
Re: [Dev] Branches and workflow for jaggery
We do indeed support older releases. Git provides a cool feature for this called tagging. We tag the master branch when ever we make a release. If we want to obtain the codebase of 1.0.0 - we just checkout the tag. Cheers~ On Wed, Apr 2, 2014 at 11:51 AM, Rushmin Fernando wrote: > Just thinking aloud since im interested in release management stuff ... > > AFAIK release branches are maintained even after the release to make sure > a bug fix for a specific release can be done without worrying about further > releases done (may be practically half baked code as well) in develop > branch / master. > > But this is subjected to the release pattern of the product. If we don't > support older releases then we might not need release branches after the > release since the latest release is reflected in master branch. > > ( But technically in Git we can create a branch from a commit. So deleting > feature branches might not be a big deal since we can create a branch from > a tag when a bug fix for a release is needed ) > > > On Wed, Apr 2, 2014 at 11:08 AM, Chan wrote: > >> Hi Rushmin, >> There will be 2 permanent branches >> >>- master >>- develop >> >> When we work on a feature - we create a branch called >> feature/feature-name on local repo. If there are collaborators we push them >> to remote repo. Afterwards when the feature is complete - we merge it to >> the develop branch. >> If we have a release in 2 weeks - we create a release branch (named >> release/release-name) from the develop branch and work it. This will mostly >> be stabilization work. What ever features that are completed during this >> time will not be available to the release since they are not stable. When >> we release - we merge the release branch to master and develop branch. We >> tag the master branch with release name. >> >> Cheers~ >> >> (My previous email fired off with Command +Enter. Apologies to that) >> >> >> On Wed, Apr 2, 2014 at 11:05 AM, Chan wrote: >> >>> There will be 2 permanent branches >>> >>>- master >>>- develop >>> >>> >>> >>> On Tue, Apr 1, 2014 at 9:30 PM, Rushmin Fernando wrote: >>> >>>> Hi Chan, >>>> >>>> Do you mean that there are obsolete release branches which should be >>>> deleted, after tagging the tips of them ? >>>> >>>> Thanks >>>> /rushmin >>>> >>>> >>>> On Tue, Apr 1, 2014 at 7:45 PM, Chan wrote: >>>> >>>>> Hi folks, >>>>> I believe we can improve the git workflow of the jaggery project[1]. >>>>> Currently we have many release branches (IMO bad decision since these >>>>> branches will evolve separately). They need to ideally be tags. We have >>>>> been discussing about Git Flow (check Git flow model @architecture) - and >>>>> I >>>>> think we can sort out most of these troubles with git flow. WDYT? >>>>> >>>>> [1] - https://github.com/wso2/jaggery/branches >>>>> Cheers~ >>>>> >>>>> -- >>>>> Chan (Dulitha Wijewantha) >>>>> Software Engineer - Mobile Development >>>>> WSO2Mobile >>>>> Lean.Enterprise.Mobileware >>>>> * ~Email duli...@wso2.com * >>>>> * ~Mobile +94712112165 <%2B94712112165>* >>>>> * ~Website dulitha.me <http://dulitha.me>* >>>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Rushmin Fernando* >>>> *Technical Lead* >>>> >>>> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware >>>> >>>> email : rush...@wso2.com >>>> mobile : +94772310855 >>>> >>>> >>>> >>> >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2Mobile >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B947121
Re: [Dev] Branches and workflow for jaggery
Hi Rushmin, There will be 2 permanent branches - master - develop When we work on a feature - we create a branch called feature/feature-name on local repo. If there are collaborators we push them to remote repo. Afterwards when the feature is complete - we merge it to the develop branch. If we have a release in 2 weeks - we create a release branch (named release/release-name) from the develop branch and work it. This will mostly be stabilization work. What ever features that are completed during this time will not be available to the release since they are not stable. When we release - we merge the release branch to master and develop branch. We tag the master branch with release name. Cheers~ (My previous email fired off with Command +Enter. Apologies to that) On Wed, Apr 2, 2014 at 11:05 AM, Chan wrote: > There will be 2 permanent branches > >- master >- develop > > > > On Tue, Apr 1, 2014 at 9:30 PM, Rushmin Fernando wrote: > >> Hi Chan, >> >> Do you mean that there are obsolete release branches which should be >> deleted, after tagging the tips of them ? >> >> Thanks >> /rushmin >> >> >> On Tue, Apr 1, 2014 at 7:45 PM, Chan wrote: >> >>> Hi folks, >>> I believe we can improve the git workflow of the jaggery project[1]. >>> Currently we have many release branches (IMO bad decision since these >>> branches will evolve separately). They need to ideally be tags. We have >>> been discussing about Git Flow (check Git flow model @architecture) - and I >>> think we can sort out most of these troubles with git flow. WDYT? >>> >>> [1] - https://github.com/wso2/jaggery/branches >>> Cheers~ >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2Mobile >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B94712112165>* >>> * ~Website dulitha.me <http://dulitha.me>* >>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Rushmin Fernando* >> *Technical Lead* >> >> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware >> >> email : rush...@wso2.com >> mobile : +94772310855 >> >> >> > > > -- > Chan (Dulitha Wijewantha) > Software Engineer - Mobile Development > WSO2Mobile > Lean.Enterprise.Mobileware > * ~Email duli...@wso2.com * > * ~Mobile +94712112165 <%2B94712112165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Branches and workflow for jaggery
There will be 2 permanent branches - master - develop On Tue, Apr 1, 2014 at 9:30 PM, Rushmin Fernando wrote: > Hi Chan, > > Do you mean that there are obsolete release branches which should be > deleted, after tagging the tips of them ? > > Thanks > /rushmin > > > On Tue, Apr 1, 2014 at 7:45 PM, Chan wrote: > >> Hi folks, >> I believe we can improve the git workflow of the jaggery project[1]. >> Currently we have many release branches (IMO bad decision since these >> branches will evolve separately). They need to ideally be tags. We have >> been discussing about Git Flow (check Git flow model @architecture) - and I >> think we can sort out most of these troubles with git flow. WDYT? >> >> [1] - https://github.com/wso2/jaggery/branches >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Rushmin Fernando* > *Technical Lead* > > WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware > > email : rush...@wso2.com > mobile : +94772310855 > > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] H2 Database support for EMM
Hi folks, I am working on providing H2 support for product-emm [1] for 1.1 release. @Niranjan you did some work in this area before right? For example the database creation. Is that code committed somewhere? Also what happened to the driver that we implemented for the h2 quick POC? [1] - https://github.com/wso2-dev/product-emm Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Branches and workflow for jaggery
Hi folks, I believe we can improve the git workflow of the jaggery project[1]. Currently we have many release branches (IMO bad decision since these branches will evolve separately). They need to ideally be tags. We have been discussing about Git Flow (check Git flow model @architecture) - and I think we can sort out most of these troubles with git flow. WDYT? [1] - https://github.com/wso2/jaggery/branches Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What does this Git error mean?
I think you did - 'git push origin master' the first time -hence the [rejected]master -> master (non-fast-forward) Since the remote master was ahead of your local master the updates were rejected. Technically you should never use -f flag cause it does a force rewrite. Interesting point to make is about the upstream branch. git fetch upstream git merge upstream/master The above does the same thing as git pull upstream master (the fetch happens underneath the pull command). Cheers~ On Mon, Mar 31, 2014 at 8:38 PM, Nirmal Fernando wrote: > Cool.. then :-) > > > On Mon, Mar 31, 2014 at 8:36 PM, Afkham Azeez wrote: > >> >> >> >> On Mon, Mar 31, 2014 at 8:33 PM, Nirmal Fernando wrote: >> >>> Hi Azeez, >>> >>> But that would have over-written some code in the remote, that has been >>> committed after the revision you have in your local repo. >>> >> >> I am the only one working on that feature branch, so I don't think anyone >> has committed any changes there. Probably I did something stupid. >> >> >>> >>> >>> On Mon, Mar 31, 2014 at 8:17 PM, Afkham Azeez wrote: >>> >>>> git push -f worked >>>> >>>> >>>> On Mon, Mar 31, 2014 at 8:07 PM, Afkham Azeez wrote: >>>> >>>>> >>>>> On Mon, Mar 31, 2014 at 8:04 PM, Sameera Jayasoma wrote: >>>>> >>>>>> git pull origin >>>>> >>>>> >>>>> git pull origin cluster-coordinator-feature didn't make a difference >>>>> >>>>> >>>>> -- >>>>> *Afkham Azeez* >>>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>> Member; Apache Software Foundation; http://www.apache.org/ >>>>> * <http://www.apache.org/>* >>>>> *email: **az...@wso2.com* >>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>>> *twitter: >>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>>> >>>>> *Lean . Enterprise . Middleware* >>>>> >>>> >>>> >>>> >>>> -- >>>> *Afkham Azeez* >>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>> Member; Apache Software Foundation; http://www.apache.org/ >>>> * <http://www.apache.org/>* >>>> *email: **az...@wso2.com* >>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>> *twitter: >>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>> >>>> *Lean . Enterprise . Middleware* >>>> >>>> ___ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> >>> Thanks & regards, >>> Nirmal >>> >>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc. >>> Mobile: +94715779733 >>> Blog: http://nirmalfdo.blogspot.com/ >>> >>> >>> >> >> >> -- >> *Afkham Azeez* >> Director of Architecture; WSO2, Inc.; http://wso2.com >> Member; Apache Software Foundation; http://www.apache.org/ >> * <http://www.apache.org/>* >> *email: **az...@wso2.com* >> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >> *http://blog.afkham.org* <http://blog.afkham.org> >> *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >> <http://lk.linkedin.com/in/afkhamazeez>* >> >> *Lean . Enterprise . Middleware* >> > > > > -- > > Thanks & regards, > Nirmal > > Senior Software Engineer- Platform Technologies Team, WSO2 Inc. > Mobile: +94715779733 > Blog: http://nirmalfdo.blogspot.com/ > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Starting work on product-emm
My opinion here is that hotfix branches have to be merged to develop by the person who is doing the hotfix. For example if I am doing a hotfix on ES - I have to checkout released version of ES (tag) make a hotfix branch and merge it into the develop branch. If I can't merge it to the development branch due to errors and incompatibility I have to have a discussion with ES guys to find a way forward. Once the hotfix is merged to develop it has to be deleted. On parallel I have to merge it into the master and tag the code to a patch version. The patch version and the tag has to be sent as a pull request (tag has to be manually created). Afterwards I send a pull request to the ES project on Github and that'll merged by an ES team member. If someone wants that particular hotfix he has to get it from the patch version in master. On Fri, Mar 28, 2014 at 11:12 AM, Niranjan Karunanandham wrote: > btw i noticed that you had already merged your changes to the product-emm > in wso2-dev github account. > > > On Fri, Mar 28, 2014 at 11:10 AM, Niranjan Karunanandham < > niran...@wso2.com> wrote: > >> Hi Chan, >> >> I had a look [1] and noticed that according to the git flow model the >> hotfix branch gets deleted after it gets merged to the master and develop >> branches. But there can be scenarios where the hotfix can be merge to >> master but not to develop branch. In the develop branch a proper fix is >> done or another feature or fix has corrected the issue. So i think it would >> be better if the hotfix branches are present till the end of next version >> release. Also in git flow, the other supporting branches (feature, release) >> are also removed once it is merged with the master and develop branch. >> >> >> [1] - https://github.com/dulichan/product-emm >> >> >> >> On Fri, Mar 28, 2014 at 10:51 AM, Chan wrote: >> >>> Folks - can you please check my fork [1]?. I followed the gitflow model >>> and git flow tool[2]. >>> >>> Cheers~ >>> >>> [1] - https://github.com/dulichan/product-emm >>> [2] - https://github.com/nvie/gitflow/tree/master >>> >>> >>> On Fri, Mar 28, 2014 at 10:07 AM, Chan wrote: >>> >>>> +1 to the rename suggestion. I did the renaming but I am experimenting >>>> on the git rebase command and the usefulness of it instead of using >>>> merging. What I did was rebase the hotfix-ip-address branch to develop. >>>> Then rebase the hotfix-ip-address branch to master as well. >>>> >>>> Apparently the above approach has couple of pitfalls. It's never >>>> recommended to rebase code on something that's already pushed to remote >>>> repositories [1]. (The above commit I did is harmless because there were no >>>> commits that happened between my commit). Guys there is an extension made >>>> called git flow that can be installed on to git to manage git flow easily >>>> [2]. Another note to make is prefixing happens with / not - (eg:- >>>> hotfix/ip-address). >>>> >>>> [1] - >>>> http://jeffkreeftmeijer.com/2010/the-magical-and-not-harmful-rebase/ >>>> [2] - https://github.com/nvie/gitflow/tree/0.2 >>>> >>>> >>>> On Fri, Mar 28, 2014 at 9:19 AM, Niranjan Karunanandham < >>>> niran...@wso2.com> wrote: >>>> >>>>> Instead of having the branch as ip-address-fix, name it >>>>> hotfix-ip-address so that when looking at the branches it can be quickly >>>>> identified as a fix branch.. >>>>> On 28 Mar 2014 09:15, "Chan" wrote: >>>>> >>>>>> +1 I was doing that. I have created a branch called develop and a >>>>>> branch called ip-address-fix. The ip-addess-fix will be merged to the >>>>>> develop branch and master branch after finishing. Then I'll push a tag to >>>>>> master on the 1.0.0 release as well. (All pushing will happen to dev >>>>>> remote). >>>>>> >>>>>> Cheers~ >>>>>> >>>>>> >>>>>> On Fri, Mar 28, 2014 at 9:07 AM, Niranjan Karunanandham < >>>>>> niran...@wso2.com> wrote: >>>>>> >>>>>>> Do not directly commit it to the develop.. get a tag from the master >>>>>>> and put your fix (hotfix) and then merge it into master and develop.. >>>>>>> the >>>>>>> reason is that the ip related chang
Re: [Dev] Starting work on product-emm
Folks - can you please check my fork [1]?. I followed the gitflow model and git flow tool[2]. Cheers~ [1] - https://github.com/dulichan/product-emm [2] - https://github.com/nvie/gitflow/tree/master On Fri, Mar 28, 2014 at 10:07 AM, Chan wrote: > +1 to the rename suggestion. I did the renaming but I am experimenting on > the git rebase command and the usefulness of it instead of using merging. > What I did was rebase the hotfix-ip-address branch to develop. Then rebase > the hotfix-ip-address branch to master as well. > > Apparently the above approach has couple of pitfalls. It's never > recommended to rebase code on something that's already pushed to remote > repositories [1]. (The above commit I did is harmless because there were no > commits that happened between my commit). Guys there is an extension made > called git flow that can be installed on to git to manage git flow easily > [2]. Another note to make is prefixing happens with / not - (eg:- > hotfix/ip-address). > > [1] - http://jeffkreeftmeijer.com/2010/the-magical-and-not-harmful-rebase/ > [2] - https://github.com/nvie/gitflow/tree/0.2 > > > On Fri, Mar 28, 2014 at 9:19 AM, Niranjan Karunanandham > wrote: > >> Instead of having the branch as ip-address-fix, name it hotfix-ip-address >> so that when looking at the branches it can be quickly identified as a fix >> branch.. >> On 28 Mar 2014 09:15, "Chan" wrote: >> >>> +1 I was doing that. I have created a branch called develop and a branch >>> called ip-address-fix. The ip-addess-fix will be merged to the develop >>> branch and master branch after finishing. Then I'll push a tag to master on >>> the 1.0.0 release as well. (All pushing will happen to dev remote). >>> >>> Cheers~ >>> >>> >>> On Fri, Mar 28, 2014 at 9:07 AM, Niranjan Karunanandham < >>> niran...@wso2.com> wrote: >>> >>>> Do not directly commit it to the develop.. get a tag from the master >>>> and put your fix (hotfix) and then merge it into master and develop.. the >>>> reason is that the ip related changes is a fix you did after the release. >>>> On 28 Mar 2014 08:44, "Chan" wrote: >>>> >>>>> Hi folks, >>>>> I am starting work on the product-emm (new fork at dev repo). For >>>>> reference I made 3 remotes for my local repo - >>>>> >>>>> official - WSO2 Organization Repo >>>>> dev - WSO2 Dev repo >>>>> own - WSO2 Fork >>>>> >>>>> I'll be committing of the ip related changes to dev. >>>>> >>>>> Cheers~ >>>>> >>>>> -- >>>>> Chan (Dulitha Wijewantha) >>>>> Software Engineer - Mobile Development >>>>> WSO2Mobile >>>>> Lean.Enterprise.Mobileware >>>>> * ~Email duli...@wso2.com * >>>>> * ~Mobile +94712112165 <%2B94712112165>* >>>>> * ~Website dulitha.me <http://dulitha.me>* >>>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>>>> >>>> >>> >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2Mobile >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B94712112165>* >>> * ~Website dulitha.me <http://dulitha.me>* >>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>> >> > > > -- > Chan (Dulitha Wijewantha) > Software Engineer - Mobile Development > WSO2Mobile > Lean.Enterprise.Mobileware > * ~Email duli...@wso2.com * > * ~Mobile +94712112165 <%2B94712112165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Starting work on product-emm
+1 to the rename suggestion. I did the renaming but I am experimenting on the git rebase command and the usefulness of it instead of using merging. What I did was rebase the hotfix-ip-address branch to develop. Then rebase the hotfix-ip-address branch to master as well. Apparently the above approach has couple of pitfalls. It's never recommended to rebase code on something that's already pushed to remote repositories [1]. (The above commit I did is harmless because there were no commits that happened between my commit). Guys there is an extension made called git flow that can be installed on to git to manage git flow easily [2]. Another note to make is prefixing happens with / not - (eg:- hotfix/ip-address). [1] - http://jeffkreeftmeijer.com/2010/the-magical-and-not-harmful-rebase/ [2] - https://github.com/nvie/gitflow/tree/0.2 On Fri, Mar 28, 2014 at 9:19 AM, Niranjan Karunanandham wrote: > Instead of having the branch as ip-address-fix, name it hotfix-ip-address > so that when looking at the branches it can be quickly identified as a fix > branch.. > On 28 Mar 2014 09:15, "Chan" wrote: > >> +1 I was doing that. I have created a branch called develop and a branch >> called ip-address-fix. The ip-addess-fix will be merged to the develop >> branch and master branch after finishing. Then I'll push a tag to master on >> the 1.0.0 release as well. (All pushing will happen to dev remote). >> >> Cheers~ >> >> >> On Fri, Mar 28, 2014 at 9:07 AM, Niranjan Karunanandham < >> niran...@wso2.com> wrote: >> >>> Do not directly commit it to the develop.. get a tag from the master and >>> put your fix (hotfix) and then merge it into master and develop.. the >>> reason is that the ip related changes is a fix you did after the release. >>> On 28 Mar 2014 08:44, "Chan" wrote: >>> >>>> Hi folks, >>>> I am starting work on the product-emm (new fork at dev repo). For >>>> reference I made 3 remotes for my local repo - >>>> >>>> official - WSO2 Organization Repo >>>> dev - WSO2 Dev repo >>>> own - WSO2 Fork >>>> >>>> I'll be committing of the ip related changes to dev. >>>> >>>> Cheers~ >>>> >>>> -- >>>> Chan (Dulitha Wijewantha) >>>> Software Engineer - Mobile Development >>>> WSO2Mobile >>>> Lean.Enterprise.Mobileware >>>> * ~Email duli...@wso2.com * >>>> * ~Mobile +94712112165 <%2B94712112165>* >>>> * ~Website dulitha.me <http://dulitha.me>* >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >>>> >>> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Starting work on product-emm
+1 I was doing that. I have created a branch called develop and a branch called ip-address-fix. The ip-addess-fix will be merged to the develop branch and master branch after finishing. Then I'll push a tag to master on the 1.0.0 release as well. (All pushing will happen to dev remote). Cheers~ On Fri, Mar 28, 2014 at 9:07 AM, Niranjan Karunanandham wrote: > Do not directly commit it to the develop.. get a tag from the master and > put your fix (hotfix) and then merge it into master and develop.. the > reason is that the ip related changes is a fix you did after the release. > On 28 Mar 2014 08:44, "Chan" wrote: > >> Hi folks, >> I am starting work on the product-emm (new fork at dev repo). For >> reference I made 3 remotes for my local repo - >> >> official - WSO2 Organization Repo >> dev - WSO2 Dev repo >> own - WSO2 Fork >> >> I'll be committing of the ip related changes to dev. >> >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Starting work on product-emm
Hi folks, I am starting work on the product-emm (new fork at dev repo). For reference I made 3 remotes for my local repo - official - WSO2 Organization Repo dev - WSO2 Dev repo own - WSO2 Fork I'll be committing of the ip related changes to dev. Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] How does carbon recognize local ip?
Thanks IsuruP. I have written a javascript method for jaggery applications to get the current address of the server[1]. [1] - https://gist.github.com/dulichan/9577696 Cheers~ On Sat, Mar 15, 2014 at 10:06 AM, Isuru Perera wrote: > Hi, > > The 'carbon.local.ip' system property is set from CarbonServerManager > class [1]. > > System.setProperty(ServerConstants.LOCAL_IP_ADDRESS, > NetworkUtils.getLocalHostname()); > > This NetworkUtils class [2] internally calls an Axis2 Util class [3] to > get the hostname. > > hostName = org.apache.axis2.util.Utils.getIpAddress(); > > With this way, we cannot make sure which IP will be returned at runtime if > there a multiple network interfaces. > > We deal this in production by setting proper hostnames in carbon.xml for > HostName and MgtHostName. We also set hostnames/IP addresses for all other > configurations. > > IMHO, the code should not depend on this 'carbon.local.ip' system > property. The code should always get the hostname via some configuration > value. > > If you also need to make sure the transport is bound to one network, you > need to look at each transport configuration. > > For Servlet transport, you may use address property in Tomcat connectors > [4]. > > For Synapse NIO, you can use bind-address property in axis2.xml transport > configuration. > > The bind-address is not yet implemented for Synapse passthrough transport > [5]. > > Thanks! > > Best Regards, > > [1] > https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.core/4.2.0/src/main/java/org/wso2/carbon/core/init/CarbonServerManager.java > [2] > https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.utils/4.2.0/src/main/java/org/wso2/carbon/utils/NetworkUtils.java > [3] > http://axis.apache.org/axis2/java/core/api/org/apache/axis2/util/Utils.html#getIpAddress%28%29 > [4] http://wiki.apache.org/tomcat/FAQ/Connectors#Q6 > [5] > http://stackoverflow.com/questions/21601792/wso2-api-manager-how-to-listen-passthroughhttplistener-on-single-ip-address > > > > On Sat, Mar 15, 2014 at 9:16 AM, Chan wrote: > >> Hi folks, >> How does carbon recognize the local ip of the machine? For example if the >> machine has two ips what will be used as the ip for the 'carbon.local.ip' >> system property? I had a strange issue when I am connected to the wifi and >> connected using a dongle as well - carbon picks up the dongle ip rather >> than the network ip. If this is the accepted behavior - how does it deal in >> production? >> >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Isuru Perera > Senior Software Engineer | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] How does carbon recognize local ip?
Hi folks, How does carbon recognize the local ip of the machine? For example if the machine has two ips what will be used as the ip for the 'carbon.local.ip' system property? I had a strange issue when I am connected to the wifi and connected using a dongle as well - carbon picks up the dongle ip rather than the network ip. If this is the accepted behavior - how does it deal in production? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Enhanced GitHub pull request plugin with WSO2 Jenkins
+1 to get the continuos delivery model blogged out. Also this would help many other organizations and teams if we setup a proper guideline on our continuos delivery model. Cheers~ On Thu, Mar 13, 2014 at 12:07 PM, Kasun Gajasinghe wrote: > Hi Azeez, > > We have not enabled the said plugin in our Jenkins setup yet. > @Ayashkantha, please send the necessary artifacts (the .spi is enough?) to > install this plugin. > > I think we might need to have another jenkins node (as a slave node) for > the Pull Request builder plugin ( preferably on a new VM depending on the > load). We noticed that when we installed the original jenkins plugin, it > has messed up the entire jenkins builds, and we had to re-configure a new > jenkins instance. > > Thanks, > KasunG > > > > On Thu, Mar 13, 2014 at 11:34 AM, Afkham Azeez wrote: > >> Ping! Need an update ASAP. >> >> >> On Wed, Mar 12, 2014 at 10:59 AM, Afkham Azeez wrote: >> >>> Have we enabled this plugin on our Jenkins setup? >>> >>> Where do we maintain this code? Perhaps we have the fork within the WSO2 >>> repo? >>> >>> Did we send the enhancements as pull requests to the relevant original >>> repos? If not, please do so with the proper comments explaining what the >>> enhancement does. >>> >>> Write a blog post about this, Tweet it etc. and make some noise about >>> this and our vision towards continuous delivery. >>> >>> -- >>> *Afkham Azeez* >>> Director of Architecture; WSO2, Inc.; http://wso2.com >>> Member; Apache Software Foundation; http://www.apache.org/ >>> * <http://www.apache.org/>* >>> *email: **az...@wso2.com* >>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>> *http://blog.afkham.org* <http://blog.afkham.org> >>> *twitter: >>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>> <http://lk.linkedin.com/in/afkhamazeez>* >>> >>> *Lean . Enterprise . Middleware* >>> >> >> >> >> -- >> *Afkham Azeez* >> Director of Architecture; WSO2, Inc.; http://wso2.com >> Member; Apache Software Foundation; http://www.apache.org/ >> * <http://www.apache.org/>* >> *email: **az...@wso2.com* >> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >> *http://blog.afkham.org* <http://blog.afkham.org> >> *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >> <http://lk.linkedin.com/in/afkhamazeez>* >> >> *Lean . Enterprise . Middleware* >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Kasun Gajasinghe* > Software Engineer; > WSO2 Inc.; http://wso2.com > > > , > *email: * > *kasung AT spamfree wso2.com <http://wso2.com> ** cell: **+94 (77) > 678-0813 <%2B94%20%2877%29%20678-0813>* > *linked-in: *http://lk.linkedin.com/in/gajasinghe > > > > *blog: **http://kasunbg.org* <http://kasunbg.org> > > > > *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg> > > > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Finding current address and port for a carbon server
Had an offline chat with Kishanthan and we found that CarbonUtils or CarbonUIUtils will not provide us the answer. Reasons are that both classes will append /services or /carbon to the returned url. Another fact is that we have to pass in a Axis2Configuration for certain methods. We found out that there are system properties called 'mgt.transport.http.proxyPort' & 'mgt.transport.http.port' which can be used to construct the full server address. I'll be writing a jaggery module on this and I'll share it once it's done. Cheers~ On Tue, Mar 11, 2014 at 1:36 PM, Chan wrote: > I implemented a method to jaggery to get the HttpSession. But I ran to > another issue where the CarbonConstants.SERVER_URL is getting null from > HttpSession & ServletContext. > > Caused by: java.lang.NullPointerException > at > org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:773) > at > org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:766) > at > org.wso2.carbon.ui.CarbonUIUtil.getServerURL(CarbonUIUtil.java:105) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > ... 47 more > > I had a chat with Ruchira and he said they don't setup these values in > Jaggery. Are they setup in the Tomcat level? Or what could be the problem. > > > > On Tue, Mar 11, 2014 at 10:40 AM, Kishanthan Thangarajah < > kishant...@wso2.com> wrote: > >> From UI front, the easy way to get the server url is to use the above >> method. >> >> From a UI related component, the easy way is to use >> "CarbonUIUtils#getServerURL(ServerConfigurationService >> serverConfig)" method, where you need to acquire the >> ServerConfigurationService. >> >> >> On Mon, Mar 10, 2014 at 10:35 PM, Chan wrote: >> >>> Hi folks, >>> I looked into CarbonUIUtils and found an interesting method *public >>> static String getServerURL(ServletContext servletContext, HttpSession >>> httpSession). *I can get the ServletContext from the application >>> host-object but there seems to be no method to obtain the vanilla >>> HttpSession from the session host-object. @Ruchira shall we improve the >>> session host-object to have method to get HttpSession? >>> >>> Also I hope CarbonUIUtils won't be removed in the future refactoring. >>> >>> Cheers~ >>> >>> >>> On Mon, Mar 10, 2014 at 2:33 PM, Afkham Azeez wrote: >>> >>>> IIRC, the CarbonUtils or CarbonUIUtils class has methods to retrieve >>>> the server host & ports. >>>> >>>> >>>> Azeez >>>> >>>> >>>> On Mon, Mar 10, 2014 at 2:28 PM, Chan wrote: >>>> >>>>> Hi folks, >>>>> I am having a confusion regarding how to find the carbon server >>>>> hostname and port. This problem is related to implementing SSO in jaggery >>>>> applications. Say for example in the login.jag we construct the current >>>>> hostname to return a form to client to go to the IDP provider page. For >>>>> this we need to find the https://server_adress:port/admin/samlsso. >>>>> For this the login.jag currently use - >>>>> >>>>> var host = process.getProperty('server.host') >>>>> if(host=="localhost"){ >>>>> var postUrl = "https://"; + >>>>> process.getProperty('carbon.local.ip') + ":" + >>>>> process.getProperty('https.port'); >>>>> }else{ >>>>> var postUrl = "https://"; + host; >>>>> } >>>>> >>>>> To get the server to work in development we get 'carbon.local.ip' from >>>>> process and set it up. For production we suggest users to add the hostname >>>>> in the carbon.xml file. 'server.host' will be populated with carbon.xml >>>>> entry in runtime. >>>>> >>>>> The problem in this approach is that we can't specify ports in the >>>>> carbon.xml entry. To overcome this -the quick fix for this would be to >>>>> append port to the host. B
Re: [Dev] Finding current address and port for a carbon server
I implemented a method to jaggery to get the HttpSession. But I ran to another issue where the CarbonConstants.SERVER_URL is getting null from HttpSession & ServletContext. Caused by: java.lang.NullPointerException at org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:773) at org.wso2.carbon.utils.CarbonUtils.getServerURL(CarbonUtils.java:766) at org.wso2.carbon.ui.CarbonUIUtil.getServerURL(CarbonUIUtil.java:105) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 47 more I had a chat with Ruchira and he said they don't setup these values in Jaggery. Are they setup in the Tomcat level? Or what could be the problem. On Tue, Mar 11, 2014 at 10:40 AM, Kishanthan Thangarajah < kishant...@wso2.com> wrote: > From UI front, the easy way to get the server url is to use the above > method. > > From a UI related component, the easy way is to use > "CarbonUIUtils#getServerURL(ServerConfigurationService > serverConfig)" method, where you need to acquire the > ServerConfigurationService. > > > On Mon, Mar 10, 2014 at 10:35 PM, Chan wrote: > >> Hi folks, >> I looked into CarbonUIUtils and found an interesting method *public >> static String getServerURL(ServletContext servletContext, HttpSession >> httpSession). *I can get the ServletContext from the application >> host-object but there seems to be no method to obtain the vanilla >> HttpSession from the session host-object. @Ruchira shall we improve the >> session host-object to have method to get HttpSession? >> >> Also I hope CarbonUIUtils won't be removed in the future refactoring. >> >> Cheers~ >> >> >> On Mon, Mar 10, 2014 at 2:33 PM, Afkham Azeez wrote: >> >>> IIRC, the CarbonUtils or CarbonUIUtils class has methods to retrieve the >>> server host & ports. >>> >>> >>> Azeez >>> >>> >>> On Mon, Mar 10, 2014 at 2:28 PM, Chan wrote: >>> >>>> Hi folks, >>>> I am having a confusion regarding how to find the carbon server >>>> hostname and port. This problem is related to implementing SSO in jaggery >>>> applications. Say for example in the login.jag we construct the current >>>> hostname to return a form to client to go to the IDP provider page. For >>>> this we need to find the https://server_adress:port/admin/samlsso. For >>>> this the login.jag currently use - >>>> >>>> var host = process.getProperty('server.host') >>>> if(host=="localhost"){ >>>> var postUrl = "https://"; + >>>> process.getProperty('carbon.local.ip') + ":" + >>>> process.getProperty('https.port'); >>>> }else{ >>>> var postUrl = "https://"; + host; >>>> } >>>> >>>> To get the server to work in development we get 'carbon.local.ip' from >>>> process and set it up. For production we suggest users to add the hostname >>>> in the carbon.xml file. 'server.host' will be populated with carbon.xml >>>> entry in runtime. >>>> >>>> The problem in this approach is that we can't specify ports in the >>>> carbon.xml entry. To overcome this -the quick fix for this would be to >>>> append port to the host. But if we do that - proxy scenario is not covered. >>>> What happens is that 'https.port' will return the carbon server port (9443) >>>> but not the proxy port. If we expose the 9443 port to the client it will >>>> not be reachable cause that port is blocked from the inside. >>>> >>>> Is there away to get the current address of the server - which get the >>>> address from local ip for development and full address for production that >>>> we can return for the client (browser)? >>>> >>>> Cheers~ >>>> >>>> -- >>>> Chan (Dulitha Wijewantha) >>>> Software Engineer - Mobile Development >>>> WSO2Mobile >>>> Lean.Enterprise.Mobileware >>>> * ~Email duli...@wso2.com * >>>> * ~Mobile +94712112165 <%2B94712112165>* >>>> * ~Website dulitha.me <
Re: [Dev] Finding current address and port for a carbon server
Hi folks, I looked into CarbonUIUtils and found an interesting method *public static String getServerURL(ServletContext servletContext, HttpSession httpSession). *I can get the ServletContext from the application host-object but there seems to be no method to obtain the vanilla HttpSession from the session host-object. @Ruchira shall we improve the session host-object to have method to get HttpSession? Also I hope CarbonUIUtils won't be removed in the future refactoring. Cheers~ On Mon, Mar 10, 2014 at 2:33 PM, Afkham Azeez wrote: > IIRC, the CarbonUtils or CarbonUIUtils class has methods to retrieve the > server host & ports. > > > Azeez > > > On Mon, Mar 10, 2014 at 2:28 PM, Chan wrote: > >> Hi folks, >> I am having a confusion regarding how to find the carbon server hostname >> and port. This problem is related to implementing SSO in jaggery >> applications. Say for example in the login.jag we construct the current >> hostname to return a form to client to go to the IDP provider page. For >> this we need to find the https://server_adress:port/admin/samlsso. For >> this the login.jag currently use - >> >> var host = process.getProperty('server.host') >> if(host=="localhost"){ >> var postUrl = "https://"; + process.getProperty('carbon.local.ip') >> + ":" + process.getProperty('https.port'); >> }else{ >> var postUrl = "https://"; + host; >> } >> >> To get the server to work in development we get 'carbon.local.ip' from >> process and set it up. For production we suggest users to add the hostname >> in the carbon.xml file. 'server.host' will be populated with carbon.xml >> entry in runtime. >> >> The problem in this approach is that we can't specify ports in the >> carbon.xml entry. To overcome this -the quick fix for this would be to >> append port to the host. But if we do that - proxy scenario is not covered. >> What happens is that 'https.port' will return the carbon server port (9443) >> but not the proxy port. If we expose the 9443 port to the client it will >> not be reachable cause that port is blocked from the inside. >> >> Is there away to get the current address of the server - which get the >> address from local ip for development and full address for production that >> we can return for the client (browser)? >> >> Cheers~ >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> * ~Website dulitha.me <http://dulitha.me>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> *~SO @chan <http://stackoverflow.com/users/813471/chan>* >> > > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>* > *email: **az...@wso2.com* > * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * > *http://blog.afkham.org* <http://blog.afkham.org> > *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * linked-in: **http://lk.linkedin.com/in/afkhamazeez > <http://lk.linkedin.com/in/afkhamazeez>* > > *Lean . Enterprise . Middleware* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Finding current address and port for a carbon server
Hi folks, I am having a confusion regarding how to find the carbon server hostname and port. This problem is related to implementing SSO in jaggery applications. Say for example in the login.jag we construct the current hostname to return a form to client to go to the IDP provider page. For this we need to find the https://server_adress:port/admin/samlsso. For this the login.jag currently use - var host = process.getProperty('server.host') if(host=="localhost"){ var postUrl = "https://"; + process.getProperty('carbon.local.ip') + ":" + process.getProperty('https.port'); }else{ var postUrl = "https://"; + host; } To get the server to work in development we get 'carbon.local.ip' from process and set it up. For production we suggest users to add the hostname in the carbon.xml file. 'server.host' will be populated with carbon.xml entry in runtime. The problem in this approach is that we can't specify ports in the carbon.xml entry. To overcome this -the quick fix for this would be to append port to the host. But if we do that - proxy scenario is not covered. What happens is that 'https.port' will return the carbon server port (9443) but not the proxy port. If we expose the 9443 port to the client it will not be reachable cause that port is blocked from the inside. Is there away to get the current address of the server - which get the address from local ip for development and full address for production that we can return for the client (browser)? Cheers~ -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Mime type lib for Jaggery
Hi all, Do we have a mime type library for jaggery like node-mime[1] ? [1] - https://github.com/broofa/node-mime/blob/master/types/mime.types -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Stuck on Pipes
I have made the change for this but unfortunately it's not directly linked to git. Below is the code of the route action wrapper - *Route Action wrapper* /* A wrapper object that wraps request, response, session and few utility methods */ var RouteAction = function(request, response, session, params){ var route_action = {}; route_action._req = request; route_action._res = response; route_action._session = session; route_action._params = params; route_action._query = function(){ return request.getAllParameters(); }; route_action._body = function(){ var content=request.getContent(); var contentObj={}; //Only parse if the user has provided any content if(content){ contentObj=parse(content); } return contentObj; }; route_action._headers = function(){ return request.getAllHeaders(); }; route_action._files = function(){ var files = request.getAllFiles(); var files_array = []; for(var name in files) { if(files.hasOwnProperty(name)) { files_array.push({ name : name, file : files[name] }); } } return files_array; } return route_action; } *Implementation to the route.js* var route_action = new RouteAction(req,res,session, match.params); return match.ref(route_action)||{}; Cheers~ On Mon, Mar 3, 2014 at 11:37 AM, Chan wrote: > Thanks Sameera. Other than that I started working on the jaggery-router to > improve it in the below method > >- Change public signature of a route as router.get($route, >function($ctx){}); >- $ctx will have _request, _response, _session, _headers(), _params, >_body(), _files() > > We'll review these changes and merge them to the main router. > Cheers~ > > > On Mon, Mar 3, 2014 at 1:12 AM, Sameera Medagammaddegedara < > samee...@wso2.com> wrote: > >> Hello Chan, >> >> Can try you changing the following line ; >> >> router.get('resource',function ... >> >> >> to: >> >> router.get('/resource',function >> >> >> Please let me know if this fixes your problem. >> >> Thank You, >> Sameera >> >> >> On Sun, Mar 2, 2014 at 11:39 PM, Chan wrote: >> >>> Hi Sameera, >>> I am faced in an issue where my route is not being accessed. My code is >>> at on github [1]. I think the route is being added to the route tree but >>> it's not being executed. >>> >>> Also it would be better make the public api of a route function in the >>> below construct. >>> >>> function(context){ >>> >>> context._request // for request object >>> >>> context._response // for response object >>> >>> context._session // for session object >>> context._param // for params hash >>> context._body // for body >>> >>> context._files // for files coming in the request >>> >>> } >>> >>> [1] - https://github.com/dulichan/storage >>> >>> -- >>> Chan (Dulitha Wijewantha) >>> Software Engineer - Mobile Development >>> WSO2Mobile >>> Lean.Enterprise.Mobileware >>> * ~Email duli...@wso2.com * >>> * ~Mobile +94712112165 <%2B94712112165>* >>> >>> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >>> >>> * ~Blog blog.dulithawijewantha.com >>> <http://dulichan.github.io/chan/>* >>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>> >> >> >> >> -- >> Sameera Medagammaddegedara >> Software Engineer >> >> Contact: >> Email: samee...@wso2.com >> Mobile: + 94 077 255 3005 >> > > > > -- > Chan (Dulitha Wijewantha) > Software Engineer - Mobile Development > WSO2Mobile > Lean.Enterprise.Mobileware > * ~Email duli...@wso2.com * > * ~Mobile +94712112165 <%2B94712112165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Stuck on Pipes
Thanks Sameera. Other than that I started working on the jaggery-router to improve it in the below method - Change public signature of a route as router.get($route, function($ctx){}); - $ctx will have _request, _response, _session, _headers(), _params, _body(), _files() We'll review these changes and merge them to the main router. Cheers~ On Mon, Mar 3, 2014 at 1:12 AM, Sameera Medagammaddegedara < samee...@wso2.com> wrote: > Hello Chan, > > Can try you changing the following line ; > > router.get('resource',function ... > > > to: > > router.get('/resource',function > > > Please let me know if this fixes your problem. > > Thank You, > Sameera > > > On Sun, Mar 2, 2014 at 11:39 PM, Chan wrote: > >> Hi Sameera, >> I am faced in an issue where my route is not being accessed. My code is >> at on github [1]. I think the route is being added to the route tree but >> it's not being executed. >> >> Also it would be better make the public api of a route function in the >> below construct. >> >> function(context){ >> >> context._request // for request object >> >> context._response // for response object >> >> context._session // for session object >> context._param // for params hash >> context._body // for body >> >> context._files // for files coming in the request >> >> } >> >> [1] - https://github.com/dulichan/storage >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> >> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >> >> * ~Blog blog.dulithawijewantha.com >> <http://dulichan.github.io/chan/>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> > > > > -- > Sameera Medagammaddegedara > Software Engineer > > Contact: > Email: samee...@wso2.com > Mobile: + 94 077 255 3005 > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulitha.me <http://dulitha.me>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* *~SO @chan <http://stackoverflow.com/users/813471/chan>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Changing .gitignore file in GitRepos
FWI - https://github.com/github/gitignore Cheers~ On Fri, Feb 28, 2014 at 11:16 AM, Geeth Munasinghe wrote: > Corrected .gitignore file is available here[1] > > [1] https://github.com/wso2/carbon-commons/blob/master/.gitignore > > Thanks > Geeth > > > *G. K. S. Munasinghe* > *Software Engineer,* > *WSO2, Inc. http://wso2.com <http://wso2.com/> * > *lean.enterprise.middleware.* > > email: ge...@wso2.com > phone:(+94) 777911226 > > > On Fri, Feb 28, 2014 at 11:11 AM, Sagara Gunathunga wrote: > >> >> Can you provide a link for corrected .gitignore file so that others can >> simply copy it ? >> >> Thanks ! >> >> >> On Fri, Feb 28, 2014 at 11:07 AM, Geeth Munasinghe wrote: >> >>> without the p2.inf file, configurations files from features will not be >>> installed. >>> >>> >>> *G. K. S. Munasinghe * >>> *Software Engineer,* >>> *WSO2, Inc. http://wso2.com <http://wso2.com/> * >>> *lean.enterprise.middleware.* >>> >>> email: ge...@wso2.com >>> phone:(+94) 777911226 >>> >>> >>> On Thu, Feb 27, 2014 at 10:29 PM, Geeth Munasinghe wrote: >>> >>>> Hi >>>> >>>> Please change the .gitignore file of your projects as following. >>>> Current configuration in gitignore does allow p2.inf file to commit to git >>>> repo. >>>> >>>> target >>>> .classpath >>>> .settings >>>> .project >>>> *.iml >>>> *.iws >>>> *.ipr >>>> .idea >>>> >>>> I have made changes to carbon-deployment, carbon-utils, carbon-commons. >>>> >>>> Thanks >>>> Geeth >>>> >>>> >>>> >>>> *G. K. S. Munasinghe* >>>> *Software Engineer,* >>>> *WSO2, Inc. http://wso2.com <http://wso2.com/> * >>>> *lean.enterprise.middleware.* >>>> >>>> email: ge...@wso2.com >>>> phone:(+94) 777911226 >>>> >>> >>> >> >> >> -- >> Sagara Gunathunga >> >> Senior Technical Lead; WSO2, Inc.; http://wso2.com >> V.P Apache Web Services;http://ws.apache.org/ >> Linkedin; http://www.linkedin.com/in/ssagara >> Blog ; http://ssagara.blogspot.com >> >> > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Stuck on Pipes
Hi Sameera, I am faced in an issue where my route is not being accessed. My code is at on github [1]. I think the route is being added to the route tree but it's not being executed. Also it would be better make the public api of a route function in the below construct. function(context){ context._request // for request object context._response // for response object context._session // for session object context._param // for params hash context._body // for body context._files // for files coming in the request } [1] - https://github.com/dulichan/storage -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery][WebSocket] Update on Missing WebSocket APIs
I didn't understand the point you are trying to make. Do we need to do tomcat configurations to get web-sockets to work? On Tue, Feb 25, 2014 at 10:56 AM, Madhuka Udantha wrote: > Hi, > > Jaggery webSocket[4] is missing basic and important apis according to > webSocket defined by RFC 6455[1] and Java WebSocket 1.0 API defined by > JSR-356[3].There for jaggery WebSocket API will be fixed upon[2] on the > $subject > > Thanks > > [1] http://tools.ietf.org/html/rfc6455 > [2] http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html > [3] http://www.oracle.com/technetwork/articles/java/jsr356-1937161.html > [4] http://jaggeryjs.org/apidocs/websocket.jag > -- > *Madhuka* Udantha > Senior Software Engineer > Development Technologies > WSO2 Inc. : http://wso2.com > > *Mobile*: +94774066336 > *Blog*: http://madhukaudantha.blogspot.com/ > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Tentative GA 1.0.0 pack of EMM
$subject http://wso2.org/bamboo/browse/WM001-EMMS001-59/artifact/JOB1/WSO2-EMMS/wso2mobileserver-1.0.0.zip -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Architecture] Restructuring Jaggery Modules
+1 for extracting the extensions. On Tue, Feb 18, 2014 at 1:30 PM, Ruchira Wageesha wrote: > Hi, > > We are in the process of moving all Jaggery modules into a single repo > named, Jaggery Extensions[1]. With this, > >- A Jaggery module will be a self-contained p2 feature which can be >installed via the feature manager. >- All the *.js files and hostobjects which belongs to a module will go >under that modules directory. >- Each module will be versioned and released separately >- All reusable codes should be written as modules and hosted there > > Along with this, Jaggery github source is restructured as well. i.e. At > the moment we ship following Jaggery modules as a part of the Jaggery core > and sources are kept in the Jaggery master. > >- process - module to access environment/system variable >- email - send emails >- carbon - access all carbon related apis >- ws - invoke web services >- oauth - oauth support >- gadget - gadget embedding support >- i18n - i18n support >- uuid - uuid generation > > Above modules too will be moved to [1]. > > Further, Jaggery Extensions project[1] will depend on Jaggery master. > Hence, we are thinking of not shipping above modules as a part of Jaggery > core. Anyone who want those modules, can install them either via a feature > manager or p2-profile gen during the build. > > In the jaggeryjs.org, we will host a different distribution with all > needed modules. This distribution will also be there in git master and > Jaggery extensions source will be fetched via a submodule. > > /Ruchira > > [1] https://github.com/wso2/jaggery-extensions > > -- > > *Ruchira Wageesha **Associate Technical Lead* > *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com>* > > *email: ruch...@wso2.com , blog: > ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>, > mobile: +94 77 5493444 <%2B94%2077%205493444>* > > ___ > Architecture mailing list > architect...@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165 <%2B94712112165>* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] New way of taking JAVA_HOME in mavericks
Hi guys, In mavericks we don't have to hardcode the $JAVA_HOME in .profile file. We can get it using */usr/libexec/java_home. *In our wso2server.sh file we are using the older method which is - JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/${JAVA_VERSION}/Home We can get this by using JAVA_HOME= */usr/libexec/java_home* in mavericks. I think we should support this new feature in our wso2server.sh file cause people are facing difficulties when picking up the proper java path in Mavericks. Resources http://java.dzone.com/articles/java-findingsetting https://developer.apple.com/library/mac/qa/qa1170/_index.html https://lists.forgerock.org/pipermail/openam/2013-November/014425.html -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] What is the correct way to extend enterprise store to use in another product
Hi Dinusha, What I recommend is to build the AppManager with the skeleton of ES product. As for the jaggeryapps like store and publisher have a separate git repository (for each app). @Ruchira we'll have to make store, publisher separate git repos so that everyone can add them as remotes to their store, publisher repository (This merging technique is called subtree[1]). We have followed a similar method in our EMM product but we haven't added the remotes to store or publisher because they are not yet separate repos. Cheers~ [1] - http://git-scm.com/book/ch6-7.html On Thu, Feb 13, 2014 at 12:50 PM, Udara Rathnayake wrote: > Hi Dinusha, > > Are you going to contribute those changes/improvements back to ES or do > only application specific customizations? > > Regards, > UdaraR > > > > On Thu, Feb 13, 2014 at 7:42 AM, Dinusha Senanayaka wrote: > >> Hi All, >> >> Currently we need to customize enterprise-store store/publisher and use >> in App-Manager and API-Manager products. What we have done is, created a >> new git repository called app-manager [1]. Then make a clone of >> enterprise-store repo locally and changed its head to point to repository >> that we created and pulled data there. So our team is working on new repo. >> >> But the issue is how we are going to take the updates done by the >> enterprise-store side. It will be a manual process to take the updates from >> original repo (enterprise-store) and merge changes in a way that does not >> override over changes. As an example, we have removed all the sample asset >> types that comes with enterprise-store and done customizations in >> publisher/store to use our new asset. >> >> Any thoughts on this ? >> >> [1]. https://github.com/wso2/app-manager >> >> Regards, >> Dinusha. >> >> -- >> Dinusha Dilrukshi >> Senior Software Engineer >> WSO2 Inc.: http://wso2.com/ >> Mobile: +94725255071 >> Blog: http://dinushasblog.blogspot.com/ >> >> ___ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Udara Rathnayake* > Software Engineer > WSO2 Inc. : http://wso2.com > > Mobile : +94 772207239 > Twitter : http://twitter.com/udarakr > Blog: http://udarakr.blogspot.com > > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS] [Jaggery] unable to read post method output
*Does **Response received get printed?* On Thu, Feb 13, 2014 at 9:40 AM, Sudheera Palihakkara wrote: > yeah. I get this response. > > { > >- "GeneratedKeys":{ > - "Entry":{ > - "ID":"58" > } >} > > } > > > > > I tried intercepting both jaggery post request and browser plugin (or > wget) request using tcpmon. Both request and response are same except only > Jaggery post can't return the response :( > > > > > On Thu, Feb 13, 2014 at 9:32 AM, Chan wrote: > >> Hmmm.. Are you sure the service will return anything for POST requests? >> Try it from a browser plugin and see. >> >> >> On Thu, Feb 13, 2014 at 9:28 AM, Sudheera Palihakkara >> wrote: >> >>> hi, >>> thank for the reply. I'll try it this way. When I call *http get* same >>> way I can get a json returned form the same service. why *post* don't >>> get a json response. >>> >>> thanks >>> >>> >>> >>> On Thu, Feb 13, 2014 at 8:17 AM, Chan wrote: >>> >>>> This usually happens when you don't return json from your service (You >>>> are mentioning to return json in the post call). Try it out using the xhr >>>> object[1] instead of the post method and check. >>>> >>>> [1] - http://jaggeryjs.org/apidocs/xhr.jag >>>> >>>> >>>> On Wed, Feb 12, 2014 at 6:38 PM, Sudheera Palihakkara < >>>> sudhe...@wso2.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> I'm calling a data service by invoking a rest resource using *http >>>>> post *to insert some data into database. I have configured the data >>>>> service so that it returns the generated key through the response body. >>>>> When I tried this using http client (add-on for chrome) I can see the >>>>> response body includes the result id. But when I used the Jaggery >>>>> *post* it does not return anything. Is anything wrong with Jaggery >>>>> post or am I doing anything wrong. (I'm using http get function with >>>>> jaggery with no issues) >>>>> >>>>> here's my *post* invocation line >>>>> >>>>> >>>>> >>>>> >>>>> *var data_post_result = post(url, post_data, optionalHeadersPost, >>>>> "json", function (data, xhr) {log("Response received"); >>>>> } );* >>>>> >>>>> >>>>> thanks. >>>>> >>>>> ___ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Chan (Dulitha Wijewantha) >>>> Software Engineer - Mobile Development >>>> WSO2Mobile >>>> Lean.Enterprise.Mobileware >>>> * ~Email duli...@wso2.com * >>>> * ~Mobile +94712112165 <%2B94712112165>* >>>> >>>> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >>>> >>>> * ~Blog blog.dulithawijewantha.com >>>> <http://dulichan.github.io/chan/>* >>>> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >>>> >>> >>> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> >> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >> >> * ~Blog blog.dulithawijewantha.com >> <http://dulichan.github.io/chan/>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS] [Jaggery] unable to read post method output
Hmmm.. Are you sure the service will return anything for POST requests? Try it from a browser plugin and see. On Thu, Feb 13, 2014 at 9:28 AM, Sudheera Palihakkara wrote: > hi, > thank for the reply. I'll try it this way. When I call *http get* same > way I can get a json returned form the same service. why *post* don't get > a json response. > > thanks > > > > On Thu, Feb 13, 2014 at 8:17 AM, Chan wrote: > >> This usually happens when you don't return json from your service (You >> are mentioning to return json in the post call). Try it out using the xhr >> object[1] instead of the post method and check. >> >> [1] - http://jaggeryjs.org/apidocs/xhr.jag >> >> >> On Wed, Feb 12, 2014 at 6:38 PM, Sudheera Palihakkara >> wrote: >> >>> Hi, >>> >>> I'm calling a data service by invoking a rest resource using *http post >>> *to insert some data into database. I have configured the data service >>> so that it returns the generated key through the response body. When I >>> tried this using http client (add-on for chrome) I can see the response >>> body includes the result id. But when I used the Jaggery *post* it does >>> not return anything. Is anything wrong with Jaggery post or am I doing >>> anything wrong. (I'm using http get function with jaggery with no issues) >>> >>> here's my *post* invocation line >>> >>> >>> >>> >>> *var data_post_result = post(url, post_data, optionalHeadersPost, >>> "json", function (data, xhr) {log("Response received"); >>> } );* >>> >>> >>> thanks. >>> >>> ___ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Chan (Dulitha Wijewantha) >> Software Engineer - Mobile Development >> WSO2Mobile >> Lean.Enterprise.Mobileware >> * ~Email duli...@wso2.com * >> * ~Mobile +94712112165 <%2B94712112165>* >> >> * ~Website dulithawijewantha.com <http://dulithawijewantha.com/> * >> >> * ~Blog blog.dulithawijewantha.com >> <http://dulichan.github.io/chan/>* >> * ~Twitter @dulitharw <https://twitter.com/dulitharw>* >> > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] Username sets to null when using get method
.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.setUsername(XMLHttpRequestHostObject.java:436) at org.jaggeryjs.hostobjects.xhr.XMLHttpRequestHostObject.jsFunction_open(XMLHttpRequestHostObject.java:217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) ... 59 more Where is the implementation of the get method in jaggery? It's not in the xhr hostobject. -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [Jaggery]Problem with order of function execution
Please use success callbacks of the respective functions [1]. Next time when asking questions please post a gist[2]. It makes things easy to cook an example :). var url = "https://api.twitter.com/1/statuses/user_timeline.json";; var data = { include_entities:true,include_rts:true,screen_name:"wso2",count:1 }; var twitterJson = get(url, data ,"json", function(data, xhr){ print(data); //do your post here }); [1] http://jaggeryjs.org/apidocs/get.jag [2] https://gist.github.com/dulichan/8968945 On Tue, Feb 11, 2014 at 5:47 PM, Dammina Sahabandu wrote: > Hi All, > I'm using a jaggery script which does a http *post* request, and then it > does a http *get* request to acquire some data related to the above > mentioned post request. But it seems to be the both functions run > asynchronously, and eventually the *get* request completes before the > *post* request. So it fails to acquire the requested data. How can I > solve this problem. (I want to make the *post* request to complete before > the *get* request) > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DSS] [Jaggery] unable to read post method output
This usually happens when you don't return json from your service (You are mentioning to return json in the post call). Try it out using the xhr object[1] instead of the post method and check. [1] - http://jaggeryjs.org/apidocs/xhr.jag On Wed, Feb 12, 2014 at 6:38 PM, Sudheera Palihakkara wrote: > Hi, > > I'm calling a data service by invoking a rest resource using *http post *to > insert some data into database. I have configured the data service so that > it returns the generated key through the response body. When I tried this > using http client (add-on for chrome) I can see the response body includes > the result id. But when I used the Jaggery *post* it does not return > anything. Is anything wrong with Jaggery post or am I doing anything wrong. > (I'm using http get function with jaggery with no issues) > > here's my *post* invocation line > > > > > *var data_post_result = post(url, post_data, optionalHeadersPost, "json", > function (data, xhr) {log("Response received"); } );* > > > thanks. > > ___ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] Unable to send mails via EMM
; org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178) > at > org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) > at > org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56) > at > org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) > at > org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141) > at > org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) > at > org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) > at > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) > at > org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:724) > Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: > com.sun.mail.smtp.SMTPSendFailedException: 550 5.4.5 Daily sending quota > exceeded. si6sm154577414pab.19 - gsmtp > > at > org.jaggeryjs.hostobjects.email.SenderHostObject.jsFunction_send(SenderHostObject.java:406) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > ... 59 more > Caused by: com.sun.mail.smtp.SMTPSendFailedException: 550 5.4.5 Daily > sending quota exceeded. si6sm154577414pab.19 - gsmtp > > at > com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388) > at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1207) > at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585) > at javax.mail.Transport.send0(Transport.java:169) > at javax.mail.Transport.send(Transport.java:98) > > > > > > > > > > > > > > Thanks & Regards, > > *Chathurika Mahaarachchi* > Software Engineer, QA. > WSO2 Inc.: http://wso2.com/ > lean.enterprise.middleware > Mobile: +94718223950 > -- Chan (Dulitha Wijewantha) Software Engineer - Mobile Development WSO2Mobile Lean.Enterprise.Mobileware * ~Email duli...@wso2.com * * ~Mobile +94712112165* * ~Website dulithawijewantha.com <http://dulithawijewantha.com/>* * ~Blog blog.dulithawijewantha.com <http://dulichan.github.io/chan/>* * ~Twitter @dulitharw <https://twitter.com/dulitharw>* ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev