Re: [Dev] [Integration Cloud] Swagger Support for ESB REST APIs

2016-09-26 Thread Jagath Sisirakumara Ariyarathne
Hi, While implementing swagger definition for uri-template based APIs, we have following problem. If we have a template like "/view/{symbol}", we need to define "symbol" as a parameter in swagger definition. According to the swagger spec for parameters[1], if it is a query or path parameter,

[Dev] How to get a connection from the carbon datasources

2016-09-26 Thread Chanaka Cooray
Hi Niranda, In c5, you can fetch a datasource object using the data source service or using the jndi context manager. [1] [1] https://github.com/wso2/carbon-datasources Thanks, Chanaka. On Tuesday, September 27, 2016, Niranda Perera

Re: [Dev] Invoking a Jaggery api via HttpURLConnection

2016-09-26 Thread Denuwanthi De Silva
Hi , The above get() method returned the response as null. After several attempts finally got it working with following approach with the help of Nipuna. Thanks a lot Nipuna for helping to sort this out. var xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.setRequestHeader("Accept" ,

Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2016-09-26 Thread Rushmin Fernando
This helped a lot to figure out a class loading issue when installing appmgt feature in to IS. Thanks a lot Ruwan !! On Tue, Sep 27, 2016 at 10:42 AM, Ruwan Abeykoon wrote: > Hi All, > I thought of improving the analysis tool by putting some of the manual > knowledge into the

Re: [Dev] Duplicate OSGI class inspector for Carbon based products

2016-09-26 Thread Ruwan Abeykoon
Hi All, I thought of improving the analysis tool by putting some of the manual knowledge into the code. [1] has a tool which can be used to find out why an intermittent class loading issue occurs. It provides the offending bundle names. Please try it out next time when you come across a

[Dev] [Architecture] WSO2 Message Broker 3.2.0-ALPHA Released !

2016-09-26 Thread Sasikala Kottegoda
Hi All, The WSO2 Message Broker team is pleased to announce the alpha release of WSO2 Message Broker (MB) 3.2.0. Source & binary distribution files of WSO2 Message Broker can be found in: https://github.com/wso2/product-mb/releases/tag/v3.2.0-ALPHA All the known issues identified are listed in

Re: [Dev] How to get a connection from the carbon datasources

2016-09-26 Thread Rajith Vitharana
Hi Niranda, Since we use jndi, IMO this approach is also ok. Other than that, you can also get carbon datasource using Ndatasource component as well. Sample will be as below CarbonDataSource cds = dataSourceService.getDataSource("datasourceName"); You will need to get the datasourceService[2]

Re: [Dev] [Integration Cloud] Swagger Support for ESB REST APIs

2016-09-26 Thread Jagath Sisirakumara Ariyarathne
Hi All, I have completed initial implementation for url-mapping based APIs. Attached sample API and its definitions. I am further working on supporting uri-templates based definitions. Thanks. On Thu, Sep 22, 2016 at 2:09 PM, Jagath Sisirakumara Ariyarathne < jaga...@wso2.com> wrote: > Hi, > >

Re: [Dev] How to get a connection from the carbon datasources

2016-09-26 Thread Supun Sethunga
Similar approach is used in ml [1] too. [1] https://github.com/wso2/carbon-ml/blob/master/components/ml/org.wso2.carbon.ml.database/src/main/java/org/wso2/carbon/ml/database/internal/MLDataSource.java#L30 Regards, On Tue, Sep 27, 2016 at 8:03 AM, Niranda Perera wrote: > Hi

[Dev] How to do authentication/authorization on JAX-RS REST service running on WSO2 AS?

2016-09-26 Thread wenxzhen
Dear all, For a JAX-RS REST service running on WSO2 AS, what's the best way to implement the authentication and authorization for each REST API? Please kindly advice. Thank you very much Regards, Wenxing___ Dev mailing list Dev@wso2.org

[Dev] How to get a connection from the carbon datasources

2016-09-26 Thread Niranda Perera
Hi all, I want to use a jdbc connection provided by a carbon-datasource. I found the following blog from Kishanthan [1], which was done in 2013. it uses the org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory as follows Hashtable environment = new Hashtable();

Re: [Dev] WSO2 Identity Server Error with MailChimp SSO

2016-09-26 Thread Hariprasath Thanarajah
Yes sure we will provide the fix version of mailChimp Authenticator soon. On Monday, September 26, 2016, Srikanth Puppala wrote: > Hi Malaka/Hariparshath, > > It would be great if you provide a fix on top of Identity Server 5.2.0. I > am even fine to go back to any

Re: [Dev] Using dep sync for artifact synchronization of Analytics Cluster

2016-09-26 Thread Sashika Wijesinghe
Hi Gihan, Thanks for the information. Regards, Sashika On Fri, Sep 23, 2016 at 2:04 PM, Gihan Anuruddha wrote: > In a normal scenario, users will do their implementation and test on > dev/staging environments. So simply they just upload their final CApp to > production

Re: [Dev] WSO2 Identity Server Error with MailChimp SSO

2016-09-26 Thread Hariprasath Thanarajah
Yes noted Malaka. On Monday, September 26, 2016, Malaka Silva wrote: > Hi Srikanth, > > Thank you for reporting this and we will provide a solution soon. > > @Hariprasath - Yes you are correct API 2.0 is deprecated and that does > not mean it's currently unavailable. So we

Re: [Dev] Developer Studio/file connector isFileExist method doesn't allow to save the proxy

2016-09-26 Thread Shazni Nazeer
Hi Vivekananthan, Thanks. That works. Shazni Nazeer Associate Technical Lead | WSO2 Mob : +94 37331 LinkedIn : http://lk.linkedin.com/in/shazninazeer Blog : http://shazninazeer.blogspot.com On Mon, Sep 26, 2016 at 12:38 PM, Vivekananthan Sivanayagam <

Re: [Dev] Developer Studio/file connector isFileExist method doesn't allow to save the proxy

2016-09-26 Thread Vivekananthan Sivanayagam
Hi Shazni , I have updated the store with a fixed connector, you can find here [1]. [1] https://storepreview.wso2.com/store/assets/esbconnector/aec1554a-29ea-4dbb-b8c5-5d529a853aa2 Vivekananthan Sivanayagam Associate Software Engineer | WSO2 E:vivekanant...@wso2.com M:+94752786138 On Mon, Sep

Re: [Dev] [Architecture] OSGI Service to provision users and roles based on the SAML response.

2016-09-26 Thread Ishara Cooray
Hi Johann, I have written a custom OSGI service that can be used to provision users based on the SAML response which i can contribute since it is reusable in any application that needs user provision. Appreciate if you can suggest me suitable repository for this. Thanks & Regards, Ishara

Re: [Dev] WSO2 Identity Server Error with MailChimp SSO

2016-09-26 Thread Malaka Silva
Hi Srikanth, Thank you for reporting this and we will provide a solution soon. @Hariprasath - Yes you are correct API 2.0 is deprecated and that does not mean it's currently unavailable. So we should ideally be changing this to the latest version. I managed to reproduce the issue that Srikanth

Re: [Dev] Developer Studio/file connector isFileExist method doesn't allow to save the proxy

2016-09-26 Thread Vivekananthan Sivanayagam
Hi Shazni ​ ​ , I am looking on that. Thanks, Vivekananthan Sivanayagam Associate Software Engineer | WSO2 E:vivekanant...@wso2.com M:+94752786138 On Mon, Sep 26, 2016 at 3:29 PM, Shazni Nazeer wrote: > Hi, > > I'm trying to import fileconnector (version 2.0.2) into

Re: [Dev] WSO2 Identity Server Error with MailChimp SSO

2016-09-26 Thread Hariprasath Thanarajah
Hi Srikanth, On Mon, Sep 26, 2016 at 10:07 AM, Srikanth Puppala < puppala.srika...@gmail.com> wrote: > Hi Malaka, > > Thanks for your response. I did not set any email configuration in > Identity Server or MailChimp. I followed the doc " > https://docs.wso2.com/display/ISCONNECTORS/Configuring+

[Dev] Developer Studio/file connector isFileExist method doesn't allow to save the proxy

2016-09-26 Thread Shazni Nazeer
Hi, I'm trying to import fileconnector (version 2.0.2) into developer studio. I have a proxy in the ESB config project and it uses the fileconnector. I'm using the isFileExist call to check the whether the file being requested exist and return File Not Found error to the caller. The proxy can't

Re: [Dev] Error when browsing and calculating the number of messages with QueueBrowser

2016-09-26 Thread Shazni Nazeer
Hi Hasitha, Please find the created jiira [1] I used AndesAdminService. I could get the number of messages successfully by using the getMessageCount with parameter queueName and the pattern as "queue" method as well as with getQueueByName method. [1] https://wso2.org/jira/browse/MB-1797 Shazni

Re: [Dev] [DEV] NtaskTaskManager Error : No available task nodes for resolving a task location

2016-09-26 Thread Rajith Vitharana
Hi, Can you see Member Joined logs as well? AFAIK Member joined logs are the ones which indicates cluster is correctly connected. Thanks, On 26 September 2016 at 11:36, Biruntha Gnaneswaran wrote: > Hi Rajith, > > Yes I started worker node with -DworkerNode=true parameter.

Re: [Dev] [DEV] NtaskTaskManager Error : No available task nodes for resolving a task location

2016-09-26 Thread Biruntha Gnaneswaran
Hi Rajith, Yes I started worker node with -DworkerNode=true parameter. >From manager : [2016-09-26 11:08:54,170] INFO - MemberUtils Added member: Host: esb.wso2.com, Remote Host:null, Port: 4200, HTTP:-1, HTTPS:-1, Domain: null, Sub-domain:null, Active:true >From the worker : [2016-09-26