Re: [Dev] HTTP Verb PATCH support for MSF4J

2018-08-21 Thread Thusitha Thilina Dayaratne
Hi Malintha,

AFAIK this was not implemented.
It seems like there is an open PR relate to this. IMHO that can be merged
to get the PATCH support if the PR looks good.

[1] - https://github.com/wso2/msf4j/pull/546

On Wed, Aug 8, 2018 at 3:29 AM Malintha Amarasinghe 
wrote:

> Hi all,
>
> Just wanted to check whether we were able to implement this? Looking at
> the code I guess we do not support PATCH in msf4j yet [1]. We have some
> requirements to implement partial update operations in SCIM2 API via msf4j:
> Eg: Adding a user to an existing group without updating the whole group at
> once [2]
>
> [1]
> https://github.com/wso2/msf4j/blob/master/core/src/main/java/org/wso2/msf4j/internal/router/MicroserviceMetadata.java#L120-L127
> [2] https://tools.ietf.org/html/rfc7644#page-32
>
> Thanks!
> Malintha
>
>
> On Mon, Feb 27, 2017 at 9:01 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Created issue[1] to track this.
>>
>> [1] - https://github.com/wso2/msf4j/issues/357
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Feb 27, 2017 at 8:41 AM, Afkham Azeez  wrote:
>>
>>>
>>>
>>> On Mon, Feb 27, 2017 at 6:21 AM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
>>>> Hi Azeez,
>>>>
>>>> Since we restructured swagger support as a separate dependency, if we
>>>> use swagger PATCH annotation then we have to bring swagger dependency again
>>>> to the core. That will increase the minimum jar size. Therefore IMHO it
>>>> would be better if we implement the PATCH annotation without depending on
>>>> Swagger.
>>>> WDYT?
>>>>
>>>
>>> Yeah since it is a simple annotation we may add that to the msf4j core
>>> itself.
>>>
>>>>
>>>> Thanks
>>>> Thusitha
>>>>
>>>> On Mon, Feb 27, 2017 at 12:00 AM, Gayan Gunawardana 
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sun, Feb 26, 2017 at 11:48 PM, Afkham Azeez  wrote:
>>>>>
>>>>>> Someone suggested on SO to use the PATCH annotation from
>>>>>> io.swagger.jaxrs
>>>>>>
>>>>>> That may be a good alternative since we already support Swagger.
>>>>>>
>>>>> Thanks for the alternative so we can go with io.swagger.jaxrs.PATCH.
>>>>>
>>>>>>
>>>>>> On Sun, Feb 26, 2017 at 11:46 PM, Afkham Azeez 
>>>>>> wrote:
>>>>>>
>>>>>>> We can add that annotation to MSF4J itself.
>>>>>>>
>>>>>>> On Sun, Feb 26, 2017 at 11:28 PM, Gayan Gunawardana 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>>
>>>>>>>> Since javax.ws.rs does not provide http verb PATCH we have to have
>>>>>>>> custom Patch annotation as below.
>>>>>>>>
>>>>>>>> @Target({ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@HttpMethod("PATCH")public
>>>>>>>>  @interface PATCH {}
>>>>>>>>
>>>>>>>> Is it ok to have this annotation in component level or is there any
>>>>>>>> common place we can put this annotation ?
>>>>>>>>
>>>>>>>> Alternatively we can use "X-HTTP-Method-Override" header too.
>>>>>>>>
>>>>>>>> WDYT ?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Gayan
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> Gayan Gunawardana
>>>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>>>>>>> Email: ga...@wso2.com
>>>>>>>> Mobile: +94 (71) 8020933
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> *Afkham Azeez*
>>>>>>> Senior Director, Platform 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 <077%20332%20091

Re: [Dev] Lib directory in Stream Processor contains OSGI bundles

2018-06-24 Thread Thusitha Thilina Dayaratne
Hi Tharindu,

AFAIK C5 doesn't support traditional jar files. You need to convert the jar
file to an OSGi bundle and then put it in lib directory as Raveen
mentioned.
Newer versions of mysql-connector jars are already packaged as OSGi
bundles. That is why it is mentioned to put it in the lib directory. If you
are using some other mysql connector version which is not an OSGi bundle,
first you still have to convert it to a bundle.

Thanks
Thusitha

On Wed, Jun 20, 2018 at 2:27 PM Tharindu Malawaraarachchi <
tharind...@wso2.com> wrote:

> Hi all,
> Thanks a lot!
>
> Tharindu
>
> On Wed, Jun 20, 2018 at 9:45 AM Viduranga Gunarathne 
> wrote:
>
>> Hi Tharindu,
>>
>> Please find the comments inline.
>>
>> On Tue, Jun 19, 2018 at 6:33 PM Tharindu Malawaraarachchi <
>> tharind...@wso2.com> wrote:
>>
>>> Hi all,
>>> In Carbon 4 based wso2 products, there are 2 separate folders
>>> (dropins and lib) to keep OSGI bundles and other non OSGI jars. But in wso2
>>> stream processor there is no dropins directory and the lib directory keeps
>>> OSGI bundles.
>>> Is it mandate to convert the non OSGI modules to OSGi with stream
>>> processor?
>>>
>>
>> WSO2 products run on an OSGi environment and it would be best to add as
>> an OSGi bundle rather than a jar. However it is not mandatory. You can add
>> jars also. Accoding to guide[1] you only need to add mysql-connector jars
>> as it is to the lib folder.
>>
>> Also you can refer guide[2] to activate the osgi console and refer
>> blog[3] to see how to debug the osgi bundles at runtime.
>>
>>
>>> Or is there a way to add non OSGI jars [example- sql driver jars] to SP
>>>
>>> Thanks and Regards,
>>> Tharindu
>>> --
>>> *Tharindu Malawaraarachchi*
>>> Software Engineer | WSO2
>>>
>>> tharind...@wso2.com
>>> +94 719340143
>>> https://www.linkedin.com/in/tharindun/
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>> [1] https://docs.wso2.com/display/SP400/Fully+Distributed+Deployment
>> [2] https://docs.wso2.com/display/Carbon447/Product+Startup+Options
>> [3]
>> http://movingaheadblog.blogspot.com/2014/01/how-to-debug-wso2-carbon-products-using.html
>> --
>> Regards*,*
>> *Viduranga Gunarathne*
>> *Software Engineer*
>> *WSO2 (Pvt) Ltd.*
>>
>> *Mobile : *+94712437484
>> *Email   : *vidura...@wso2.com
>> *Web : *http://wso2.com
>> *Blog: *http://medium.com/vlgunarathne
>> <http://wso2.com/signature>
>>
>
>
> --
> *Tharindu Malawaraarachchi*
> Software Engineer | WSO2
>
> tharind...@wso2.com
> +94 719340143
> https://www.linkedin.com/in/tharindun/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Thusitha Thilina Dayaratne*
PhD Student - Cybersecurity Lab
Monash University
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Feign proxy server support

2018-03-20 Thread Thusitha Thilina Dayaratne
Hi Madhawa,

I think you can refer to [1] and [2]. Basic idea is to use okhttp client
inside the feign instead of feign default client.

[1] - https://github.com/OpenFeign/feign/issues/370
[2] - https://github.com/OpenFeign/feign/tree/master/okhttp

Thanks
Thusitha

On Tue, Mar 20, 2018 at 11:45 PM, Madhawa Perera <madha...@wso2.com> wrote:

> Hi Rasika,
>
> Yes, I tried this [2] with a slight modification. It seems working.
> Need to modify the nonProxyHost check to be compatible with multiple
> hostnames. That is nonProxyHost can hold multiple values like
> "localhost|127.0.0.1".
>
> [2] https://github.com/madhawap/feign/commit/
> 4aebf954e730cbeb4fd8c58b95c8d455ab857747
>
> Thank you
> Best Regards,
> Madhawa
>
> On Tue, Mar 20, 2018 at 6:07 PM, Rasika Perera <rasi...@wso2.com> wrote:
>
>> Hi Madhawa,
>>
>> Have you tried forking Feign client? Seems there's a fix[1] for the issue
>> of HTTP Proxy. Can you try it as well?
>>
>> [1] https://github.com/rhudson/feign/commit/5d611d7bcb767a26
>> c06bffdc396f256d02dca353
>>
>> On Tue, Mar 20, 2018 at 5:41 PM, Madhawa Perera <madha...@wso2.com>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> It seems that Feign isn't routing traffic through a configured proxy.
>>> I'm using Feign version 9.3.1
>>> Is there any way to route Feign traffic through an HTTP proxy server?
>>>
>>> I set VM args: -Dhttp.proxyHost and -Dhttp.proxyPort yet Feign seems not
>>> using these configurations. From looking at Feign.Client [1] there is no
>>> option to pass through a Proxy.
>>>
>>> Is there any way that we can overcome this restriction?
>>>
>>> [1] https://github.com/OpenFeign/feign/blob/9.3.1/core/src/m
>>> ain/java/feign/Client.java#L77
>>>
>>> Thank you
>>> Best Regards,
>>> Madhawa
>>>
>>> --
>>> Madhawa Perera | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> <https://maps.google.com/?q=20,+Palm+Grove,+Colombo+03,+Sri+Lanka=gmail=g>
>>> Mobile: +94 (0)77 365 5496 <+94%2077%20365%205496> | Work: +94 11 214
>>> 5345
>>> Email: madha...@wso2.com | Web: www.wso2.com
>>>
>>>
>>
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Senior Software Engineer
>> Blogs: medium.com/@rasikaperera, tiriboy.blogspot.com
>> PGP Key: 56E03A48
>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>
>> <http://wso2.com/signature>
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Madhawa Perera | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 (0)77 365 5496 <077%20365%205496> | Work: +94 11 214 5345
> Email: madha...@wso2.com | Web: www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thusitha Thilina Dayaratne*
PhD Student - Cybersecurity Lab
Monash University
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to use com.sun.management package in Carbon Kernel?

2018-02-26 Thread Thusitha Thilina Dayaratne
g org.wso2.carbon.databridge.agent.feature.group 6.0.55.
>>> Installing org.wso2.carbon.databridge.commons.thrift.feature.group
>>> 6.0.55.
>>> Installing org.wso2.carbon.databridge.commons.feature.group 6.0.55.
>>> Installation failed.
>>> Cannot complete the install because one or more required items could not
>>> be found.
>>>  Software being installed: WSO2 Carbon Metrics JDBC Core Feature
>>> 2.4.0.SNAPSHOT (org.wso2.carbon.metrics.jdbc.core.feature.group
>>> 2.4.0.SNAPSHOT)
>>>  *Missing requirement: JVM Integration for Metrics 4.0.2
>>> (io.dropwizard.metrics.jvm 4.0.2) requires 'package com.sun.management
>>> 0.0.0' but it could not be found*
>>>  Cannot satisfy dependency:
>>>   From: org.wso2.carbon.metrics.core 2.4.0.SNAPSHOT
>>> (org.wso2.carbon.metrics.core 2.4.0.SNAPSHOT)
>>>   To: package com.codahale.metrics.jvm [4.0.0,5.0.0)
>>>  Cannot satisfy dependency:
>>>   From: org.wso2.carbon.metrics.jdbc.core 2.4.0.SNAPSHOT
>>> (org.wso2.carbon.metrics.jdbc.core 2.4.0.SNAPSHOT)
>>>   To: package org.wso2.carbon.metrics.core [2.4.0,3.0.0)
>>>  Cannot satisfy dependency:
>>>   From: WSO2 Carbon Metrics JDBC Core Feature 2.4.0.SNAPSHOT
>>> (org.wso2.carbon.metrics.jdbc.core.feature.group 2.4.0.SNAPSHOT)
>>>   To: org.wso2.carbon.metrics.jdbc.core [2.4.0.SNAPSHOT]
>>> Application failed, log file location: /home/isuru/work/git-projects/
>>> carbon-metrics/distribution/target/director/configuration/15
>>> 19634124196.log
>>>
>>> How can I solve this issue?
>>>
>>> --
>>> Isuru Perera
>>> Technical Lead | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>> Contact: +IsuruPereraWSO2
>>> <https://www.google.com/+IsuruPereraWSO2/about>
>>>
>>
>>
>
>
> --
> Isuru Perera
> Technical Lead | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thusitha Thilina Dayaratne*
PhD Student - Cybersecurity Lab
Monash University
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Accessing authentication admin service right after server startup

2018-02-22 Thread Thusitha Thilina Dayaratne
Hi Amanda,

AFAIK ServerStartupObservers get notify after the transport activation[1].

[1] -
https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/internal/StartupFinalizerServiceComponent.java#L209

Thanks

On Thu, Feb 22, 2018 at 6:25 PM, Amanda Jayanetti  wrote:

> Hi all,
>
> For a task that I'm currently working on, authentication admin service
> needs to be called right after server startup.
>
> I'm using ServerStartupObserver for registering a listener which invokes
> the function from which the admin service gets called. But at the time this
> function gets invoked, the authentication admin service though deployed, is
> not accessible since transports have not been activated.
>
> Any suggestions/thoughts on how the above issue can be resolved is highly
> appreciated.
>
> Best Regards,
> Amanda
> --
> *Amanda Jayanetti*
> Software Engineer
> WSO2, Inc.; http://wso2.com
>
> Mobile: +9471957591 <+94%2071%20185%202792>1
>
> ___
> 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


[Dev] [GSoC 2018] Git Pull Request based vulnerability scanning Feature for WSO2 Security Scanning Portal.

2018-02-13 Thread Thusitha Thilina Dayaratne
Hi All,

I'm interested in the GSoC project [1]. AFAIU the project is to do the
OWSAP security scan and FindSecurityBugs scan for all the PRs before they
get merge to WSO2 code base.

Is WSO2 Security Scanning Portal an internal project? If not is there any
documentation or anything that I can refer to get a basic idea?

[1] - https://docs.wso2.com/display/GSoC/Project+Proposals+for+
2018#ProjectProposalsfor2018-Proposal21:GitPullRequestbasedvulnerabili
tyscanningFeatureforWSO2SecurityScanningPortal

Thanks
-- 
*Thusitha Thilina Dayaratne*
PhD Student - Cybersecurity Lab
Monash University
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon JNDI cannot find com.sun.jndi.ldap.LdapCtxFactory

2018-01-20 Thread Thusitha Thilina Dayaratne
Hi Rukshan,

Does your environment contains anything or is it a just empty map?

Thanks
Thusitha

On Sun, Jan 21, 2018 at 3:35 AM, Rukshan Premathunga 
wrote:

> Hi All,
>
> Recently we started to write a LDAP client and observed following
> exception when i create context instance.
> context = new InitialDirContext(environment);
>
> Error obtaining connection. Cannot find the InitialContextFactory
> com.sun.jndi.ldap.LdapCtxFactory. javax.naming.NoInitialContextException:
> Cannot find the InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory.
> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.lambda$
> getInitialContextInternal$20(JNDIContextManagerImpl.java:118)
> at java.util.Optional.orElseThrow(Optional.java:290)
> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.
> getInitialContextInternal(JNDIContextManagerImpl.java:118)
> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.
> newInitialContext(JNDIContextManagerImpl.java:68)
> at org.wso2.carbon.jndi.internal.osgi.factory.
> DefaultContextFactory.lambda$getInitialContext$23(
> DefaultContextFactory.java:68)
> at org.wso2.carbon.jndi.internal.util.LambdaExceptionUtils.
> lambda$rethrowFunction$4(LambdaExceptionUtils.java:120)
> at java.util.Optional.map(Optional.java:215)
> at org.wso2.carbon.jndi.internal.osgi.factory.DefaultContextFactory.
> getInitialContext(DefaultContextFactory.java:68)
> at javax.naming.spi.NamingManager.getInitialContext(
> NamingManager.java:684)
>
>
> I was able to get the context successfully using following workaround. But
> since it is not the proper way can we have a way to solve this issue? It
> seems carbon jndi cannot find the LdapCtxFactory.
>
> LdapCtxFactory.getLdapCtxInstance(environment.get(Context.PROVIDER_URL),
> environment);
>
>
> Thanks and Regards
>
> --
> Rukshan Chathuranga.
> Software Engineer.
> WSO2, Inc.
> +94711822074 <071%20182%202074>
>
> ___
> 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


Re: [Dev] Separately Using WSO2 as a war File

2018-01-09 Thread Thusitha Thilina Dayaratne
Hi Amin,

AFAIU you want to do something like deploy WSO2 ESB functionality as a
webapp in Tomcat. Is there any specific requirement for do that?
I think WSO2 had a separate webapp mode prior to 4.x kernel but now this is
not continue.
AFAIS main concerns would be

   - Most of the functionalities are coming from jar/bundles inside
   repository/components/plugin directory. So you need to think how to pack
   them if you gonna make it a webapp
   - Directory structure and deployment locations are specific to WSO2
   server

Thanks
Thusitha

On Tue, Jan 9, 2018 at 9:39 PM, Amin, Fakabbir 
wrote:

> Hi Team,
>
>
>
> I wanted to contribute to the open source project and also experiment with
> WSO2 ESB. The structure of projects is not like simple war files.
>
>
>
> More specifically, If I want to experiment with the source code but not
> use the default server deployment method what are the challenges would
> arise.
>
> As deployment on local server by running ./wso2server.sh is good but not
> easy to go on server and already implemented projects.
>
>
>
> Regards,
>
> Amin, Fakabbir
>
> Associate Software Developer
>
> CGI, India
>
> ___
> 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


Re: [Dev] [MSF4J] Running multiple MicroserviceRunners in a single JVM.

2018-01-09 Thread Thusitha Thilina Dayaratne
Hi Irshad,

As Azeez mentioned this should work out of the box. We are doing same thing
in our test cases as well[1]. You don't have to create a separate thread
since MicroserveRunner internals will do that for you.

[1] -
https://github.com/wso2/msf4j/blob/master/core/src/test/java/org/wso2/msf4j/HttpServerTest.java#L125

Thanks
Thusitha

On Tue, Jan 9, 2018 at 8:40 PM, Afkham Azeez  wrote:

> I tried the following and things worked as expected.
>
> @Path("/hello")
> public class HelloService {
>
> private String id;
>
> public HelloService(String id) {
> this.id = id;
> }
>
> @GET
> @Path("/{name}")
> public String hello(@PathParam("name") String name) {
> System.out.println("Hello");
> return "Hello " + name + " from " + id;
> }
> }
>
> -
>
> public class Application {
> public static void main(String[] args) {
> new MicroservicesRunner(8080)
> .deploy(new HelloService("1"))
> .start();
> new MicroservicesRunner(8081)
> .deploy(new HelloService("2"))
> .start();
> new MicroservicesRunner(8082)
> .deploy(new HelloService("3"))
> .start();
> new MicroservicesRunner(8083)
> .deploy(new HelloService("4"))
> .start();
>}
> }
> ---
>
> Is that not working for you as expected?
>
> On Tue, Jan 9, 2018 at 12:26 PM, Irshad Nilam  wrote:
>
>> Hi all,
>>
>> I am working on integration test for 4 microservices written in MSF4J.
>>
>> 1 - A Microservice
>> 2 - B Microservice
>> 3 - C Microservice
>> 4 - D Microservice
>>
>> These are implemented in a way to deploy them separately.
>>
>> Application code (where we deploy the microservice using microservice
>> runner) will look similar to this.
>>
>>
>> public class Application {
>>
>>
>> public static void main(String[] args) {
>>
>> Application application = new Application();
>> application.runMS(8081);
>>
>> }
>>
>> public void runMS(int port) {
>>
>> MicroservicesRunner msRunner = new MicroservicesRunner(port);
>>
>> msRunner.deploy(new AService())
>>
>> .addExceptionMapper(
>> new AKeyExceptionMapper(),
>> new AExceptionMapper(),
>> new NotFoundExceptionMapper())
>> .start();
>>
>> }
>> }
>>
>>
>> For the integration test, I want to start these four microservices with
>> the exception mappers. To achieve this, I tried to start this microservice
>> in separate threads as bellow. (in TestNG Suite)
>>
>> //Run A microservice
>> new Thread(() -> new pathtoA.Application().runMS(8081)).start();
>>
>> //Run B microservice
>> new Thread(() -> new pathtoB.Application().runMs(8082)).start();
>>
>> //Run C microservice
>> new Thread(() -> new pathtoC.Application().runMs(8083)).start();
>>
>> //Run D microservice
>> new Thread(() -> new pathtoD.Application().runMs(8084)).start();
>>
>>
>> *But I'm having a problem wherein all the four ports, only DService is
>> getting deployed.   AFAIU this is because having multiple *
>> org.wso2.msf4j.MicroserviceRunner* classes in the same JVM and only one
>> getting loaded. *
>>
>> *I have a requirement where I need to run all 4 microservice in one JVM
>> because of resource issues. ** Is there a way to achieve this without
>> going to separate JVM for each service?*
>>
>>
>> Please note those Exception mappers belong to each of the microservice
>> packages. And should also be tested with integration test. So that I cannot
>> run these service like this.
>>
>> MicroservicesRunner msRunner = new MicroservicesRunner(port1,port2, port3);
>> microservicesRunner.deploy(serviceA, serviceB, 
>> serivice3).addExceptionMapper(Amapper, Bmapper, cMapper).start();
>>
>>
>> Thanks and regards.
>> --
>> Irshad Nilam
>> Software Engineering Intern
>> WSO2
>>
>> Email  : irsh...@wso2.com
>> Mobile :  +94 77 3669262 <077%20366%209262>
>> 
>>
>>
>
>
> --
> *Afkham Azeez*
> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * *
> *email: **az...@wso2.com* 
> * cell: +94 77 3320919 <077%20332%200919>blog: **http://blog.afkham.org*
> 
> *twitter: **http://twitter.com/afkham_azeez*
> 
> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
> *
>
> *Lean . Enterprise . Middleware*
>
> ___
> 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


Re: [Dev] WSO2 Products updates question

2018-01-07 Thread Thusitha Thilina Dayaratne
Hi Juan,

Please find the answers inline

>
> The product updates like
>
> WSO2 API Manager - update5
> WSO2 Enterprise Integrator 6.1.1 - update15
> WSO2 Identity Server 5.4.0 - update3
>
> Are usable? Do you recomend to download and use it?
>
Yes . WSO2 now do patch releases(Or updates) fortnightly. Most of the times
though they not contains new features, they contains fixes to the existing
issues/bugs, security fixes and also some improvements. Therefore IMHO it
is highly recommend to use the latest.

> Or are testing versions to the next version? Like a preview for API 2.2...
>
AFAIK these are not testing versions. As I mentioned in earlier these are
updates for latest stable released version.

> Can we use this versions and update it with wum?
>
AFAIK you can't add theses updated versions to wum. You need to add the
base pack to WUM. e.g. APIM 2.2.0 and then update that using wum

Thanks
Thusitha


On Mon, Jan 8, 2018 at 11:16 AM, Juan Pablo Vadell 
wrote:

> Hi,
>
> The product updates like
>
> WSO2 API Manager - update5
> WSO2 Enterprise Integrator 6.1.1 - update15
> WSO2 Identity Server 5.4.0 - update3
>
> Are usable? Do you recomend to download and use it?
>
> Or are testing versions to the next version? Like a preview for API 2.2...
>
> Can we use this versions and update it with wum?
>
> What do you recommend to use? Original version + wum? or updateX version?
>
> Thank you,
>
> Juan Pablo Vadell | *VATROX*
> *CTO*
>
>
> ___
> 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


Re: [Dev] Correct formats of x-www-form-urlencoded

2018-01-03 Thread Thusitha Thilina Dayaratne
Hi Senduran,

IMHO x-www-form-urlencodedis for simple key value pairs. When the payload
is complicated, we should use multipart/form-data instead of
x-www-form-urlencoded content type. It can handle any complex complex
scenarios that you mentioned.

Thanks
Thusitha

On Wed, Jan 3, 2018 at 4:50 PM, Senduran Balasubramaniyam  wrote:

> Hi all,
>
> When an XML or a JSON is converted to  x-www-form-urlencoded format the
> key value pair is created.
> i.e
>
> 
>   value1
>   value2
> 
>
> will be converted to key1=value=value2
>
> similarly
>
> {"key1" : "value1", "key2" : "value2"} also get converted to
> key1=value=value2
>
> But what if the XML or JSON is not only having simple key value i.e having
> an array or a child element
>
> for example,
> 
>   value1
>   
> subvalue1
> subvalue2
>   
> 
>
> similarly for JSON like
> {"key1" : "value1", "key2" : {"subkey1" : "subvalue1"}} or
>
> JSON with array
> {"key1" : "value1", "key2" : ["arrayvalue1", "arrayvalue2"]}
>
>
> Kindly let me know the available correct formats for
> application/x-www-form-urlencoded content type.
> Further it will be really helpful if you could point to a specification or
> a standard document
>
> Thanks
> Senduran
>
>
> --
> *Senduran *
> Senior Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548 <077%20952%206548>
>
> ___
> 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


Re: [Dev] Provide deployment.yaml support for carbon-transport

2017-10-09 Thread Thusitha Thilina Dayaratne
Kind reminder on this :)

On Fri, Oct 6, 2017 at 9:44 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> Hi Team,
>
> Could you please review and merge the PR [1]. This is mainly to remove the
> unnecessary OSGi dependencies from the netty.http bundle and to provide
> deployment.yaml support for transport configs.
>
> [1] https://github.com/wso2/carbon-transports/pull/392/files
>
> Thanks
> --
> Thusitha Dayaratne
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is there a CryptoUtil available in C5?

2017-10-09 Thread Thusitha Thilina Dayaratne
Hi Subhashinie,

C5 doesn't contain that particular class. Could you tell us what do you
wanna achieve?
If you want to encrypt/decrypt texts, you can use the secvault. You can
refer [1] if that is your intention.

[1]
https://github.com/wso2/carbon-secvault/blob/master/samples/org.wso2.carbon.secvault.samples.standalone/src/main/java/org/wso2/carbon/secvault/samples/standalone/Application.java


Thanks
Thusitha

On Mon, Oct 9, 2017 at 3:25 PM, Subhashinie Koshalya 
wrote:

> Hi all,
>
> I am supposed to store a token securely. Is there something similar to
> CryptoUtil [1] available in C5?
>
> [1] https://github.com/wso2/carbon-kernel/blob/4.4.x/core/
> org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/
> util/CryptoUtil.java
> 
>
> Thanks and regards,
> Subhashinie
> Intern | Software Engineering
> WSO2, Inc. : http://wso2.com
>
> Email : subhashi...@wso2.com
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Provide deployment.yaml support for carbon-transport

2017-10-05 Thread Thusitha Thilina Dayaratne
Hi Team,

Could you please review and merge the PR [1]. This is mainly to remove the
unnecessary OSGi dependencies from the netty.http bundle and to provide
deployment.yaml support for transport configs.

[1] https://github.com/wso2/carbon-transports/pull/392/files

Thanks
-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Carbon Kernel 5.2.0 Released !!!

2017-09-27 Thread Thusitha Thilina Dayaratne
*WSO2 Carbon Kernel 5.2.0 - Released !!!*


We are pleased to announce the release of WSO2 Carbon Kernel 5.2.0. The
source and tag location for this release are available here
.

WSO2 Carbon Kernel 5.2.0 is the core of the next-generation WSO2 Carbon
platform. We have completely rearchitected Carbon Kernel from the ground up
with the latest technologies and patterns. Additionally, the Carbon Kernel
is now a lightweight, general-purpose OSGi runtime specializing in hosting
servers, providing key functionality for server developers. The result is a
streamlined and even more powerful middleware platform than ever before.

This release of the WSO2 Carbon Kernel includes the following key features. For
further details please see the documentation
.


Key Features

   - Java 8 Support
   - Carbon Component Startup Order Resolver
   - Carbon Tools - Jar To Bundle Converter and Dropins Installer
   - Equipped with Eclipse Luna SR2 OSGi Framework
   - Dropins Support for OSGi Ready Bundles
   - Carbon Launcher
   - Centralized Logging Framework with Log4j 2.0 as the Backend
   - Pluggable Runtime Management
   - OSGi Test Framework
   - Audit Log Mechanism
   - JMX support
   - Carbon Context API
   - Centralized Config Management

*Known Issues*

   - WSO2 Carbon Kernel 5.2.0 - Known Issues
   

How To Contribute

You can find more instructions on how to contribute on our documentation

site.

If you have any suggestions or are interested in Carbon Kernel 5.2.0
discussions, you can join the dev@wso2.org or architect...@wso2.org mailing
lists.
Reporting Issues

We encourage you to report issues, documentation errors regarding WSO2
Carbon Kernel 5.2.0 through the public issue tracking system
.


Thanks,

WSO2 Platform Team
-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR

2017-09-19 Thread Thusitha Thilina Dayaratne
Hi Farasath,

Merged the PR.




On Tue, Sep 19, 2017 at 6:36 PM, Farasath Ahamed  wrote:

> Hi,
>
> Can you please review and merge the following PR[1]. This needs to go into
> Kernel 4.4.18
>
> [1] https://github.com/wso2/carbon-kernel/pull/1538
>
>
>
>
> Thanks,
> Farasath Ahamed
> Software Engineer, WSO2 Inc.; http://wso2.com
> Mobile: +94777603866
> Blog: blog.farazath.com
> Twitter: @farazath619 
> 
>
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PR

2017-09-19 Thread Thusitha Thilina Dayaratne
Hi Nila,

Merged the PR

Thanks
Thusitha

On Tue, Sep 19, 2017 at 4:56 PM, Nilasini Thirunavukkarasu <
nilas...@wso2.com> wrote:

> Hi,
>
> Can you please review and merge the following PR.
> [1] - https://github.com/wso2/carbon-kernel/pull/1533
>
>
> Thanks,
> Nila.
>
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823 <+94%2077%20524%201823>
> Web : http://wso2.com/
>
>
> 
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the PRs

2017-09-19 Thread Thusitha Thilina Dayaratne
Hi Thanuja,

Merged the PRs

Thanks
Thusitha

On Tue, Sep 19, 2017 at 3:49 PM, Thanuja Jayasinghe 
wrote:

> Hi,
>
> Can you please review and merge the following PRs.
>
> [1] - https://github.com/wso2/carbon-kernel/pull/1535
> [2] - https://github.com/wso2/carbon-kernel/pull/1531
>
> Thanks,
> Thanuja
>
> --
> *Thanuja Lakmal*
> Associate Technical Lead
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5} Inconsistent locations for runtime 'conf' directory and runtime 'deployment' directory

2017-09-18 Thread Thusitha Thilina Dayaratne
Hi Sajith,

So, the conf directory for each runtime should be
> /conf// and there shouldn't be a 'conf' directory
> inside the runtime directory, right?

Yes that is correct

Another question: Where should the resources (e.g. security certificates,
> databases, DB scripts) should go? Do they goes into the
> resources// or /wso2//r
> esources/ directory?

databases and dbscripts will be in /databases and
/dbscripts directories. All the keystore(jks) will be in
/resources/security directory. The assumption was keystores
will not get changed based on the runtime.


Thanks
Thusitha


On Mon, Sep 18, 2017 at 11:48 AM, SajithAR Ariyarathna <sajit...@wso2.com>
wrote:

> Hi Thusitha,
>
> Sorry that I missed that part in the architecture discussion.
> So, the conf directory for each runtime should be
> /conf// and there shouldn't be a 'conf' directory
> inside the runtime directory, right?
>
> Another question: Where should the resources (e.g. security certificates,
> databases, DB scripts) should go? Do they goes into the
> resources// or /wso2//resources/
> directory?
>
> Thanks.
>
> On Mon, Sep 18, 2017 at 11:06 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sajith,
>>
>> This was done due to the assumption that users will not edit anything
>> inside the wso2 directory. Please refer the [1] for the detailed
>> explanation.
>>
>> We need to do slight modification for the above directory structure.
>>> Since we are not allowing the end user to change any file inside wso2
>>> folder(ServerHome/wso2), we cannot keep the conf directory of each runtime
>>> inside wso2 directory. So we are planning to move out conf directory of
>>> each runtime from wso2 directory. Modified directory structure will look
>>> like below (changes from the above structure is highlighted in red colour),
>>
>>
>> [1] - [Architecture] Multiple runtime support for C5 based products
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Sep 18, 2017 at 10:41 AM, SajithAR Ariyarathna <sajit...@wso2.com
>> > wrote:
>>
>>> Hi Platform Team,
>>>
>>> According to carbon-utils [1], runtime 'conf' directory is at
>>> /conf//. According to the carbon-deployment [2],
>>> runtime deployment directory is at /wso2//d
>>> eployment/. I noticed an inconsistency here.
>>> Any particular reason behind this? IMO, runtime 'conf' directory should
>>> be at /wso2//conf/
>>>
>>> [1] https://github.com/wso2/carbon-utils/blob/v2.0.2/compone
>>> nts/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/util
>>> s/Utils.java#L92-L99
>>> [2] https://github.com/wso2/carbon-deployment/blob/v5.1.4/co
>>> mponents/org.wso2.carbon.deployment.engine/src/main/java/org
>>> /wso2/carbon/deployment/engine/config/DeploymentConfiguration.java#L38
>>>
>>> Thanks.
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ${ballerina.home} variable found in the netty-transports.yml config in carbon-tranposrts

2017-09-17 Thread Thusitha Thilina Dayaratne
Hi Vinod,

In addition to what Sajith mentioned, shouldn't we move all the configs to
> the deployment.yaml, according to the C5 based config model[1]? Why are we
> having a separate config for netty?

AFAIK the idea is to move all the carbon-transport related configs to the
deployment.yaml. I think we couldn't do this due to the time constraints in
previous releases.

Thanks
Thusitha

On Mon, Sep 18, 2017 at 11:15 AM, Vinod Kavinda <vi...@wso2.com> wrote:

> HI All,
> In addition to what Sajith mentioned, shouldn't we move all the configs to
> the deployment.yaml, according to the C5 based config model[1]? Why are we
> having a separate config for netty?
>
> [1] - https://github.com/wso2/carbon-config/blob/master/
> docs/UpdatingConfigurations.md
>
> On Mon, Sep 18, 2017 at 11:12 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sajith,
>>
>> AFAIK with the redesign of carbon-transport, OSGi functionality is no
>> longer valid in transport. But IMHO we should fix this.
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Sep 18, 2017 at 11:00 AM, SajithAR Ariyarathna <sajit...@wso2.com
>> > wrote:
>>
>>> Hi All,
>>>
>>> I noticed $subject [1]. Any particular reason behind this?
>>>
>>> This Ballerina variable has been introduced in v4.2.3 and presents at
>>> the latest v6.0.7 too. IMO, this variable shouldn't be in the
>>> netty-transports.yml as this is not a Ballerina repo.
>>>
>>> [1] https://github.com/wso2/carbon-transports/blob/v6.0.7/fe
>>> atures/http/org.wso2.carbon.transport.http.netty.feature/res
>>> ources/conf/netty-transports.yml#L136
>>>
>>> Thanks.
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> <http://wso2.com/signature>
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ${ballerina.home} variable found in the netty-transports.yml config in carbon-tranposrts

2017-09-17 Thread Thusitha Thilina Dayaratne
Hi Sajith,

AFAIK with the redesign of carbon-transport, OSGi functionality is no
longer valid in transport. But IMHO we should fix this.

Thanks
Thusitha

On Mon, Sep 18, 2017 at 11:00 AM, SajithAR Ariyarathna 
wrote:

> Hi All,
>
> I noticed $subject [1]. Any particular reason behind this?
>
> This Ballerina variable has been introduced in v4.2.3 and presents at the
> latest v6.0.7 too. IMO, this variable shouldn't be in the
> netty-transports.yml as this is not a Ballerina repo.
>
> [1] https://github.com/wso2/carbon-transports/blob/v6.0.7/
> features/http/org.wso2.carbon.transport.http.netty.feature/
> resources/conf/netty-transports.yml#L136
>
> Thanks.
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5} Inconsistent locations for runtime 'conf' directory and runtime 'deployment' directory

2017-09-17 Thread Thusitha Thilina Dayaratne
Hi Sajith,

This was done due to the assumption that users will not edit anything
inside the wso2 directory. Please refer the [1] for the detailed
explanation.

We need to do slight modification for the above directory structure. Since
> we are not allowing the end user to change any file inside wso2
> folder(ServerHome/wso2), we cannot keep the conf directory of each runtime
> inside wso2 directory. So we are planning to move out conf directory of
> each runtime from wso2 directory. Modified directory structure will look
> like below (changes from the above structure is highlighted in red colour),


[1] - [Architecture] Multiple runtime support for C5 based products

Thanks
Thusitha

On Mon, Sep 18, 2017 at 10:41 AM, SajithAR Ariyarathna 
wrote:

> Hi Platform Team,
>
> According to carbon-utils [1], runtime 'conf' directory is at
> /conf//. According to the carbon-deployment [2],
> runtime deployment directory is at /wso2//
> deployment/. I noticed an inconsistency here.
> Any particular reason behind this? IMO, runtime 'conf' directory should be
> at /wso2//conf/
>
> [1] https://github.com/wso2/carbon-utils/blob/v2.0.2/
> components/org.wso2.carbon.utils/src/main/java/org/wso2/
> carbon/utils/Utils.java#L92-L99
> [2] https://github.com/wso2/carbon-deployment/blob/v5.1.4/
> components/org.wso2.carbon.deployment.engine/src/main/
> java/org/wso2/carbon/deployment/engine/config/
> DeploymentConfiguration.java#L38
>
> Thanks.
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge PR for kernel

2017-09-14 Thread Thusitha Thilina Dayaratne
Hi Pulasthi,

PR merged.

Thanks
Thusitha

On Thu, Sep 14, 2017 at 6:51 PM, Pulasthi Mahawithana 
wrote:

> Hi,
>
> Please review and merge [1], which fixes [2]. Related Identity JIRA is at
> [3].
>
> [1] https://github.com/wso2/carbon-kernel/pull/1527
> 
> [2] https://github.com/wso2/carbon-kernel/issues/1528
> [3] https://wso2.org/jira/browse/IDENTITY-6048
>
>
> --
> *Pulasthi Mahawithana*
> Senior Software Engineer
> WSO2 Inc., http://wso2.com/
> Mobile: +94-71-5179022 <+94%2071%20517%209022>
> Blog: https://medium.com/@pulasthi7/
>
> 
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Hazelcast jar update

2017-09-11 Thread Thusitha Thilina Dayaratne
Hi Norberto,

If you are trying to upgrade the underlying hazelcast version to newer
version, you may have to consider all the API changes that will affect the
carbon core[1].

[1] -
https://github.com/wso2/carbon-kernel/tree/4.4.x/core/org.wso2.carbon.core/src/main/java/org/wso2/carbon/core/clustering

Thanks
Thusitha

On Mon, Sep 11, 2017 at 5:44 PM, Norberto Fernandes 
wrote:

> Hi,
>
> Do you know if there is any concern while updating hazelcast jar present
> on Integrator distribution into a more recent version of hazelcast?
>
> Thanks in advance.
> Norberto
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread Thusitha Thilina Dayaratne
Hi Sajith,

>From C5-m4 onwards carbon.sh file will reside in /bin
directory. Therefore no need to write a separate startup script for runtime.
Based on the bin directory, the script will set the correct runtime from
the script.

If you want, you can have a new script inside /bin directory,
which calls the relevant carbon.sh in the /bin

Thanks
Thusitha


On Fri, Sep 8, 2017 at 5:02 PM, SajithAR Ariyarathna <sajit...@wso2.com>
wrote:

> Hi Thusitha,
>
> In C5 v5.2.0-m3, when we want to add a new runtime to a product (e.g.
> adding dashboard runtime to Stream Processor product) what we did was,
> - Installed the necessary features to that tuntime
> - Added new startup scripts (dashboard.sh & dashboard.bat) for that runtime
>
> However with the C5 v5.2.0-alpha version, I noticed that the carbon.sh
> script has been changed with bunch of new variables (including $RUNTIME).
> My query is on how one should write startup scripts (e.g. dashboard.sh &
> dashboard.bat) for a particular runtime in the v5.2.0-alpha version.
>
> Thanks.
>
> On Fri, Sep 8, 2017 at 4:16 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sajith,
>>
>> Why do you want to write a runtime specific script?
>>
>> Thanks
>> Thusitha
>>
>> On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna <sajit...@wso2.com>
>> wrote:
>>
>>> Hi Kernel Team,
>>>
>>> $subject?
>>> In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh
>>> startup script is replaced with $RUNTIME variable [1]. Do we need to pass
>>> that as an argument in the runtime startup script?
>>>
>>> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-alpha/
>>> features/org.wso2.carbon.runtime.feature/resources/wso2/
>>> default/bin/carbon.sh#L285
>>>
>>> Thanks.
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] How to write a startup script for a runtime in Carbon Kernal v5.2.0-alpha

2017-09-08 Thread Thusitha Thilina Dayaratne
Hi Sajith,

Why do you want to write a runtime specific script?

Thanks
Thusitha

On Fri, Sep 8, 2017 at 4:07 PM, SajithAR Ariyarathna 
wrote:

> Hi Kernel Team,
>
> $subject?
> In C5 v5.2.0-alpha, the place one put the runtime name in the carbon.sh
> startup script is replaced with $RUNTIME variable [1]. Do we need to pass
> that as an argument in the runtime startup script?
>
> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-
> alpha/features/org.wso2.carbon.runtime.feature/resources/wso2/default/bin/
> carbon.sh#L285
>
> Thanks.
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Getting exception while using andes-client lib as JMS client for API Manager 3.0.

2017-08-21 Thread Thusitha Thilina Dayaratne
Are we registering the service manually or are we going to use the SPIfly
to achieve the same purpose?

Thanks
Thusitha

On Mon, Aug 21, 2017 at 10:00 PM, Abimaran Kugathasan 
wrote:

> Hi Asanka,
>
> As I checked offline with Niranjan, this SPI service introduced in C5. I'm
> checking on this further.
>
> On Mon, Aug 21, 2017 at 11:03 AM, Asanka Abeyweera 
> wrote:
>
>> Hi Abimaran and all,
>>
>> Is the requirement to expose as SPI service something introduced in
>> Carbon 5? I am curious on how it worked with APIM 2.1.0. Can't we do the
>> same thing?
>>
>> On Mon, Aug 21, 2017 at 10:48 AM, Abimaran Kugathasan 
>> wrote:
>>
>>> Hi,
>>>
>>> We are embedding Message Broker feature into API Manager 3.0 core, now
>>> API Manager will function as both MB server and client to manage its
>>> artifacts such as API, application, subscription, throttling etc between
>>> its nodes and Gateway. andes-client [1] will function as JMS client for
>>> embedded MB.
>>>
>>> I'm getting the following exception [3] while starting API Manager. When
>>> I check the OSGi console for available services with 'ls', I don't see any
>>> services from andes-client, but andes-client bundle is active. Please find
>>> the half committed PR [2].
>>>
>>> I learned that, on top of wrapping a library as OSGI bundle, we have to
>>> expose them as SPI services too. So the issue here is, andes-client library
>>> isn't exposing any SPI service to consume by carbon-jndi.
>>>
>>> Carbon team please confirm.
>>>
>>> [1]: https://github.com/wso2/andes/blob/v3.2.22/modules/orbi
>>> t/andes-client/pom.xml
>>> [2]: https://github.com/wso2/carbon-apimgt/pull/4421
>>> [3]:
>>> [2017-08-21 09:28:17,041] ERROR 
>>> {org.wso2.carbon.apimgt.core.util.BrokerUtil}
>>> - Could not create a JMS client connection from the class
>>> javax.naming.NoInitialContextException: Cannot find the
>>> InitialContextFactory org.wso2.andes.jndi.Properties
>>> FileInitialContextFactory.
>>> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.la
>>> mbda$getInitialContextInternal$28(JNDIContextManagerImpl.java:118)
>>> at java.util.Optional.orElseThrow(Optional.java:290)
>>> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.ge
>>> tInitialContextInternal(JNDIContextManagerImpl.java:118)
>>> at org.wso2.carbon.jndi.internal.osgi.JNDIContextManagerImpl.ne
>>> wInitialContext(JNDIContextManagerImpl.java:68)
>>> at org.wso2.carbon.jndi.internal.osgi.factory.DefaultContextFac
>>> tory.lambda$getInitialContext$21(DefaultContextFactory.java:68)
>>> at org.wso2.carbon.jndi.internal.util.LambdaExceptionUtils.lamb
>>> da$rethrowFunction$2(LambdaExceptionUtils.java:120)
>>> at java.util.Optional.map(Optional.java:215)
>>> at org.wso2.carbon.jndi.internal.osgi.factory.DefaultContextFac
>>> tory.getInitialContext(DefaultContextFactory.java:68)
>>> at javax.naming.spi.NamingManager.getInitialContext(NamingManag
>>> er.java:684)
>>> at javax.naming.InitialContext.getDefaultInitCtx(InitialContext
>>> .java:313)
>>> at javax.naming.InitialContext.init(InitialContext.java:244)
>>> at javax.naming.InitialContext.(InitialContext.java:216)
>>> at org.wso2.carbon.apimgt.core.impl.BrokerImpl.(BrokerImp
>>> l.java:59)
>>> at org.wso2.carbon.apimgt.core.internal.BundleActivator.start(B
>>> undleActivator.java:70)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>>> ssorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>>> ate(ServiceComponent.java:235)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>>> ctivate(ServiceComponentProp.java:146)
>>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>>> uild(ServiceComponentProp.java:345)
>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>> nt(InstanceProcess.java:620)
>>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>>> nts(InstanceProcess.java:197)
>>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>>> r.java:343)
>>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>>> RManager.java:222)
>>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>>> tener.serviceChanged(FilteredServiceListener.java:109)
>>> at org.eclipse.osgi.internal.framework.BundleContextImpl.dispat
>>> chEvent(BundleContextImpl.java:915)
>>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>>> nt(EventManager.java:230)
>>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>>> entSynchronous(ListenerQueue.java:148)
>>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>>> blishServiceEventPrivileged(ServiceRegistry.java:862)
>>> at 

Re: [Dev] Why does WSO2 API Manager change the endpoint ip and port addresses to 192.168.144.2:8280

2017-08-02 Thread Thusitha Thilina Dayaratne
Hi Sagar,

192.168.144.2 is the IP address of your APIM running instance and 8280 is
the port which exposes your API through the API manager. When you invoke
the http://192.168.144.2:8280/// it will be sent to
the production endpoint that you configured through the UI.

You can refer to APIM Docs[1] for more details

[1] - https://docs.wso2.com/display/AM210/Create+and+Publish+an+API

Thanks



On Wed, Aug 2, 2017 at 4:19 PM, Sagar Kapadia  wrote:

>
>
> On Wed, Aug 2, 2017 at 4:18 PM, Sagar Kapadia  wrote:
>
>> Hi,
>> I tried to create an API in the API manager. Everything is ok, except for
>> the fact that the end point ip anddress and port in the implementation page
>> are ignored. I get the following ip address and port
>> 192.168.144.2:8280
>>
>> The screen shots show the issue
>> Sagar
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please review and merge the pull request

2017-08-02 Thread Thusitha Thilina Dayaratne
Hi Isuri,

PR merged.

Thanks

On Wed, Aug 2, 2017 at 3:56 PM, Isuri Anuradha  wrote:

> changed the commit message.
>
> [1] -https://github.com/wso2/carbon-kernel/pull/1460
>
> Regards,
> Isuri Anuradha.
>
> On Wed, Aug 2, 2017 at 3:33 PM, Isuri Anuradha  wrote:
>
>> Pull request URL.
>>
>> [1] - https://github.com/wso2/carbon-kernel/pull/1460
>>
>> Thanks.
>>
>> On Wed, Aug 2, 2017 at 3:10 PM, Isuri Anuradha  wrote:
>>
>>> Hi!
>>>
>>> Please merge the pull request [1] which contains the fix for [2].
>>>
>>> [1]- https://github.com/wso2/carbon-kernel/pull/1460
>>> [2]- https://github.com/wso2/carbon-kernel/issues/1461
>>>
>>>
>>> Regards,
>>> Isuri Anuradha
>>> --
>>> Isuri Anuradha
>>> Trainne software engineer | WSO2
>>>
>>> Emaii : is...@wso2.com
>>> Mobile : +94775941280 <+94%2077%20594%201280>
>>> web :http://wso2.com
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Isuri Anuradha
>> Trainne software engineer | WSO2
>>
>> Emaii : is...@wso2.com
>> Mobile : +94775941280 <+94%2077%20594%201280>
>> web :http://wso2.com
>>
>> 
>>
>
>
>
> --
> Isuri Anuradha
> Trainne software engineer | WSO2
>
> Emaii : is...@wso2.com
> Mobile : +94775941280 <+94%2077%20594%201280>
> web :http://wso2.com
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Custom Interceptors in MSF4J 2.1.0

2017-07-26 Thread Thusitha Thilina Dayaratne
Hi Isuranga,
>
>
> If I'm not mistaken unlike standalone mode,  msf4j OSGI mode uses one
> MicroserviceRunner for all micro services. In that case if I'm to start a
> new MicroserviceRegistry then It should be under a separate port number
> and that way I can add resource group specific interceptors. Please correct
> me If I'm wrong.

In OSGi mode there aren't any MicroserviceRunner. There will be a separate
MicroserviceRegistry for each ListenerConfiguration. If you want to deploy
an Interceptor to a specific registry you need to set the property to the
CHANNEL_ID[1] relevant listener configuration id when you register the
Interceptor.

[1] -
https://github.com/wso2/msf4j/blob/v2.1.0/core/src/main/java/org/wso2/msf4j/internal/MicroservicesServerSC.java#L175

Thanks
Thusitha


On Wed, Jul 26, 2017 at 1:47 PM, Isuranga Perera <isurangamper...@gmail.com>
wrote:

> Hi Thusitha,
>
> Thanks Thusith.
>
> If I'm not mistaken unlike standalone mode,  msf4j OSGI mode uses one
> MicroserviceRunner for all micro services. In that case if I'm to start a
> new MicroserviceRegistry then It should be under a separate port number
> and that way I can add resource group specific interceptors. Please correct
> me If I'm wrong.
>
> On Wed, Jul 26, 2017 at 6:35 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Isuranga,
>>
>> In 2.1.0 we only support global interceptors. Resource level interceptors
>> were introduced in 2.3.0-m2.
>>
>> Thanks
>> Thusitha
>>
>> On Tue, Jul 25, 2017 at 11:55 PM, Isuranga Perera <
>> isurangamper...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Is it possible to plug custom interceptors for micro-services  in msf4j
>>> 2.1.0. (per service not globally)
>>>
>>> Best Regards
>>> Isuranga Perera
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Custom Interceptors in MSF4J 2.1.0

2017-07-25 Thread Thusitha Thilina Dayaratne
Hi Isuranga,

In 2.1.0 we only support global interceptors. Resource level interceptors
were introduced in 2.3.0-m2.

Thanks
Thusitha

On Tue, Jul 25, 2017 at 11:55 PM, Isuranga Perera  wrote:

> Hi,
>
> Is it possible to plug custom interceptors for micro-services  in msf4j
> 2.1.0. (per service not globally)
>
> Best Regards
> Isuranga Perera
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.17 RC2

2017-07-21 Thread Thusitha Thilina Dayaratne
Hi Isshara,

We have already called the vote for RC3. But due to an issue, we had to
drop that as well. Will call the RC4 vote ASAP.

Mail thread - "[VOTE] Release WSO2 Carbon Kernel 4.4.17 RC3"

Thanks
Thusitha

On Fri, Jul 21, 2017 at 1:16 PM, Ishara Karunarathna 
wrote:

> HI Chandana,
>
> IS team is waiting on this kernel release.
> You have already fixed the issue raised by Lahiru. Can you give us an
> update of this release.
>
> -Ishara
>
> On Wed, Jul 19, 2017 at 12:45 PM, Lahiru Manohara 
> wrote:
>
>> Hi Chandana,
>>
>> I have created an issue [1].
>>
>> 1. https://github.com/wso2/carbon-kernel/issues/1442
>>
>> Best Regards,
>>
>> On Wed, Jul 19, 2017 at 11:56 AM, Chandana Napagoda 
>> wrote:
>>
>>> Hi All,
>>>
>>> We are dropping the carbon kernel 4.4.17 RC2 and will share the new
>>> release candidate soon.
>>>
>>> @Lahiru, Could you please create an issue for this?
>>>
>>> Regards,
>>> Chandana
>>>
>>> On Tue, Jul 18, 2017 at 2:45 PM, Lahiru Manohara 
>>> wrote:
>>>
 The provided public certificate in the default keystore is expired. It
 is issued only for 3 months and it is already expired. Please update the
 certificate with a longer duration.

 [x] Broken - Do not release

 Best Regards,

 On Fri, Jul 14, 2017 at 11:40 PM, Rushmin Fernando 
 wrote:

> Built IS 5.x.x branch with the integrations tests.
>
> Manually tested user management.
>   1) In tenants
>   2) Using the embedded LDAP primary user store
>   3) Using a JDBC secondary user store
>
>
> Found no issues.
>
> [ x] Stable  - Go ahead and release
>
> On Fri, Jul 14, 2017 at 2:04 PM, Chandana Napagoda 
> wrote:
>
>> Hi All,
>>
>> This is the 2nd release candidate of WSO2 Carbon Kernel 4.4.17.
>>
>> This release fixes the following issues
>> https://github.com/wso2/carbon-kernel/milestone/15?closed=1
>>
>> Please download and test your products with kernel 4.4.17 RC2 and
>> vote. The vote will be open for 72 hours or as long as needed.
>>
>> Maven staging repository:
>> https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1184/
>>
>> The tag to be voted upon:
>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.17-rc2
>>
>> [ ] Broken - Do not release (explain why)
>> [ ] Stable  - Go ahead and release
>>
>> Thank you
>> Platform Team
>>
>> --
>> *Chandana Napagoda*
>> Associate Technical Lead
>> WSO2 Inc. - http://wso2.org
>>
>> *Email  :  chand...@wso2.com **Mobile :
>> +94718169299 <+94%2071%20816%209299>*
>>
>> *Blog  :http://cnapagoda.blogspot.com
>>  | http://chandana.napagoda.com
>> *
>>
>> *Linkedin : http://www.linkedin.com/in/chandananapagoda
>> *
>>
>>
>
>
> --
> *Best Regards*
>
> *Rushmin Fernando*
> *Technical Lead*
>
> WSO2 Inc.  - Lean . Enterprise . Middleware
>
> mobile : +94775615183
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --
 *Lahiru Manohara*
 *Software Engineer*
 Mobile: +94716561576
 WSO2 Inc. | http://wso2.com
 lean.enterprise.middleware


>>>
>>>
>>> --
>>> *Chandana Napagoda*
>>> Associate Technical Lead
>>> WSO2 Inc. - http://wso2.org
>>>
>>> *Email  :  chand...@wso2.com **Mobile : +94718169299
>>> <+94%2071%20816%209299>*
>>>
>>> *Blog  :http://cnapagoda.blogspot.com
>>>  | http://chandana.napagoda.com
>>> *
>>>
>>> *Linkedin : http://www.linkedin.com/in/chandananapagoda
>>> *
>>>
>>>
>>
>>
>> --
>> *Lahiru Manohara*
>> *Software Engineer*
>> Mobile: +94716561576
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Ishara Karunarathna
> Associate Technical Lead
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile:
> +94717996791 <+94%2071%20799%206791>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina


Re: [Dev] Please review and merge the pull request

2017-07-20 Thread Thusitha Thilina Dayaratne
Hi Thanuja,

PR is merged to 4.4.x branch.

Thanks
Thusitha

On Thu, Jul 20, 2017 at 6:31 PM, Thanuja Jayasinghe 
wrote:

> Hi Kishanthan,
>
> Please merge the pull request [1] which contains the fix for [2].
>
> [1] - https://github.com/wso2/carbon-kernel/pull/1445
> [2] - https://github.com/wso2/carbon-kernel/issues/1444
>
> Thanks,
> Thanuja
>
> --
> *Thanuja Lakmal*
> Associate Technical Lead
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94715979891
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Is quartz-2.3.0.wso2v1 orbit bundle created properly ?

2017-07-20 Thread Thusitha Thilina Dayaratne
Hi Mohan,

Yes, agree with you. But it would be better if we define the import
packages rather than depending on Dynamic Imports.
We can do the necessary changes and re release the v2 bundle.

Thanks
Thusitha

On Thu, Jul 20, 2017 at 10:19 PM, Mohanadarshan Vivekanandalingam <
mo...@wso2.com> wrote:

> Hi Team,
>
> We have faced below issue after upgrading the carbon-transports version
> for product-sp milestone release.
>
> Cannot complete the install because one or more required items could not
> be found.
>  Software being installed: WSO2 MSF4J Feature 2.3.0.m2
> (org.wso2.msf4j.feature.group 2.3.0.m2)
>  Missing requirement: quartz 2.3.0.wso2v1 (quartz 2.3.0.wso2v1) requires
> 'package commonj.work 0.0.0' but it could not be found
>  Cannot satisfy dependency:
>   From: WSO2 Carbon Transport Connector Framework Feature 4.4.17
> (org.wso2.carbon.connector.framework.feature.group 4.4.17)
>   To: quartz [2.3.0.wso2v1]
>  Cannot satisfy dependency:
>   From: WSO2 MSF4J Feature 2.3.0.m2 (org.wso2.msf4j.feature.group 2.3.0.m2)
>   To: org.wso2.carbon.connector.framework.feature.group [4.3.0.m2,5.0.0)
>
> When we analyzed the related orbit bundle, I could see there are some
> external dependencies are defined in the Import-Package section of the
> manifest as shown below.
>
> Import-Package: com.mchange.v2.c3p0,com.zaxxer.hikari;version="[2.3,3)
>  ",commonj.work;resolution:=optional,javax.ejb;resolution:=optional,ja
>  vax.jms;resolution:=optional,javax.mail;resolution:=optional,javax.ma
>  il.internet;resolution:=optional,javax.management,javax.management.op
>  enmbean,javax.naming,javax.servlet;resolution:=optional,javax.servlet
>  .http;resolution:=optional,javax.sql;resolution:=optional,javax.trans
>  action;resolution:=optional,javax.xml.bind,javax.xml.namespace,javax.
>  xml.parsers,javax.xml.xpath,oracle.sql;resolution:=optional,org.jboss
>  .logging;resolution:=optional,org.jboss.naming;resolution:=optional,o
>  rg.jboss.system;resolution:=optional,org.quartz,org.quartz.impl.match
>  ers,org.quartz.impl.triggers,org.quartz.jobs;resolution:=optional,org
>  .quartz.spi,org.slf4j;version="[1.7,2)",org.terracotta.toolkit;resolu
>  tion:=optional,org.terracotta.toolkit.atomic;resolution:=optional,org
>  .terracotta.toolkit.builder;resolution:=optional,org.terracotta.toolk
>  it.cluster;resolution:=optional,org.terracotta.toolkit.collections;re
>  solution:=optional,org.terracotta.toolkit.concurrent.locks;resolution
>  :=optional,org.terracotta.toolkit.config;resolution:=optional,org.ter
>  racotta.toolkit.internal;resolution:=optional,org.terracotta.toolkit.
>  internal.concurrent.locks;resolution:=optional,org.terracotta.toolkit
>  .rejoin;resolution:=optional,org.terracotta.toolkit.search;resolution
>  :=optional,org.terracotta.toolkit.search.attribute;resolution:=option
>  al,org.terracotta.toolkit.store;resolution:=optional,org.w3c.dom,org.
>  xml.sax,weblogic.jdbc.jts;resolution:=optional,weblogic.jdbc.vendor.o
>  racle;resolution:=optional
>
> IMO, above is not correct, then we'll ended up adding more and more
> external dependencies to use this orbit bundle. @Pubudu, Have we tested
> above orbit bundle in any product distribution before doing the release ?
>
> I have checked the pom file of existing orbit release of quartz
> (2.1.1.wso2v1) and it has below entries. IMO, below should be the correct
> way to handle this..
>
>   
> 
> org.apache.felix
> maven-bundle-plugin
> 1.4.0
> true
> 
> 
> ${pom.artifactId} SymbolicName>
> ${pom.artifactId}
> 
> org.quartz.*;version="2.1.1"
> 
> **
> ***
> 
> 
> 
> 
>
> @Thusitha, Nira and team, appreciate your input on this ?
>
> Thanks,
> Mohan
>
> --
> *V. Mohanadarshan*
> *Associate Tech Lead,*
> *Data Technologies Team,*
> *WSO2, Inc. http://wso2.com  *
> *lean.enterprise.middleware.*
>
> email: mo...@wso2.com
> phone:(+94) 771117673 <+94%2077%20111%207673>
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Should we refactor CarbonMessage

2017-07-10 Thread Thusitha Thilina Dayaratne
Hi Shafreen,

IMHO it would be much easier if that functionality os provided by the
messaging layer. Otherwise, each and every MessageProcessors need to
implement that logic. Therefore wouldn't it be nice to implement the
getCopyOfFullMessageBody[1] method from carbon-messaging?

[1] -
https://github.com/wso2/carbon-messaging/blob/master/components/src/main/java/org/wso2/carbon/messaging/CarbonMessage.java#L223

Thanks
Thusitha

On Mon, Jul 10, 2017 at 4:35 PM, Shafreen Anfar <shafr...@wso2.com> wrote:

> Hi Thusitha,
>
> On Mon, Jul 10, 2017 at 11:37 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Shafreen,
>>
>> +1 for the proposed implementation. In MSF4J point of view, we are
>> wrapping the carbon message with MSF4J Request/Response objects and use the
>> underlying messaging methods provided to retrieve/write back data in/out/.
>>
>> Are we considering a getting a message body clone with the re
>> architrecture?
>>
>
> Isn't cloning of the message body should be done using some util method at
> MessageProcessor level ?
>
>
>>
>> Thanks
>> Thusitha
>>
>> On Fri, Jul 7, 2017 at 6:18 PM, Shafreen Anfar <shafr...@wso2.com> wrote:
>>
>>> Hi All,
>>>
>>> In addition to considering all the facts presented above, I also talked
>>> to each transport developer who actually came up with different types of
>>> carbon-messages. Based on those discussion I came up with below design.
>>>
>>> Originally, CarbonMessage is designed to carry data between two
>>> components and I believe it should stay the same. However, it should be
>>> able carry data relevant to each component. For instance, in JMS case, it
>>> should be able carry a map for map messages where as in websockets case it
>>> should be able carry a string.
>>>
>>> Therefore, I thought of creating a CarbonMessage with java generics.
>>> Then we can extend it accordingly.
>>>
>>> ​
>>>
>>> As you can see above, we can provide a DefaultCarbonMessage
>>> implementation. However, in HTTP case, we have done some specific
>>> implementation to optimize the transport. At the moment those logic also
>>> resides inside the abstract CarbonMessage. With the new design we can
>>> simply move them to something like ByteCarbonMessage.
>>>
>>> I believe with this design we can have proper abstraction while reducing
>>> number of redundant carbon messages.
>>>
>>>
>>> On Thu, Jul 6, 2017 at 12:16 AM, Chanaka Fernando <chana...@wso2.com>
>>> wrote:
>>>
>>>> It seems there is room to improve the current CarbonMessage
>>>> implementation. Following are few main areas where we can improve its
>>>> functionality.
>>>>
>>>>- At the moment there are too many ways to get the message body
>>>>from the CarbonMessage
>>>>- getMessageBody()
>>>>   - getInputStream() - This is a http specific impl.
>>>>   - getMessageDateSource()
>>>>
>>>> The above 3 methods serve 3 different purposes. This design has been
>>>> done mainly thinking about the HTTP messages. In a message passthrough
>>>> scenario, content is kept in the content queue and accessed as a stream.
>>>> When the message content is accessed within intermediate layer (like
>>>> ballerina), it will be retrieved through messageDataSource.
>>>>
>>>>- There are too many types of CarbonMessages in carbon-messaging
>>>>that are only used by a specific transport implementation
>>>>   - BinaryCarbonMessage
>>>>   - ControlCarbonMessage
>>>>   - DefaultCarbonMessage
>>>>   - MapCarbonMessage
>>>>   - SerializableCarbonMessage
>>>>   - StatusCarbonMessage
>>>>   - StreamingCarbonMessage
>>>>   - TextCarbonMessage
>>>>
>>>>
>>>>- Most of above CarbonMessages do not adhere to the contract that
>>>>is imposed by the CarbonMessage interface.
>>>>
>>>> I agree on the fact that we need to refactor these different types of
>>>> CarbonMessage implementations. I think what Asitha suggested is a viable
>>>> approach to handle different types of messages.
>>>>
>>>> Considering these facts, I believe we should refactor CarbonMessage
>>>> before others starting using it in their implementations. Please let us

Re: [Dev] Override default log4.properties in MSF4J

2017-07-10 Thread Thusitha Thilina Dayaratne
Hi Jochen,

Can you try using dependencies without using the msf4j-parent?

Thanks
Thusitha

On Mon, Jul 10, 2017 at 4:09 PM, Jochen Traunecker <
jochen.traunec...@googlemail.com> wrote:

> Hi Thusitha,
>
> I'm pointing to this as parent
>
>  4.0.0
> org.wso2.msf4j
> msf4j-service
> pom
>   2.1.2-SNAPSHOT
>
> Thanks,
> Jochen
> ...
>
> 2017-07-05 18:13 GMT+02:00 Thusitha Thilina Dayaratne <thusit...@wso2.com>
> :
>
>> Hi Jochen,
>>
>> When you put your custom log4j.properties file, it should be correctly
>> picked up. Are you using the msf4j-core dependency or the msf4j-parent?
>> You can also refer dev mail thread [1]
>>
>> [1] - "[Dev] Too much noise during MSF4J startup (master branch)"
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Jul 5, 2017 at 8:31 PM, Jochen Traunecker <
>> jochen.traunec...@googlemail.com> wrote:
>>
>>> Hi Godwin,
>>>
>>> thanks for pointing me to the this solution.
>>>
>>> Cheers
>>> Jochen
>>>
>>> 2017-06-28 20:27 GMT+02:00 Godwin Shrimal <god...@wso2.com>:
>>>
>>>> Hi Jochen,
>>>>
>>>> You can pass log4j commandline paramater when running the fat jar as
>>>> follows to apply the og4j.properties.
>>>>
>>>> -Dlog4j.configuration=file:"$CARBON_HOME"/conf/log4j.properties
>>>>
>>>>
>>>> Thanks
>>>> Godwin
>>>>
>>>>
>>>> On Tue, Jun 27, 2017 at 2:17 AM, Jochen Traunecker <
>>>> jochen.traunec...@googlemail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> thanks for the hints and it works adding a log4j.xml into /resources
>>>>> but log4j.properties seems to get ignored. Maybe I have some typo 
>>>>> somewhere.
>>>>>
>>>>> Regards,
>>>>> Jochen
>>>>>
>>>>> 2017-06-27 9:09 GMT+02:00 Gottfried Szing <gottfr...@szing.eu>:
>>>>>
>>>>>> Hi Jochen
>>>>>>
>>>>>> Did you try the possibilities that come out-of-the-box with log4j?
>>>>>>
>>>>>> https://logging.apache.org/log4j/2.x/manual/configuration.ht
>>>>>> ml#Automatic_Configuration
>>>>>>
>>>>>> br
>>>>>>
>>>>>> On 27/06/2017 09:02, Thomas LEGRAND wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> Have you tried to put a log4j.xml configuration file in your
>>>>>>> src/main/resources directory? For example, here is mine to trigger the
>>>>>>> DEBUG mode:
>>>>>>>
>>>>>>> 
>>>>>>> >>>>>> xmlns:log4j='http://jakarta.apache.org/log4j/'>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>> 
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Thomas
>>>>>>>
>>>>>>> 2017-06-26 21:54 GMT+02:00 Jochen Traunecker <
>>>>>>> jochen.traunec...@googlemail.com <mailto:jochen.traunecker@goog
>>>>>>> lemail.com>>:
>>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I'm wondering if there is a way to introduce a custom
>>>>>>> log4j.properties file instead of default one [1] for
>>>>>>> MSF4J in combination with fatjar?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Jochen
>>>>>>>
>>>>>>> [1] https://github.com/wso2/msf4j/tree/master/core/src/main/reso
>>>>>>> urces
>>>>>>> <https://github.com/wso2/msf4j/tree/master/core/src/main/res
>>>>>>> ources>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org <mailto:Dev@wso2.org>
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev <
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ___
>>>>>>> Dev mailing list
>>>>>>> Dev@wso2.org
>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>>
>>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Gruss / regards
>>>>>
>>>>> Jochen Traunecker
>>>>> mailto: jochen.traunec...@gmail.com
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Godwin Amila Shrimal*
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94772264165*
>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>> twitter: https://twitter.com/godwinamila
>>>> <http://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> Gruss / regards
>>>
>>> Jochen Traunecker
>>> mailto: jochen.traunec...@gmail.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Gruss / regards
>
> Jochen Traunecker
> mailto: jochen.traunec...@gmail.com
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Should we refactor CarbonMessage

2017-07-10 Thread Thusitha Thilina Dayaratne
Hi Shafreen,

+1 for the proposed implementation. In MSF4J point of view, we are wrapping
the carbon message with MSF4J Request/Response objects and use the
underlying messaging methods provided to retrieve/write back data in/out/.

Are we considering a getting a message body clone with the re architrecture?

Thanks
Thusitha

On Fri, Jul 7, 2017 at 6:18 PM, Shafreen Anfar  wrote:

> Hi All,
>
> In addition to considering all the facts presented above, I also talked to
> each transport developer who actually came up with different types of
> carbon-messages. Based on those discussion I came up with below design.
>
> Originally, CarbonMessage is designed to carry data between two components
> and I believe it should stay the same. However, it should be able carry
> data relevant to each component. For instance, in JMS case, it should be
> able carry a map for map messages where as in websockets case it should be
> able carry a string.
>
> Therefore, I thought of creating a CarbonMessage with java generics. Then
> we can extend it accordingly.
>
> ​
>
> As you can see above, we can provide a DefaultCarbonMessage
> implementation. However, in HTTP case, we have done some specific
> implementation to optimize the transport. At the moment those logic also
> resides inside the abstract CarbonMessage. With the new design we can
> simply move them to something like ByteCarbonMessage.
>
> I believe with this design we can have proper abstraction while reducing
> number of redundant carbon messages.
>
>
> On Thu, Jul 6, 2017 at 12:16 AM, Chanaka Fernando 
> wrote:
>
>> It seems there is room to improve the current CarbonMessage
>> implementation. Following are few main areas where we can improve its
>> functionality.
>>
>>- At the moment there are too many ways to get the message body from
>>the CarbonMessage
>>- getMessageBody()
>>   - getInputStream() - This is a http specific impl.
>>   - getMessageDateSource()
>>
>> The above 3 methods serve 3 different purposes. This design has been done
>> mainly thinking about the HTTP messages. In a message passthrough scenario,
>> content is kept in the content queue and accessed as a stream. When the
>> message content is accessed within intermediate layer (like ballerina), it
>> will be retrieved through messageDataSource.
>>
>>- There are too many types of CarbonMessages in carbon-messaging that
>>are only used by a specific transport implementation
>>   - BinaryCarbonMessage
>>   - ControlCarbonMessage
>>   - DefaultCarbonMessage
>>   - MapCarbonMessage
>>   - SerializableCarbonMessage
>>   - StatusCarbonMessage
>>   - StreamingCarbonMessage
>>   - TextCarbonMessage
>>
>>
>>- Most of above CarbonMessages do not adhere to the contract that is
>>imposed by the CarbonMessage interface.
>>
>> I agree on the fact that we need to refactor these different types of
>> CarbonMessage implementations. I think what Asitha suggested is a viable
>> approach to handle different types of messages.
>>
>> Considering these facts, I believe we should refactor CarbonMessage
>> before others starting using it in their implementations. Please let us
>> know your thoughts as well :)
>>
>> +1 for refactoring the carbon message and relevant implementations to
>> support non-HTTP use cases. In the meantime, we should support HTTP
>> messaging in an efficient manner since that will be the mostly used
>> scenario of ballerina.
>>
>> On Wed, Jul 5, 2017 at 4:55 PM, Irunika Weeraratne 
>> wrote:
>>
>>> Hi Shafreen and Asitha,
>>> In the first place, they were introduced after a long discussion in
>>> WebSocket scenarios. This was because when the WebSocket messages are
>>> arrived to transport level we already knew what kind of message it is.
>>> Eg: Text, Binary, Control, Status
>>>
>>> So I made sense to create the same type of carbon message in the
>>> transport. Then carbon message types were used to identify the scenarios we
>>> had to address in the application layer.
>>> Eg: If the carbon message is an instance of TextCarbonMessage we know
>>> what to do in the first place. Also converting text into byte buffer in the
>>> transport and then converting it again into text in the application layer
>>> doesn't make sense.
>>>
>>> Because of that, those message types were introduced. IMO while we
>>> reduce the no. of carbon message types we might need to keep some of the
>>> types because it will affect the performance.
>>> Also, we can always override the methods in default carbon message if in
>>> order to work with default scenarios.
>>>
>>> WDYT?
>>>
>>> Thanks,
>>> Irunika
>>>
>>> *Irunika Weeraratne*
>>> *Software Engineer | WSO2, Inc. *
>>> *Email : irun...@wso2.com *
>>> *LinkedIn : https://lk.linkedin.com/in/irunika
>>> *
>>> *Mobile : +94712403314 <071%20240%203314>*
>>> *Lean . Enterprise . 

Re: [Dev] Override default log4.properties in MSF4J

2017-07-05 Thread Thusitha Thilina Dayaratne
Hi Jochen,

When you put your custom log4j.properties file, it should be correctly
picked up. Are you using the msf4j-core dependency or the msf4j-parent?
You can also refer dev mail thread [1]

[1] - "[Dev] Too much noise during MSF4J startup (master branch)"

Thanks
Thusitha

On Wed, Jul 5, 2017 at 8:31 PM, Jochen Traunecker <
jochen.traunec...@googlemail.com> wrote:

> Hi Godwin,
>
> thanks for pointing me to the this solution.
>
> Cheers
> Jochen
>
> 2017-06-28 20:27 GMT+02:00 Godwin Shrimal :
>
>> Hi Jochen,
>>
>> You can pass log4j commandline paramater when running the fat jar as
>> follows to apply the og4j.properties.
>>
>> -Dlog4j.configuration=file:"$CARBON_HOME"/conf/log4j.properties
>>
>>
>> Thanks
>> Godwin
>>
>>
>> On Tue, Jun 27, 2017 at 2:17 AM, Jochen Traunecker <
>> jochen.traunec...@googlemail.com> wrote:
>>
>>> Hi,
>>>
>>> thanks for the hints and it works adding a log4j.xml into /resources but
>>> log4j.properties seems to get ignored. Maybe I have some typo somewhere.
>>>
>>> Regards,
>>> Jochen
>>>
>>> 2017-06-27 9:09 GMT+02:00 Gottfried Szing :
>>>
 Hi Jochen

 Did you try the possibilities that come out-of-the-box with log4j?

 https://logging.apache.org/log4j/2.x/manual/configuration.ht
 ml#Automatic_Configuration

 br

 On 27/06/2017 09:02, Thomas LEGRAND wrote:

> Hello,
>
> Have you tried to put a log4j.xml configuration file in your
> src/main/resources directory? For example, here is mine to trigger the
> DEBUG mode:
>
> 
>  xmlns:log4j='http://jakarta.apache.org/log4j/'>
>
> 
> 
> 
> 
> 
>
> 
> 
> 
> 
>
> 
>
> Regards,
>
> Thomas
>
> 2017-06-26 21:54 GMT+02:00 Jochen Traunecker <
> jochen.traunec...@googlemail.com  lemail.com>>:
>
> Hi,
>
> I'm wondering if there is a way to introduce a custom
> log4j.properties file instead of default one [1] for
> MSF4J in combination with fatjar?
>
> Thanks,
> Jochen
>
> [1] https://github.com/wso2/msf4j/tree/master/core/src/main/reso
> urces
>  >
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org 
> http://wso2.org/cgi-bin/mailman/listinfo/dev <
> http://wso2.org/cgi-bin/mailman/listinfo/dev>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>>>
>>>
>>> --
>>> Gruss / regards
>>>
>>> Jochen Traunecker
>>> mailto: jochen.traunec...@gmail.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D *
>> twitter: https://twitter.com/godwinamila
>> 
>>
>
>
>
> --
> Gruss / regards
>
> Jochen Traunecker
> mailto: jochen.traunec...@gmail.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to get web app directly using app name

2017-06-29 Thread Thusitha Thilina Dayaratne
Hi Anuruddha,

Can you try out the below code segment?

Map webApplicationsHolderMap =
WebAppUtils.getAllWebappHolders(getConfigContext());
for (WebApplicationsHolder webApplicationsHolder :
webApplicationsHolderMap.values()) {
WebApplication webApplication =
webApplicationsHolder.getStartedWebapps().get(webappFileName);


[1] -
https://github.com/wso2/carbon-deployment/blob/4.7.x/components/webapp-mgt/org.wso2.carbon.webapp.mgt/src/main/java/org/wso2/carbon/webapp/mgt/WebappAdmin.java#L149

On Thu, Jun 29, 2017 at 7:14 PM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi,
>
> I need to get a web application deployed in carbon. Following is my
> approach. Is there any other way that I can optimize the following code.
>
> I have to iterate through 2 for loops. Do we have a way to get an
> application by name without iterating the list?
>
> ConfigurationContext configurationContext = 
> CarbonConfigurationContextFactory.getConfigurationContext();
> WebApplicationsHolder defaultApplicationsHolder = ((Map WebApplicationsHolder>) configurationContext.
> 
> getProperty(CarbonConstants.WEB_APPLICATIONS_HOLDER_LIST)).get("webapps");
> if (defaultApplicationsHolder != null && 
> !defaultApplicationsHolder.getStartedWebapps().isEmpty()) {
> defaultApplicationsHolder.getStartedWebapps().forEach((appName, 
> webApplication) -> {
>>
>> if (appName.contains("test-app-wso2")) {
>
> StandardHost applicationHost = (StandardHost) 
> webApplication.getContext().getParent();
> StandardEngine applicationEngine = (StandardEngine) 
> applicationHost.getParent();
> for (Connector connector : 
> applicationEngine.getService().findConnectors()) {
>String certWebAppPath = connector.getScheme() + "://" +
> applicationHost.getName() + ":" + connector.getPort() 
> + webApplication.getContext().getEncodedPath();
>
> }
> }
> });
> }
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error log when configurationmap does not contain the requested namespace.

2017-06-23 Thread Thusitha Thilina Dayaratne
Hi Ishara,

+1
We can change that log level to warning. Would you create a GitHub issue
for that?

Thanks
Thusitha

On Fri, Jun 23, 2017 at 12:29 PM, Ishara Cooray  wrote:

> Hi,
>
> Please refer [1] which prints an error lo when the namespace it not found
> in the configuration map.
>
> In our usecase, namespace is not found in the map is also a valid use
> case. Therefore printing an error log is misleading.
>
> IMO this log should be a warn log.
>
> wdyt?
>
> [1] https://github.com/wso2/carbon-kernel/blob/v5.2.0-m3/
> core/src/main/java/org/wso2/carbon/kernel/internal/configprovider/
> ConfigProviderImpl.java#L124
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] MSF4J next release

2017-06-06 Thread Thusitha Thilina Dayaratne
Hi Ishara,

In order to do an MSF4J GA release, we need to first do a GA release for
the kernel 5.2.0 (the latest is 5.2.0-m4). Once the 5.2.0 GA is done then
we can do an MSF4J GA release on using that. But AFAIK it might take
sometime since we need to port the changes done in the kernel for other
dependent repos.

Thanks
Thusitha

On Tue, Jun 6, 2017 at 4:18 AM, Ishara Cooray  wrote:

> Hi Kernel Team,
>
> APIM 3.0 scope validation feature depends on latest changes[1] that are
> available in msf4j 2.3.0-m2
>
> We also have a dependency to ballerina composer which depends on msf4j
> 2.1.0
>
> In order for us to get latest changes in msf4j2.3.0-m2 we also need
> ballerina parent to upgrade it's msf4j version to latest.
> (The problem has discussed in [2].)
>
> But, they can only be upgraded to a released version of msf4j(as per off
> line chat with Viraj).
>
> Therefore, can we please get a released version of msf4j with the recent
> changes?
>
>  [1] https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/
> main/java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174
>
> [2] *@dev* [DEV] MSF4J level support to get resource template of a http
> request
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Can we bind custom interceptors in msf4j2.3.0-m2

2017-06-05 Thread Thusitha Thilina Dayaratne
Hi Ishara,

IMHO this is a valid requirement. But as Vidura mentioned ATM we don;t
support dynamic binding from MSF4J.
So we need to implement this from MSF4J level. Then we can provide the
ability to add/remove interceptors at the runtime.

@Azeez, Kishanthan WDYT?

Thanks
Thusitha


On Mon, Jun 5, 2017 at 4:39 AM, Ishara Cooray  wrote:

> + architecture
>
> I
> f you are asking about the dynamic interceptors similar to the dynamic
> binding of filters in JAX-RS spec [1],  MSF4J currently do not support
> dynamic binding of interceptors.
>
>
> [1] https://access.redhat.com/documentation/en-us/red_hat_jb
> oss_fuse/6.3/html/apache_cxf_development_guide/jaxrs20filte
> rs#JAXRS20Filters-DynamicBinding
>
> Yes,
>
> We need a way to bind Interceptors which are coming from a configuration.
> But that also has to be per service , not the global.
>
> Because
> For instance, We have the publisher REST API implemented as a micro
> service.
> We need to secure this service using interceptors. Further, we are
> planning to have one interceptor per authentication type(BasicAuth, OAuth2,
> etc.).
>
> Now, if someone need to add a custom authenticator, it should be possible
> to write a custom authentication interceptor and plug it into the
> Microservice.
>
> Can this be supported?
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Thu, Jun 1, 2017 at 2:25 PM, Vidura Nanayakkara 
> wrote:
>
>> Hi Ishara,
>>
>> So, can we have the support to be able to plug custom interceptors for
>>> microservices?
>>
>>
>> ​
>> I
>> f you are asking about the dynamic interceptors similar to the dynamic
>> binding of filters in JAX-RS spec [1],  MSF4J currently do not support
>> dynamic binding of interceptors.
>>
>>
>> [1] https://access.redhat.com/documentation/en-us/red_hat_jb
>> oss_fuse/6.3/html/apache_cxf_development_guide/jaxrs20filte
>> rs#JAXRS20Filters-DynamicBinding
>>
>> Best Regards,
>> Vidura Nanayakkara
>>
>> On Thu, Jun 1, 2017 at 1:19 PM, Ishara Cooray  wrote:
>>
>>> Thanks for the clarification Vidura.
>>>
>>> So, can we have the support to be able to plug custom interceptors for
>>> microservices?
>>>
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> On Thu, Jun 1, 2017 at 1:02 PM, Vidura Nanayakkara 
>>> wrote:
>>>
 Hi Ishara,

 On Thu, Jun 1, 2017 at 12:29 PM, Ishara Cooray 
 wrote:

> According to the new Interceptor support in msf4j-2.3.0-m2
>
> AFAIU,
> We can bind interceptors for a given microservice as below.
>
> InterceptorService is the micro service that is going to be intercepted 
> by RequestInterceptors and Responseinterceptors annotated by
>
> @RequestInterceptor and @ResponseInterceptor
>
> @Component(
>> name = "InterceptorService",
>> service = Microservice.class,
>> immediate = true
>> )@Path("/interceptor-service")public class InterceptorService implements 
>> Microservice {
>>
>>
>> private static final Logger log = 
>> LoggerFactory.getLogger(InterceptorService.class);
>>
>>
>> /** * Method for getting the micro-service name. * * 
>> @return name of the micro-service. */
>> @GET
>> @Path("/service-name")
>> @RequestInterceptor(
>> ​​
>> HTTPRequestLogger.class)
>> @ResponseInterceptor(HTTPResponseLogger.class)
>> public String getServiceName() {
>> log.info("HTTP Method Execution - getServiceName()");
>> return "WSO2 Service";
>> }
>> }
>>
>> 1. Can we use @RequestInterceptor and @ResponseInterceptor
> annotations to the class level so that it will apply for every resource
> invocation?
>

 ​Yes, you can use @RequestInterceptor and @ResponseInterceptor to the
 class level so that it will apply to every resource invocation in the
 service.

 Example:

 @Path("/stockquote")

 @RequestInterceptor(
 ​
 HTTPRequestLogger.class)

 @ResponseInterceptor({HTTPResponseLogger.class, 
 LogTextResponseInterceptor.class})

 public class StockQuoteService {
 // Your resource methods here
 }

 Furthermore, if you want to apply the interceptors to all the services in 
 a micro-service in OSGi mode please refer [1] and for non-OSGi mode please 
 refer [2] and [3].


> 2. Can we plug a custom request/response interceptors?
>
>  Can it be supported something similar to below.
>  We have a class called ABCRequestInterceptor which implements 
> RequestInterceptor

Re: [Dev] [DEV] MSF4J level support to get resource template of a http request

2017-06-05 Thread Thusitha Thilina Dayaratne
Hi Ishara,

Since this is direct Java reflection call, ideally it shouldn't return null
if there is a @Path annotation.
That seems strange.

Thanks
Thusitha

On Mon, Jun 5, 2017 at 4:58 AM, Ishara Cooray <isha...@wso2.com> wrote:

> You can access the actual method that will get invoke at the Interceptor
> level
> e.g. request.getProperty("method");[1] So then you can get the @Path
> value of the method and compare that with the request.getUri().
>
> Hi Thusitha,
>
> This worked for me.
> However, for resource paths such as "*/apis*" @Path returns null where as
> "*/apis/{apiId}*" returns the correct value.
>
> It seems very first collection returns null for @Path annotation.
> Is it an expected behavior?
>
>
> ​
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, May 29, 2017 at 10:06 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Ishara,
>>
>> You can access the actual method that will get invoke at the Interceptor
>> level
>> e.g. request.getProperty("method");[1] So then you can get the @Path
>> value of the method and compare that with the request.getUri().
>>
>> [1] - https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/main
>> /java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174
>>
>> Thanks
>> Thusitha
>>
>> On Mon, May 29, 2017 at 1:51 AM, Ishara Cooray <isha...@wso2.com> wrote:
>>
>>> Ths usecase behind this is,
>>>
>>> we have scopes defined in apim product REST APIs for each resource path
>>> as below.
>>>
>>> /apis/{apiId}:
>>>
>>> #-
>>>
>>> # Retrieve the details of an API definition
>>>
>>> #-
>>>
>>>   get:
>>>
>>> x-scope: apim:api_view
>>>
>>> x-wso2-curl: "curl -k -H \"Authorization: Bearer
>>> ae4eae22-3f65-387b-a171-d37eaa366fa8\" https://127.0.0.1:9443/api/am/
>>> publisher/v1.0/apis/7a2298c4-c905-403f-8fac-38c73301631f"
>>>
>>> ..
>>>
>>>
>>> We are keeping track of these resource to scope mapping and at the time
>>> of a new request, we need to validate the scope.
>>>
>>> But, the request coming with a value(206e1b0b-a48e-47c9-95d0-3eb85544cf2e)
>>> for the variable(apiId), hence unable to find the resource template to
>>> match unless we do a string manipulation(we are maintaining a map for the
>>> resource to scope mapping).
>>>
>>>
>>> We better avoid string manipulations as much as possible because this
>>> will take place in gateway.
>>>
>>>
>>> Therefore need to check the possibility of supporting this from MSF4J
>>> level so that we can get template info from the Request object itself.
>>>
>>>
>>>
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> On Mon, May 29, 2017 at 12:40 PM, Ishara Cooray <isha...@wso2.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> We have a requirement to identify the request template for a given http
>>>> request.
>>>>
>>>> For example,
>>>> *Req: *
>>>> /api/am/publisher/v1.0/apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>>>>
>>>> *Req path:*
>>>> /apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>>>>
>>>> *Need *to identify corresponding *template as *
>>>> apis/{apiId}
>>>>
>>>> Is there a way to get this info from the MSF4J level?
>>>>
>>>>
>>>> Thanks & Regards,
>>>> Ishara Cooray
>>>> Senior Software Engineer
>>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>>> WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] MSF4J level support to get resource template of a http request

2017-05-29 Thread Thusitha Thilina Dayaratne
Hi Ishara,

You can access the actual method that will get invoke at the Interceptor
level
e.g. request.getProperty("method");[1] So then you can get the @Path value
of the method and compare that with the request.getUri().

[1] -
https://github.com/wso2/msf4j/blob/v2.3.0-m2/core/src/main/java/org/wso2/msf4j/internal/router/HttpMethodInfo.java#L174

Thanks
Thusitha

On Mon, May 29, 2017 at 1:51 AM, Ishara Cooray  wrote:

> Ths usecase behind this is,
>
> we have scopes defined in apim product REST APIs for each resource path as
> below.
>
> /apis/{apiId}:
>
> #-
>
> # Retrieve the details of an API definition
>
> #-
>
>   get:
>
> x-scope: apim:api_view
>
> x-wso2-curl: "curl -k -H \"Authorization: Bearer
> ae4eae22-3f65-387b-a171-d37eaa366fa8\" https://127.0.0.1:9443/api/am/
> publisher/v1.0/apis/7a2298c4-c905-403f-8fac-38c73301631f"
>
> ..
>
>
> We are keeping track of these resource to scope mapping and at the time of
> a new request, we need to validate the scope.
>
> But, the request coming with a value(206e1b0b-a48e-47c9-95d0-3eb85544cf2e)
> for the variable(apiId), hence unable to find the resource template to
> match unless we do a string manipulation(we are maintaining a map for the
> resource to scope mapping).
>
>
> We better avoid string manipulations as much as possible because this will
> take place in gateway.
>
>
> Therefore need to check the possibility of supporting this from MSF4J
> level so that we can get template info from the Request object itself.
>
>
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, May 29, 2017 at 12:40 PM, Ishara Cooray  wrote:
>
>> Hi,
>>
>> We have a requirement to identify the request template for a given http
>> request.
>>
>> For example,
>> *Req: *
>> /api/am/publisher/v1.0/apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>>
>> *Req path:*
>> /apis/206e1b0b-a48e-47c9-95d0-3eb85544cf2e
>>
>> *Need *to identify corresponding *template as *
>> apis/{apiId}
>>
>> Is there a way to get this info from the MSF4J level?
>>
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IMPORTANT] Planned down time for public Jira (https://wso2.org/jira) - 2017/05/25 5PM-7PM

2017-05-25 Thread Thusitha Thilina Dayaratne
Hi Chamara,

Now it works in both normal and private browsing modes.

Thanks
Thusitha

On Thu, May 25, 2017 at 7:27 PM, Chamara Thilina <chama...@wso2.com> wrote:

> HI  farasatha,thusithad
> Can you guys try the same in private browser ?
>
> On Fri, May 26, 2017 at 3:22 AM, Farasath Ahamed <farasa...@wso2.com>
> wrote:
>
>> Same here.
>> Fails with an Error Message as below.
>>
>> [image: Inline image 1]
>>
>> Farasath Ahamed
>> Software Engineer, WSO2 Inc.; http://wso2.com
>> Mobile: +94777603866
>> Blog: blog.farazath.com
>> Twitter: @farazath619 <https://twitter.com/farazath619>
>> <http://wso2.com/signature>
>>
>>
>>
>> On Fri, May 26, 2017 at 2:48 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Chamara,
>>>
>>> Is this completed?
>>> Itt seems I can't access the https://wso2.org/jira
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Thu, May 25, 2017 at 5:33 AM, Chamara Thilina <chama...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> Successfully migrated the Public Jira server to US data center.
>>>>
>>>> @Maheshika: Thanks for helping to  test the system.
>>>>
>>>> Regards,
>>>> ChamaraT
>>>>
>>>> On Tue, May 23, 2017 at 3:23 PM, Chamara Thilina <chama...@wso2.com>
>>>> wrote:
>>>>
>>>>>
>>>>> HI All,
>>>>>
>>>>> As a part of moving production critical systems to US data center now
>>>>> we have selected public Jira for this.  So please refer the $subject.
>>>>>
>>>>>
>>>>> Sorry for the inconvenience caused.
>>>>>
>>>>> Regards,
>>>>> ChamaraT
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Chamara Thilina Samarakoon
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>> On Call Number: +94 (76) 8414562 <076%20841%204562>
>>>>> Mobile : +94 (77) 2929487 <077%20292%209487>
>>>>> blog: http://mageconfig.blogspot.com/
>>>>> linkedin: https://www.linkedin.com/pub/chamara-samarakoon
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Chamara Thilina Samarakoon
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>> On Call Number: +94 (76) 8414562 <+94%2076%20841%204562>
>>>> Mobile : +94 (77) 2929487 <+94%2077%20292%209487>
>>>> blog: http://mageconfig.blogspot.com/
>>>> linkedin: https://www.linkedin.com/pub/chamara-samarakoon
>>>>
>>>>
>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809 <+94%2071%20275%206809>
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> <http://wso2.com/signature>
>>>
>>>
>>
>
>
> --
> Chamara Thilina Samarakoon
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> On Call Number: +94 (76) 8414562 <+94%2076%20841%204562>
> Mobile : +94 (77) 2929487 <+94%2077%20292%209487>
> blog: http://mageconfig.blogspot.com/
> linkedin: https://www.linkedin.com/pub/chamara-samarakoon
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [IMPORTANT] Planned down time for public Jira (https://wso2.org/jira) - 2017/05/25 5PM-7PM

2017-05-25 Thread Thusitha Thilina Dayaratne
Hi Chamara,

Is this completed?
Itt seems I can't access the https://wso2.org/jira

Thanks
Thusitha

On Thu, May 25, 2017 at 5:33 AM, Chamara Thilina  wrote:

> Hi All,
>
> Successfully migrated the Public Jira server to US data center.
>
> @Maheshika: Thanks for helping to  test the system.
>
> Regards,
> ChamaraT
>
> On Tue, May 23, 2017 at 3:23 PM, Chamara Thilina 
> wrote:
>
>>
>> HI All,
>>
>> As a part of moving production critical systems to US data center now we
>> have selected public Jira for this.  So please refer the $subject.
>>
>>
>> Sorry for the inconvenience caused.
>>
>> Regards,
>> ChamaraT
>>
>>
>>
>>
>> --
>> Chamara Thilina Samarakoon
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>> On Call Number: +94 (76) 8414562 <076%20841%204562>
>> Mobile : +94 (77) 2929487 <077%20292%209487>
>> blog: http://mageconfig.blogspot.com/
>> linkedin: https://www.linkedin.com/pub/chamara-samarakoon
>>
>>
>
>
> --
> Chamara Thilina Samarakoon
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
> On Call Number: +94 (76) 8414562 <+94%2076%20841%204562>
> Mobile : +94 (77) 2929487 <+94%2077%20292%209487>
> blog: http://mageconfig.blogspot.com/
> linkedin: https://www.linkedin.com/pub/chamara-samarakoon
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSDL specification ESB (wso2ei 6.1)

2017-05-19 Thread Thusitha Thilina Dayaratne
Hi Christos,

Are you looking into something like[1] ?

[1] - https://docs.wso2.com/display/EI610/WSDL+Endpoint

Thanks
Thusitha

On Mon, May 8, 2017 at 3:22 PM, Christos Sifinos 
wrote:

> I need to define/expose a new API that is described by a specific SOAP
> WSDL.
>
>
>
> The calls received there will be channeled to other systems/web services,
> pending the necessary message transformation.
>
>
>
> How do I define this project in ESB?
>
>
>
> My problem is that I cannot find where to define an entry point based on a
> predefined WSDL specification.
>
>
>
> Best Regards,
> Christos
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] SSLSocketFactory and HostnameVerifier implementations

2017-04-19 Thread Thusitha Thilina Dayaratne
Hi Bhathiya,

AFAIU in the C4 context this support comes through the apache HTTP client.
Therefore IMHO this should be handled through the client level.
e.g in MSF4J we have integrated that to the MSF4JClient [1]
WDYT?

[1] -
https://github.com/wso2/msf4j/blob/master/client/src/main/java/org/wso2/msf4j/client/MSF4JClient.java#L215

Thanks
Thusitha

On Wed, Apr 19, 2017 at 5:57 PM, Bhathiya Jayasekara 
wrote:

> Hi all,
>
> Appreciate a response.
>
> Thanks,
> Bhathiya
>
> On Mon, Apr 17, 2017 at 12:51 PM, Bhathiya Jayasekara 
> wrote:
>
>> Hi all,
>>
>> When we make server-to-server https calls (eg. MSF4J services), we need
>> $subject. In APIM, we're using Feign client as the http client, and it
>> doesn't have any default implementations.
>>
>> So, should we write our own implementation in component level, or should
>> that come from kernel or MSF4J or carbon-transports?
>>
>> Since this is a very common requirement, I think latter should be the
>> best approach. WDYT?
>>
>> Appreciate your input.
>>
>> Thanks,
>>
>> --
>> *Bhathiya Jayasekara*
>> *Associate Technical Lead,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <071%20547%208185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>
>
>
> --
> *Bhathiya Jayasekara*
> *Associate Technical Lead,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <+94%2071%20547%208185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Running a WSO2 server via ssh issue

2017-04-18 Thread Thusitha Thilina Dayaratne
Hi Chamara,

Try like below
ssh  ubuntu@192.168.48.168 'export
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/ubuntu/java/jdk1.8.0_121/bin;echo
$PATH;./esb/wso2esb-5.0.0/bin/wso2server.sh'

Thanks
Thusitha

On Tue, Apr 18, 2017 at 5:18 PM, Chamara Ariyarathne <chama...@wso2.com>
wrote:

> I am afraid if this is the correct explanation. What I meant to say above
> is;
> Consider it is machine1 and machine2 and I'm trying to ssh from 2 to 1.
>
> PATH in machine1:
> $ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
> bin:/usr/games:/usr/local/games:/home/ubuntu/java/jdk1.8.0_121/bin
>
> PATH in machine2:  (I didn't set java there)
> $ echo $PATH
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
> bin:/usr/games:/usr/local/games:/snap/bin
>
> and If I read the PATH variable of machine1 from machine2 via ssh:
> $ ssh -i chamaraa.pem ubuntu@192.168.48.168 'echo $PATH'
> $PATH:$JAVA_HOME/bin
>
> So that's the difference with ssh I'm seeing.
>
> On Tue, Apr 18, 2017 at 4:51 PM, Bhathiya Jayasekara <bhath...@wso2.com>
> wrote:
>
>> Yes, that's the problem. When java was installed, $PATH variable has been
>> replaced.
>>
>> In remote machine set it correctly.
>>
>> *export
>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$JAVA_HOME/bin*
>>
>> Thanks,
>> Bhathiya
>>
>>
>>
>>
>>
>> On Tue, Apr 18, 2017 at 4:46 PM, Chamara Ariyarathne <chama...@wso2.com>
>> wrote:
>>
>>> Well, it's like this. In the same machine:
>>>
>>> $ echo $PATH
>>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
>>> :/usr/games:/usr/local/games:/home/ubuntu/java/jdk1.8.0_121/bin
>>>
>>> In the remote machine:
>>>
>>> $ ssh -i chamaraa.pem ubuntu@192.168.48.168 'echo $PATH'
>>> $PATH:$JAVA_HOME/bin
>>>
>>> On Tue, Apr 18, 2017 at 3:47 PM, Bhathiya Jayasekara <bhath...@wso2.com>
>>> wrote:
>>>
>>>> Maybe the $PATH variable is not set properly.
>>>>
>>>> @Chamara: What's the output of echo $PATH?
>>>>
>>>> Thanks,
>>>> Bhathiya
>>>>
>>>> On Tue, Apr 18, 2017 at 2:49 PM, Thusitha Thilina Dayaratne <
>>>> thusit...@wso2.com> wrote:
>>>>
>>>>> Hi Chamara,
>>>>>
>>>>> ubuntu@esbperf-prototype-2:~$ ssh -i chamaraa.pem ubuntu@192.168.48
>>>>>> .168 './esb/wso2esb-5.0.0/bin/wso2server.sh'
>>>>>>
>>>>>>
>>>>>> *./esb/wso2esb-5.0.0/bin/wso2server.sh: 1:
>>>>>> ./esb/wso2esb-5.0.0/bin/wso2server.sh: uname: not
>>>>>> found./esb/wso2esb-5.0.0/bin/wso2server.sh: 1:
>>>>>> ./esb/wso2esb-5.0.0/bin/wso2server.sh: dirname: not
>>>>>> found./esb/wso2esb-5.0.0/bin/wso2server.sh: 1:
>>>>>> ./esb/wso2esb-5.0.0/bin/wso2server.sh: grep: not found*
>>>>>>  Starting WSO2 Carbon (in unsupported JDK)
>>>>>>  [ERROR] CARBON is supported only on JDK 1.7 and 1.8
>>>>>> JAVA_HOME environment variable is set to
>>>>>> /home/ubuntu/java/jdk1.8.0_121
>>>>>> *CARBON_HOME environment variable is set to /*
>>>>>>
>>>>>> *./esb/wso2esb-5.0.0/bin/wso2server.sh: 264:
>>>>>> ./esb/wso2esb-5.0.0/bin/wso2server.sh: rm: not
>>>>>> found./esb/wso2esb-5.0.0/bin/wso2server.sh: 271:
>>>>>> ./esb/wso2esb-5.0.0/bin/wso2server.sh: awk: not found*
>>>>>> Using Java memory options: -Xms256m -Xmx1024m -XX:MaxPermSize=256m
>>>>>> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
>>>>>> MaxPermSize=256m; support was removed in 8.0
>>>>>> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
>>>>>> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLog
>>>>>> Manager
>>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>>>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>>>>>> at java.util.logging.LogManager$1.run(LogManager.java:195)
>>>>>> at java.util.logging.LogManager$1.run(LogManager.java:181)
>>>>>> at java.security.Access

Re: [Dev] Running a WSO2 server via ssh issue

2017-04-18 Thread Thusitha Thilina Dayaratne
Hi Chamara,

ubuntu@esbperf-prototype-2:~$ ssh -i chamaraa.pem ubuntu@192.168.48.168
>  './esb/wso2esb-5.0.0/bin/wso2server.sh'
>
>
> *./esb/wso2esb-5.0.0/bin/wso2server.sh: 1:
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: uname: not
> found./esb/wso2esb-5.0.0/bin/wso2server.sh: 1:
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: dirname: not
> found./esb/wso2esb-5.0.0/bin/wso2server.sh: 1:
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: grep: not found*
>  Starting WSO2 Carbon (in unsupported JDK)
>  [ERROR] CARBON is supported only on JDK 1.7 and 1.8
> JAVA_HOME environment variable is set to /home/ubuntu/java/jdk1.8.0_121
> *CARBON_HOME environment variable is set to /*
>
> *./esb/wso2esb-5.0.0/bin/wso2server.sh: 264:
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: rm: not
> found./esb/wso2esb-5.0.0/bin/wso2server.sh: 271:
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: awk: not found*
> Using Java memory options: -Xms256m -Xmx1024m -XX:MaxPermSize=256m
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
> MaxPermSize=256m; support was removed in 8.0
> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.util.logging.LogManager$1.run(LogManager.java:195)
> at java.util.logging.LogManager$1.run(LogManager.java:181)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.util.logging.LogManager.(LogManager.java:181)
> at java.util.logging.Logger.demandLogger(Logger.java:448)
> at java.util.logging.Logger.getLogger(Logger.java:502)
> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
> at sun.management.jmxremote.ConnectorBootstrap.(Connect
> orBootstrap.java:846)
> at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
> at sun.management.Agent.startAgent(Agent.java:260)
> at sun.management.Agent.startAgent(Agent.java:447)
> Error: Could not find or load main class org.wso2.carbon.bootstrap.Boot
> strap

According to the trace, it seems some of the Linux commands are not
available on the host. Therefore IMHO this is cause due to the CLASS_PATH
is not properly getting set.

Thanks
Thusitha

On Tue, Apr 18, 2017 at 2:43 PM, Chamara Ariyarathne 
wrote:

> I'm trying to run ESB via an ssh session. The issue is like following. Any
> idea how to make it work?
>
> ubuntu@esbperf-prototype-2:~$ ssh -i chamaraa.pem ubuntu@192.168.48.168
> './esb/wso2esb-5.0.0/bin/wso2server.sh'
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: 1: 
> ./esb/wso2esb-5.0.0/bin/wso2server.sh:
> uname: not found
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: 1: 
> ./esb/wso2esb-5.0.0/bin/wso2server.sh:
> dirname: not found
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: 1: 
> ./esb/wso2esb-5.0.0/bin/wso2server.sh:
> grep: not found
>  Starting WSO2 Carbon (in unsupported JDK)
>  [ERROR] CARBON is supported only on JDK 1.7 and 1.8
> JAVA_HOME environment variable is set to /home/ubuntu/java/jdk1.8.0_121
> CARBON_HOME environment variable is set to /
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: 264: 
> ./esb/wso2esb-5.0.0/bin/wso2server.sh:
> rm: not found
> ./esb/wso2esb-5.0.0/bin/wso2server.sh: 271: 
> ./esb/wso2esb-5.0.0/bin/wso2server.sh:
> awk: not found
> Using Java memory options: -Xms256m -Xmx1024m -XX:MaxPermSize=256m
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option
> MaxPermSize=256m; support was removed in 8.0
> Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
> java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> at java.util.logging.LogManager$1.run(LogManager.java:195)
> at java.util.logging.LogManager$1.run(LogManager.java:181)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.util.logging.LogManager.(LogManager.java:181)
> at java.util.logging.Logger.demandLogger(Logger.java:448)
> at java.util.logging.Logger.getLogger(Logger.java:502)
> at com.sun.jmx.remote.util.ClassLogger.(ClassLogger.java:55)
> at sun.management.jmxremote.ConnectorBootstrap.(Connect
> orBootstrap.java:846)
> at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
> at sun.management.Agent.startAgent(Agent.java:260)
> at sun.management.Agent.startAgent(Agent.java:447)
> Error: Could not find or load main class org.wso2.carbon.bootstrap.Boot
> strap
>
>
> --
> *Chamara Ariyarathne*
> WSO2 Inc; http://www.wso2.com/
> Mobile; *+94772786766 <077%20278%206766>*
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  

Re: [Dev] Please review and merge the pull request

2017-04-06 Thread Thusitha Thilina Dayaratne
Merged.

On Thu, Apr 6, 2017 at 11:54 AM, Vinod Kavinda  wrote:

> Hi Kishanthan,
> Please review and merge PR[1] for preparing 4.4.16 release.
>
> [1] - https://github.com/wso2/carbon-kernel/pull/1350
>
> Thanks
>
> On Thu, Apr 6, 2017 at 10:37 AM, Vijitha Ekanayake 
> wrote:
>
>> Hi Kishanthan,
>>
>> I've updated the PR[1] with the issue[2] and a proper description. Could
>> you review and merge the pull request?
>>
>>
>> [1]. https://github.com/wso2/carbon-kernel/pull/1349
>> [2]. https://github.com/wso2/product-ei/issues/322
>>
>>
>> Thanks
>>
>> On Thu, Apr 6, 2017 at 9:59 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> Can you also create a github issue with the proper description for this
>>> and link it with the PR?
>>>
>>> On Wed, Apr 5, 2017 at 9:44 PM, Vijitha Ekanayake 
>>> wrote:
>>>
 Hi Carbon team,

 Please merge the pull request [1] which contains critical fixes to
 support DSS multitenancy over passthru transport.

 [1]. https://github.com/wso2/carbon-kernel/pull/1349

 Thanks.

 --
 Vijitha Ekanayake
 Software Engineer*, *WSO2, Inc.; http://wso2.com/
 Mobile : +94 777 24 73 39 | +94 718 74 44 08
 lean.enterprise.middleware

>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635 <+94%2077%20342%206635>
>>> Blog - *http://kishanthan.wordpress.com
>>> *
>>> Twitter - *http://twitter.com/kishanthan
>>> *
>>>
>>
>>
>>
>> --
>> Vijitha Ekanayake
>> Software Engineer*, *WSO2, Inc.; http://wso2.com/
>> Mobile : +94 777 24 73 39 | +94 718 74 44 08
>> lean.enterprise.middleware
>>
>
>
>
> --
> Vinod Kavinda
> Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Carbon-Utils] Carbon Utils

2017-04-05 Thread Thusitha Thilina Dayaratne
Hi All,

We have created a separate feature[1] for carbon-util;s as suggested.
[1] - https://github.com/wso2/carbon-utils/pull/4

Thanks
Thusitha


On Thu, Apr 6, 2017 at 9:11 AM, Danesh Kuruppu  wrote:

>
> Yes, we can have it in the kernel feature, but then if there is any
>> improvement or changes to Carbon-utils repo then we would need to do a
>> kernel release. IMO it would be better to have a separate feature for
>> Carbon-utils. In this way we can independently release carbon-utils. In the
>> other component such as carbon-secvault, the carbon-utils feature can be
>> defined as an import feature def. WDYT?
>>
>
> +1 to make carbon-utils as a separate feature. since carbon-secvault and
> carbon-config no longer depends on carbon-kernel, we cannot have it in the
> kernel feature.
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc 
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Is it possible to startup microservices parallelly?

2017-04-04 Thread Thusitha Thilina Dayaratne
Hi Abimaran,
>
>
> For APIM 3.0, due to swagger to MSF4J generator generating microservice
> for each path defined in swagger yaml, we are having nearly 15 micro
> services currently and this will grow in future.
> We are in the process of regrouping some microservice to one [1]. We
> wanted to know, Can we boot microservice parallelly instead of sequentially?

Do you want to reduce the startup time?

In the standalone mode, you can start multiple MicroserviceRunners with
separate services. But in OSGi mode, you don't have such a feature. All the
microserices will get add to all the available registries (unless defining
a specific registry)

Thanks
Thusitha

On Tue, Apr 4, 2017 at 4:39 PM, Abimaran Kugathasan 
wrote:

> Hi Devs,
>
> For APIM 3.0, due to swagger to MSF4J generator generating microservice
> for each path defined in swagger yaml, we are having nearly 15 micro
> services currently and this will grow in future.
>
> We are in the process of regrouping some microservice to one [1]. We
> wanted to know, Can we boot microservice parallelly instead of sequentially?
>
> [1]: [Architecture] [APIM] [MSF4J] Reason for creating separate micro
> service for each path defined swagger
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [C5] MSF4J Interceptors need to be configurable.

2017-04-03 Thread Thusitha Thilina Dayaratne
Hi Ishara,

We are planning to in co-operating that with the 2.3.0-m2 which scheduled
to be released by this week.

Thanks
Thusitha

On Mon, Apr 3, 2017 at 12:18 PM, Ishara Cooray <isha...@wso2.com> wrote:

> Hi Vidura/Thusitha,
>
> Can we have an update on this please?
>
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Mon, Jan 16, 2017 at 1:13 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sagara,
>>
>> ViduraN has almost implemented this. We will schedule a meeting tomorrow
>> or day after tomorrow to discuss the current implementation.
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Jan 16, 2017 at 12:44 PM, Sagara Gunathunga <sag...@wso2.com>
>> wrote:
>>
>>>
>>> Can we have an update or review meeting on this ?
>>>
>>> Thanks !
>>>
>>>
>>> On Thu, Jan 5, 2017 at 9:50 AM, Ishara Cooray <isha...@wso2.com> wrote:
>>>
>>>> Sounds good.
>>>> Thanks Kishanthan.
>>>>
>>>> Thanks & Regards,
>>>> Ishara Cooray
>>>> Senior Software Engineer
>>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>>> WSO2, Inc. | http://wso2.com/
>>>> Lean . Enterprise . Middleware
>>>>
>>>> On Wed, Jan 4, 2017 at 5:30 PM, Kishanthan Thangarajah <
>>>> kishant...@wso2.com> wrote:
>>>>
>>>>> We are working on this. We couldn't progress much last week due to
>>>>> other priorities. The plan is to deliver in two weeks time.
>>>>>
>>>>> On Tue, Jan 3, 2017 at 1:40 PM, Ishara Cooray <isha...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> What could be the status of this? Do we have a time line defined?
>>>>>>
>>>>>> Thanks & Regards,
>>>>>> Ishara Cooray
>>>>>> Senior Software Engineer
>>>>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>>>>> WSO2, Inc. | http://wso2.com/
>>>>>> Lean . Enterprise . Middleware
>>>>>>
>>>>>> On Fri, Dec 9, 2016 at 2:18 PM, Sagara Gunathunga <sag...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Dec 9, 2016 at 2:15 PM, Sanjeewa Malalgoda <
>>>>>>> sanje...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi All,
>>>>>>>> Please find inline comments.
>>>>>>>>
>>>>>>>> On Fri, Dec 9, 2016 at 12:49 PM, Sagara Gunathunga <sag...@wso2.com
>>>>>>>> > wrote:
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, Dec 8, 2016 at 6:59 PM, Ishara Cooray <isha...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> To overcome the above limitation where we cannot plug custom
>>>>>>>>>> authentication, i came up with the below approach.
>>>>>>>>>>
>>>>>>>>>> Having one interceptor and delegate authentication to an
>>>>>>>>>> interface. Implementation of the interface is configurable so that 
>>>>>>>>>> we can
>>>>>>>>>> plug custom authentication as well.
>>>>>>>>>>
>>>>>>>>>> [image: Inline image 1]
>>>>>>>>>>
>>>>>>>>>> One limitation here is we can have only one auth type active at a
>>>>>>>>>> time.
>>>>>>>>>>
>>>>>>>>>> Hi Sanjeewa,
>>>>>>>>>>
>>>>>>>>>> Shall we continue with this approach until we get a proper fix
>>>>>>>>>> from msf4j?
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> It's ok to use above  approach as a temporary workaround till we
>>>>>>>>> get proper solution from MSF4J, but please make sure to implement only
>&

Re: [Dev] [C5] Deployment folder specific to runtime or to server?

2017-03-30 Thread Thusitha Thilina Dayaratne
We will be using both ServerHome/deployment and
ServerHome/wso2/{runtime}/deployment directories. Please refer to
architecture mailing list[1]

[1] - [Architecture] Multiple runtime support for C5 based products

Thanks
Thusitha

On Wed, Mar 8, 2017 at 5:49 PM, Niranjan Karunanandham 
wrote:

> Hi All,
>
> As per the offline discussion with Azeez, it was suggested that the
> deployment folder should be per runtime.
>
> Regards,
> Nira
>
> On Mon, Mar 6, 2017 at 10:47 AM, Imesh Gunaratne  wrote:
>
>> Thanks for the quick response Niranjan!
>>
>> On Mon, Mar 6, 2017 at 9:40 AM, Niranjan Karunanandham > > wrote:
>>
>>
>>> Would we have deployment artifacts which can are required by all the
>>> runtime? In which case should the artifact be in each runtime as in [1] or
>>> will we be having it [2] which deploys for all  runtime?
>>>
>>
>> ​+1 Yes, it would be better to place common deployable artifacts at the
>> root level to avoid duplication. Otherwise, users would need to update the
>> same set of files at multiple locations when working with this distribution.
>>
>>>
>>> In , we have bin (which should contain the script to start
>>> all runtime), dbscript, resources which contain the keystores (JKS) and
>>> logs (IMO the logs should be per runtime).
>>>
>>
>> ​It make sense! Anything common to multiple runtimes can reside at the
>> root level.​
>>
>> As we discussed offline, I think it might be better to ship separate
>> distributions for runtimes together with the all-in-one distribution.
>> Otherwise users would need to create separate distributions for runtimes
>> when those need to be deployed separately. This would be necessary when
>> creating container images, container cluster manager artifacts (Docker
>> Swarm, K8S, DC/OS, etc), configuration management modules (Chef, Puppet,
>> etc), etc as those would map one to one to each process.
>>
>> Thanks
>> Imesh
>>
>>>
>>>
>>>

 Thanks


> Regards,
> Nira
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>


 --
 *Imesh Gunaratne*
 Software Architect
 WSO2 Inc: http://wso2.com
 T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
 W: https://medium.com/@imesh TW: @imesh
 lean. enterprise. middleware


>>> Regards,
>>> Nira
>>>
>>> --
>>>
>>>
>>> *Niranjan Karunanandham*
>>> Associate Technical Lead - WSO2 Inc.
>>> WSO2 Inc.: http://www.wso2.com
>>>
>>>
>>
>>
>> --
>> *Imesh Gunaratne*
>> Software Architect
>> WSO2 Inc: http://wso2.com
>> T: +94 11 214 5345 M: +94 77 374 2057 <+94%2077%20374%202057>
>> W: https://medium.com/@imesh TW: @imesh
>> lean. enterprise. middleware
>>
>>
>
>
> --
>
>
> *Niranjan Karunanandham*
> Associate Technical Lead - WSO2 Inc.
> WSO2 Inc.: http://www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Interceptor#preCall method stopped serving HTTP GET randomly.

2017-03-29 Thread Thusitha Thilina Dayaratne
Hi Abimaran,

In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
> org.wso2.msf4j.Interceptor.
> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
> works correctly.
> I debugged MSF4JMessageProcessor, there is a method named
> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
> haven't hit when I send GET.

This is the entry point for MSF4J. If that doesn't get hit, it implies due
to some reason the http message doesn't reach to MSF4J side through the
transport. But that is strange. COuold you please verify that?

Thanks
Thusitha

On Wed, Mar 29, 2017 at 12:01 PM, Abimaran Kugathasan 
wrote:

> Hi Dev,
>
> In API Manager 3.0, We have RESTAPISecurityInterceptor which implements
> org.wso2.msf4j.Interceptor.
>
> When I send HTTP Get request, I'm getting 405, for HTTP POST and PUT it
> works correctly.
>
> I debugged MSF4JMessageProcessor, there is a method named
> 'receive(CarbonMessage carbonMessage, CarbonCallback carbonCallback)' which
> haven't hit when I send GET.
>
> Which component calls this method? Also is there any configuration to
> decide which HTTP verb should be served?
>
> Appreciate your responses.
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer - API Technologies
>
> Email : abima...@wso2.com
> Mobile : +94 773922820 <+94%2077%20392%202820>
>
> 
> 
>   
> 
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC3

2017-03-27 Thread Thusitha Thilina Dayaratne
Tested few samples. No issues found.

[x] Stable - Go ahead and release

Thanks
Thusitha

On Mon, Mar 27, 2017 at 10:59 AM, Eranda Rajapakshe 
wrote:

> Tested the feature, microservice hot deployment in server mode.
>
> [x] Stable - go ahead and release
>
> Thanks,
>
> On Sat, Mar 25, 2017 at 8:23 AM, Danesh Kuruppu  wrote:
>
>> Hi Devs,
>>
>> This is the 3rd Release Candidate of WSO2 MSF4J(Microservices Framework
>> for Java) 2.2.0.
>>
>> Please download, test the framework and vote. The vote will be open for
>> 72 hours or as needed.
>> Refer to GitHub readmes for guides.
>>
>> * Source and binary distribution files:*
>> https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc3
>>
>> *Maven staging repository:*
>> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1017
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/msf4j/tree/v2.2.0-rc3
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you,
>> Platform Team
>>
>> --
>>
>> *Danesh Kuruppu*
>> Senior Software Engineer | WSO2
>>
>> Email: dan...@wso2.com
>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>> Web: WSO2 Inc 
>>
>>
>
>
> --
> *Eranda Rajapakshe*
> Software Engineer
> WSO2 Inc.
> Mobile : +94784822608
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Use char array as micro service parameter

2017-03-23 Thread Thusitha Thilina Dayaratne
Hi All,

AFAIU char[] is not compliant with neither QueryParam nor FormParam
according to [1]. Therefore from MSF4J (as a JAXRS engine) IMHO we couldn't
support char[].
What if we use StringBuilder instead of String. Then we can delete the
StringBuilder as we want. WDYT?

[1] - http://docs.oracle.com/javaee/7/api/javax/ws/rs/FormParam.html

Thanks

On Thu, Mar 23, 2017 at 3:10 PM, Denuwanthi De Silva 
wrote:

> Hi,
>
> I have  a micro service which calls a password validation back end.
> For that, it passes the password as microservice parameter.
>
> Due to security concerns we need to pass password as a char array instead
> of a String[1].
>
> The password value is retrieved using jquery input field call and passed
> as a char array.
> Then it is passed to the microservice via an ajax call. But the
> micorservice method Params does not support char[] type[1].
>
> Is there a way we can handle this without involving String type in the
> intermediate level?
>
>
>
> [1]https://nvisium.com/blog/2016/03/31/secure-password-strings/
> [2]https://jersey.java.net/apidocs/2.7/jersey/javax/ws/rs/QueryParam.html
>
>
> Thanks,
> --
> Denuwanthi De Silva
> Senior Software Engineer;
> WSO2 Inc.; http://wso2.com,
> Email: denuwan...@wso2.com
> Blog: https://denuwanthi.wordpress.com/
>



-- 
Thusitha Dayaratne
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC1

2017-03-20 Thread Thusitha Thilina Dayaratne
Missed the issue link in previous mail
https://github.com/wso2/msf4j/issues/369

On Tue, Mar 21, 2017 at 10:36 AM, Thusitha Thilina Dayaratne <
thusit...@wso2.com> wrote:

> While doing the OSGi testing occurs the error[1]. We need to do a
> carbon-transport release to get this fix.
>
> [x] Broken - Do not release
>
> Thanks
>
> On Tue, Mar 21, 2017 at 10:08 AM, Danesh Kuruppu <dan...@wso2.com> wrote:
>
>> I have tested microservices hot deployment in windows environment.
>>
>> [x] Stable - go ahead and release
>>
>> Thanks
>> Danesh
>>
>> On Mon, Mar 20, 2017 at 10:18 AM, Lakshman Udayakantha <
>> lakshm...@wso2.com> wrote:
>>
>>> I have tested the following samples as well.
>>>
>>> 1. http-session
>>> 2. fileserver
>>>
>>> [x] Stable - go ahead and release
>>>
>>> Thanks,
>>> Lakshman
>>>
>>> On Mon, Mar 20, 2017 at 9:17 AM, Lakshman Udayakantha <
>>> lakshm...@wso2.com> wrote:
>>>
>>>> I have tested the following samples.
>>>>
>>>> 1. basicauth-security
>>>> 2. jpa
>>>> 3. lifecycle
>>>> 4. spring profile
>>>> 5. template
>>>>
>>>> [x] Stable - go ahead and release
>>>>
>>>> Thanks,
>>>>
>>>> On Thu, Mar 16, 2017 at 5:46 PM, Danesh Kuruppu <dan...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> This is the 1st Release Candidate of WSO2 MSF4J(Microservices
>>>>> Framework for Java) 2.2.0.
>>>>>
>>>>> Please download, test the framework and vote. The vote will be open
>>>>> for 72 hours or as needed.
>>>>> Refer to GitHub readmes for guides.
>>>>>
>>>>> * Source and binary distribution files:*
>>>>> <https://github.com/wso2/msf4j/releases/tag/v2.1.0-rc1>
>>>>> https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc1
>>>>>
>>>>>
>>>>> *Maven staging repository:*https://maven.wso2.org/nexus/c
>>>>> ontent/repositories/orgwso2msf4j-1013
>>>>>
>>>>> *The tag to be voted upon:*
>>>>> https://github.com/wso2/msf4j/tree/v2.2.0-rc1
>>>>>
>>>>>
>>>>> [ ] Broken - do not release (explain why)
>>>>> [ ] Stable - go ahead and release
>>>>>
>>>>> Thank you,
>>>>> Platform Team
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Danesh Kuruppu*
>>>>> Senior Software Engineer | WSO2
>>>>>
>>>>> Email: dan...@wso2.com
>>>>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>>>>> Web: WSO2 Inc <https://wso2.com/signature>
>>>>>
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Lakshman Udayakantha
>>>> WSO2 Inc. www.wso2.com
>>>> lean.enterprise.middleware
>>>> Mobile: *0717429601*
>>>>
>>>>
>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0717429601*
>>>
>>>
>>
>>
>> --
>>
>> *Danesh Kuruppu*
>> Senior Software Engineer | WSO2
>>
>> Email: dan...@wso2.com
>> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
>> Web: WSO2 Inc <https://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809 <+94%2071%20275%206809>
> Blog  alokayasoya.blogspot.com
> Abouthttp://about.me/thusithathilina
> <http://wso2.com/signature>
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.2.0 RC1

2017-03-20 Thread Thusitha Thilina Dayaratne
While doing the OSGi testing occurs the error[1]. We need to do a
carbon-transport release to get this fix.

[x] Broken - Do not release

Thanks

On Tue, Mar 21, 2017 at 10:08 AM, Danesh Kuruppu  wrote:

> I have tested microservices hot deployment in windows environment.
>
> [x] Stable - go ahead and release
>
> Thanks
> Danesh
>
> On Mon, Mar 20, 2017 at 10:18 AM, Lakshman Udayakantha  > wrote:
>
>> I have tested the following samples as well.
>>
>> 1. http-session
>> 2. fileserver
>>
>> [x] Stable - go ahead and release
>>
>> Thanks,
>> Lakshman
>>
>> On Mon, Mar 20, 2017 at 9:17 AM, Lakshman Udayakantha > > wrote:
>>
>>> I have tested the following samples.
>>>
>>> 1. basicauth-security
>>> 2. jpa
>>> 3. lifecycle
>>> 4. spring profile
>>> 5. template
>>>
>>> [x] Stable - go ahead and release
>>>
>>> Thanks,
>>>
>>> On Thu, Mar 16, 2017 at 5:46 PM, Danesh Kuruppu  wrote:
>>>
 Hi Devs,

 This is the 1st Release Candidate of WSO2 MSF4J(Microservices
 Framework for Java) 2.2.0.

 Please download, test the framework and vote. The vote will be open
 for 72 hours or as needed.
 Refer to GitHub readmes for guides.

 * Source and binary distribution files:*
 
 https://github.com/wso2/msf4j/releases/tag/v2.2.0-rc1


 *Maven staging repository:*https://maven.wso2.org/nexus/c
 ontent/repositories/orgwso2msf4j-1013

 *The tag to be voted upon:*
 https://github.com/wso2/msf4j/tree/v2.2.0-rc1


 [ ] Broken - do not release (explain why)
 [ ] Stable - go ahead and release

 Thank you,
 Platform Team


 --

 *Danesh Kuruppu*
 Senior Software Engineer | WSO2

 Email: dan...@wso2.com
 Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
 Web: WSO2 Inc 


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Lakshman Udayakantha
>>> WSO2 Inc. www.wso2.com
>>> lean.enterprise.middleware
>>> Mobile: *0717429601*
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0717429601*
>>
>>
>
>
> --
>
> *Danesh Kuruppu*
> Senior Software Engineer | WSO2
>
> Email: dan...@wso2.com
> Mobile: +94 (77) 1690552 <+94%2077%20169%200552>
> Web: WSO2 Inc 
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] OSGi Support for Carbon-Transport

2017-03-02 Thread Thusitha Thilina Dayaratne
Hi Integration Team,

Could you please review and merge the following PRs. These PRs provide the
OSGi support for new connector framework. So we can migrate MSF4J for new
transport architecture.

[1] - https://github.com/wso2/carbon-messaging/pull/59
[2] - https://github.com/wso2/carbon-transports/pull/238

Thanks
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Can we provide HTTP handler args in Interceptor level?

2017-02-28 Thread Thusitha Thilina Dayaratne
 MSF4J
>>>>   - Inject the value using @Context annotation (Ex:-
>>>>   @Context(String key) Object[] arguments)
>>>>
>>>>
>>>>1. *Have a Map<String, Object> map that could be injected using
>>>>@Context annotation*
>>>>
>>>> Using this approach what you basically do is:
>>>>
>>>>
>>>>- Add the arguments you need to inject using the @Context
>>>>   annotation using @SetContext(String key, Object value). This can be 
>>>> done
>>>>   inside interceptors or HTTP methods
>>>>   - Inject the value to using @Context(String key)
>>>>
>>>> WDYT?
>>>>
>>>> [1] Custom Injection and Lifecycle Management
>>>> <https://jersey.java.net/documentation/latest/ioc.html>
>>>> [2] Custom Context Providers for CXF with the Context Annotation
>>>> <https://www.blackpepper.co.uk/blog/custom-context-providers-for-cxf-with-the-context-annotation>
>>>>
>>>> On Mon, Feb 27, 2017 at 9:59 AM, Vidura Nanayakkara <vidu...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Malintha,
>>>>>
>>>>> You can access the `Request` instance from the interceptors. You also
>>>>> can access the same Request instance from the HTTP resource by injecting
>>>>> the request to the HTTP method (`@Context Request request`). You also can
>>>>> set any argument in the request using `request.setProperty(String key,
>>>>> Object value)` method and retrieve the value using
>>>>> `request.getProperty(String key)` method. Will this be sufficient for your
>>>>> requirement?
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Feb 27, 2017 at 5:55 AM, Thusitha Thilina Dayaratne <
>>>>> thusit...@wso2.com> wrote:
>>>>>
>>>>>> Hi Malintha,
>>>>>>
>>>>>> Thank you very much for the PR. We did some restructuring for the
>>>>>> interceptors to cater product requirementsts[1]. Therefore we won't be 
>>>>>> able
>>>>>> to directly merge this. But surely we will check what we can do with 
>>>>>> this.
>>>>>>
>>>>>> [1] - https://github.com/wso2/msf4j/pull/338
>>>>>>
>>>>>> Thanks
>>>>>> Thusitha
>>>>>>
>>>>>> On Sun, Feb 26, 2017 at 4:04 PM, Malintha Amarasinghe <
>>>>>> malint...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Currently in MSF4J Interceptor level, we can get the HTTP handler
>>>>>>> method which would be invoked by calling  serviceMethodInfo.get
>>>>>>> Method().
>>>>>>>
>>>>>>> Additionally, It will be useful to have request parameters as well
>>>>>>> in order to perform various types of request validations in Interceptor
>>>>>>> level such as Bean validation and ETag validation.
>>>>>>>
>>>>>>> Tried to do a fix which adds a new field to ServiceMethodInfo class
>>>>>>> as args[] [1]. But this required some API changes.
>>>>>>>
>>>>>>> Thanks!
>>>>>>>
>>>>>>> [1] https://github.com/wso2/msf4j/pull/356
>>>>>>>
>>>>>>> --
>>>>>>> Malintha Amarasinghe
>>>>>>> Software Engineer
>>>>>>> *WSO2, Inc. - lean | enterprise | middleware*
>>>>>>> http://wso2.com/
>>>>>>>
>>>>>>> Mobile : +94 712383306P
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thusitha Dayaratne
>>>>>> Software Engineer
>>>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>>>
>>>>>> Mobile  +94712756809 <+94%2071%20275%206809>
>>>>>> Blog  alokayasoya.blogspot.com
>>>>>> Abouthttp://about.me/thusithathilina
>>>>>> <http://wso2.com/signature>
>>>>>>
>>>>>>
>>>>>> ___
>>>>>> Dev mailing list
>>>>>> Dev@wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>>
>>>>> *Vidura Nanayakkara*
>>>>> Software Engineer
>>>>>
>>>>> Email : vidu...@wso2.com
>>>>> Mobile : +94 (0) 717 919277 <+94%2071%20791%209277>
>>>>> Web : http://wso2.com
>>>>> Blog : https://medium.com/@viduran <http://wso2.com/>
>>>>> Twitter : http://twitter.com/viduranana
>>>>> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
>>>>> <http://wso2.com/>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>>
>>>> *Vidura Nanayakkara*
>>>> Software Engineer
>>>>
>>>> Email : vidu...@wso2.com
>>>> Mobile : +94 (0) 717 919277 <+94%2071%20791%209277>
>>>> Web : http://wso2.com
>>>> Blog : https://medium.com/@viduran <http://wso2.com/>
>>>> Twitter : http://twitter.com/viduranana
>>>> LinkedIn : https://lk.linkedin.com/in/vidura-nanayakkara
>>>> <http://wso2.com/>
>>>>
>>>
>>>
>>>
>>> --
>>> Malintha Amarasinghe
>>> Software Engineer
>>> *WSO2, Inc. - lean | enterprise | middleware*
>>> http://wso2.com/
>>>
>>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>>
>>
>>
>>
>> --
>> Malintha Amarasinghe
>> Software Engineer
>> *WSO2, Inc. - lean | enterprise | middleware*
>> http://wso2.com/
>>
>> Mobile : +94 712383306 <+94%2071%20238%203306>
>>
>
>
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306 <+94%2071%20238%203306>
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while initiating response builder

2017-02-27 Thread Thusitha Thilina Dayaratne
Hi Gayan,

Yes, MSF4JRuntimeDelegate uses the MSF4J response Builder.  Overall the
jaxrs-delegate bundle require for the MSF4J Since we have implmented some
jax-rs interfaces in that bundle.
e.g. MSF4JResponse, MediaTypeHeaderProvider etc..

Thanks
Thusitha

On Mon, Feb 27, 2017 at 5:26 PM, Gayan Gunawardana  wrote:

> @Thusitha
>
> Is there any reason behind this ?
>
> Does it require MSF4JRuntimeDelegate from jaxrs-delegates. As I can
> remember we added noStart() to jaxrs-delegates since it is a fragment
> bundle.
>
> Thanks,
> Gayan
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP Verb PATCH support for MSF4J

2017-02-26 Thread Thusitha Thilina Dayaratne
Created issue[1] to track this.

[1] - https://github.com/wso2/msf4j/issues/357

Thanks
Thusitha

On Mon, Feb 27, 2017 at 8:41 AM, Afkham Azeez <az...@wso2.com> wrote:

>
>
> On Mon, Feb 27, 2017 at 6:21 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Azeez,
>>
>> Since we restructured swagger support as a separate dependency, if we use
>> swagger PATCH annotation then we have to bring swagger dependency again to
>> the core. That will increase the minimum jar size. Therefore IMHO it would
>> be better if we implement the PATCH annotation without depending on Swagger.
>> WDYT?
>>
>
> Yeah since it is a simple annotation we may add that to the msf4j core
> itself.
>
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Feb 27, 2017 at 12:00 AM, Gayan Gunawardana <ga...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Sun, Feb 26, 2017 at 11:48 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> Someone suggested on SO to use the PATCH annotation from
>>>> io.swagger.jaxrs
>>>>
>>>> That may be a good alternative since we already support Swagger.
>>>>
>>> Thanks for the alternative so we can go with io.swagger.jaxrs.PATCH.
>>>
>>>>
>>>> On Sun, Feb 26, 2017 at 11:46 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>>
>>>>> We can add that annotation to MSF4J itself.
>>>>>
>>>>> On Sun, Feb 26, 2017 at 11:28 PM, Gayan Gunawardana <ga...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Since javax.ws.rs does not provide http verb PATCH we have to have
>>>>>> custom Patch annotation as below.
>>>>>>
>>>>>> @Target({ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@HttpMethod("PATCH")public
>>>>>>  @interface PATCH {}
>>>>>>
>>>>>> Is it ok to have this annotation in component level or is there any
>>>>>> common place we can put this annotation ?
>>>>>>
>>>>>> Alternatively we can use "X-HTTP-Method-Override" header too.
>>>>>>
>>>>>> WDYT ?
>>>>>>
>>>>>> Thanks,
>>>>>> Gayan
>>>>>>
>>>>>> --
>>>>>>
>>>>>> Gayan Gunawardana
>>>>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>>>>> Email: ga...@wso2.com
>>>>>> Mobile: +94 (71) 8020933
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> *Afkham Azeez*
>>>>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>>> * <http://www.apache.org/>*
>>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>>> * cell: +94 77 3320919 <077%20332%200919>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*
>>>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> * <http://www.apache.org/>*
>>>> *email: **az...@wso2.com* <az...@wso2.com>
>>>> * cell: +94 77 3320919 <+94%2077%20332%200919>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*
>>>>
>>>
>>>
>>>
>>> --
>>> Gayan Gunawardana
>>> Software Engineer; WSO2 Inc.; http://wso2.com/
>>> Email: ga...@wso2.com
>>> Mobile: +94 (71) 8020933
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Afkham Azeez*
> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * <http://www.apache.org/>*
> *email: **az...@wso2.com* <az...@wso2.com>
> * cell: +94 77 3320919 <+94%2077%20332%200919>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*
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] HTTP Verb PATCH support for MSF4J

2017-02-26 Thread Thusitha Thilina Dayaratne
Hi Azeez,

Since we restructured swagger support as a separate dependency, if we use
swagger PATCH annotation then we have to bring swagger dependency again to
the core. That will increase the minimum jar size. Therefore IMHO it would
be better if we implement the PATCH annotation without depending on Swagger.
WDYT?

Thanks
Thusitha

On Mon, Feb 27, 2017 at 12:00 AM, Gayan Gunawardana  wrote:

>
>
> On Sun, Feb 26, 2017 at 11:48 PM, Afkham Azeez  wrote:
>
>> Someone suggested on SO to use the PATCH annotation from io.swagger.jaxrs
>>
>> That may be a good alternative since we already support Swagger.
>>
> Thanks for the alternative so we can go with io.swagger.jaxrs.PATCH.
>
>>
>> On Sun, Feb 26, 2017 at 11:46 PM, Afkham Azeez  wrote:
>>
>>> We can add that annotation to MSF4J itself.
>>>
>>> On Sun, Feb 26, 2017 at 11:28 PM, Gayan Gunawardana 
>>> wrote:
>>>
 Hi All,

 Since javax.ws.rs does not provide http verb PATCH we have to have
 custom Patch annotation as below.

 @Target({ElementType.METHOD})@Retention(RetentionPolicy.RUNTIME)@HttpMethod("PATCH")public
  @interface PATCH {}

 Is it ok to have this annotation in component level or is there any
 common place we can put this annotation ?

 Alternatively we can use "X-HTTP-Method-Override" header too.

 WDYT ?

 Thanks,
 Gayan

 --

 Gayan Gunawardana
 Software Engineer; WSO2 Inc.; http://wso2.com/
 Email: ga...@wso2.com
 Mobile: +94 (71) 8020933

>>>
>>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> * *
>>> *email: **az...@wso2.com* 
>>> * cell: +94 77 3320919 <077%20332%200919>blog: **http://blog.afkham.org*
>>> 
>>> *twitter: **http://twitter.com/afkham_azeez*
>>> 
>>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>>> *
>>>
>>> *Lean . Enterprise . Middleware*
>>>
>>
>>
>>
>> --
>> *Afkham Azeez*
>> Senior Director, Platform Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * *
>> *email: **az...@wso2.com* 
>> * cell: +94 77 3320919 <+94%2077%20332%200919>blog: *
>> *http://blog.afkham.org* 
>> *twitter: **http://twitter.com/afkham_azeez*
>> 
>> *linked-in: **http://lk.linkedin.com/in/afkhamazeez
>> *
>>
>> *Lean . Enterprise . Middleware*
>>
>
>
>
> --
> Gayan Gunawardana
> Software Engineer; WSO2 Inc.; http://wso2.com/
> Email: ga...@wso2.com
> Mobile: +94 (71) 8020933
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MSF4J] Can we provide HTTP handler args in Interceptor level?

2017-02-26 Thread Thusitha Thilina Dayaratne
Hi Malintha,

Thank you very much for the PR. We did some restructuring for the
interceptors to cater product requirementsts[1]. Therefore we won't be able
to directly merge this. But surely we will check what we can do with this.

[1] - https://github.com/wso2/msf4j/pull/338

Thanks
Thusitha

On Sun, Feb 26, 2017 at 4:04 PM, Malintha Amarasinghe 
wrote:

> Hi,
>
> Currently in MSF4J Interceptor level, we can get the HTTP handler method
> which would be invoked by calling  serviceMethodInfo.getMethod().
>
> Additionally, It will be useful to have request parameters as well in
> order to perform various types of request validations in Interceptor level
> such as Bean validation and ETag validation.
>
> Tried to do a fix which adds a new field to ServiceMethodInfo class as
> args[] [1]. But this required some API changes.
>
> Thanks!
>
> [1] https://github.com/wso2/msf4j/pull/356
>
> --
> Malintha Amarasinghe
> Software Engineer
> *WSO2, Inc. - lean | enterprise | middleware*
> http://wso2.com/
>
> Mobile : +94 712383306P
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error while initiating response builder

2017-02-25 Thread Thusitha Thilina Dayaratne
Hi Hasintha,

According to the stacktrace, it seems that RuntimeDelegate class is loaded
from 2 bundles. Can you check if you have 2 dependecnies which provided
this class ?

Thanks
Thusitha

On Sat, Feb 25, 2017 at 5:10 PM, Hasintha Indrajee 
wrote:

>
> Hi all,
>
> I am getting the following class cast exception while initiating a
> Response builder. Following is the line of code causing this issue. Note
> that I am only getting this while running tests. Any Idea about the cause
> of this issue ?
>
> Response.ResponseBuilder builder = Response.noContent();
>
>
> msf4j-core[org.wso2.msf4j.internal.MSF4JMessageProcessor] : Unmapped
> exception
> java.lang.LinkageError: ClassCastException: attempting to
> castjar:file:/home/hasinthaindrajee/.m2/repository/javax/ws/rs/javax.
> ws.rs-api/2.0/javax.ws.rs-api-2.0.jar!/javax/ws/rs/ext/RuntimeDelegate.class
> to bundleresource://53.fwk689654773/javax/ws/rs/ext/RuntimeDelegate.class
> at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:146)
> at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
> at javax.ws.rs.core.Response$ResponseBuilder.newInstance(
> Response.java:848)
> at javax.ws.rs.core.Response.status(Response.java:590)
> at javax.ws.rs.core.Response.status(Response.java:601)
> at javax.ws.rs.core.Response.accepted(Response.java:709)
> at org.wso2.carbon.identity.sample.outbound.response.
> ACSRequestResponseBuilderFactory.createBuilder(
> ACSRequestResponseBuilderFactory.java:16)
> at org.wso2.carbon.identity.gateway.resource.GatewayManager.execute(
> GatewayManager.java:86)
> at org.wso2.carbon.identity.gateway.resource.GatewayResource.processGet(
> GatewayResource.java:59)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(
> HttpMethodInfo.java:132)
> at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod(
> MSF4JMessageProcessor.java:130)
> at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(
> MSF4JMessageProcessor.java:72)
> at org.wso2.carbon.transport.http.netty.listener.
> WorkerPoolDispatchingSourceHandler.lambda$publishToWorkerPool$12(
> WorkerPoolDispatchingSourceHandler.java:125)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> --
> Hasintha Indrajee
> WSO2, Inc.
> Mobile:+94 771892453 <+94%2077%20189%202453>
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-22 Thread Thusitha Thilina Dayaratne
Hi Sajith,

I agree that using JDK private/internal classes might cause undesired
issues in the future. We might need to figure out some other way to cater
the UUF requirement in order to change the Service path at Runtime.
I've created the issue[1] to track this.

[1] - https://github.com/wso2/msf4j/issues/355

Thanks
Thusitha


On Thu, Feb 23, 2017 at 12:01 AM, SajithAR Ariyarathna <sajit...@wso2.com>
wrote:

> Hi Thusitha,
>
> On Wed, Feb 22, 2017 at 10:26 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> It seems that IBM JDK doesn't contain the particular class whereas Oracle
>> and OpenJDK contain the class. According to[1] we are recommending Oracle
>> and Open JDK only. Therefore we may have to decide whether we should
>> support IBM JDK as well.
>>
>> Agree with what you are saying here. However I noticed couple of issues
> in the org.wso2.msf4j.util.RuntimeAnnotations class.
>
> You are loading following classes using Class.forName() method,
>
> sun.reflect.annotation.AnnotationInvocationHandler [1] - this is an
> internal class of the JDK and we shouldn't be using this as it might
> changed in a future JDK version.
> java.lang.Class$Atomic [2] - this is a private inter class of the
> java.lang.Class class
> java.lang.Class$AnnotationData [3] - again this is a private inner class
> of the java.lang.Class class
>
>
> Using private/internal classes (that are not part of the public API) of
> the JDK is extremely unstable as they might changed in future
> releases (even in minor version releases). So, we need to figure out a way
> to avoid above mentioned classes.
>
> [1] https://github.com/wso2/msf4j/blob/v2.1.0/core/src/
> main/java/org/wso2/msf4j/util/RuntimeAnnotations.java#L49
> [2] https://github.com/wso2/msf4j/blob/v2.1.0/core/src/
> main/java/org/wso2/msf4j/util/RuntimeAnnotations.java#L54
> [3] https://github.com/wso2/msf4j/blob/v2.1.0/core/src/
> main/java/org/wso2/msf4j/util/RuntimeAnnotations.java#L55
>
> Thanks.
>
> Thanks
>> Thusitha
>>
>> On Wed, Feb 22, 2017 at 1:07 PM, SajithAR Ariyarathna <sajit...@wso2.com>
>> wrote:
>>
>>> According to [2] (see "Oracle content" section) IBM JDK 8 has Nashorn in
>>> it. So, UUF should work in IBM JDK :).
>>>
>>> Regarding your issue, According to the error log in [1] it seems like a
>>> CNF problem. Log says the it cannot find "java.lang.Class$Atomic" class.
>>> CNF exception is thrown from the static block in
>>> org.wso2.msf4j.util.RuntimeAnnotations class [3] where
>>> "java.lang.Class$Atomic" class is loaded using Class.forName() method.
>>>
>>> @ThusithaD, is there a workaround or a solution for this?
>>>
>>> [2] https://www-01.ibm.com/support/docview.wss?uid=swg21696670
>>> [3] https://github.com/wso2/msf4j/blob/v2.1.0/core/src/main/
>>> java/org/wso2/msf4j/util/RuntimeAnnotations.java#L54
>>>
>>> Thanks.
>>>
>>> On Wed, Feb 22, 2017 at 12:39 PM, Denuwanthi De Silva <
>>> denuwan...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> When starting the IS 6.0.0 pack on top of IBM JDK 8 latest version we
>>>> get the error reported at [1].
>>>> The other microservices in the pack are added without an issue. I also
>>>> tested a micro service sample and it works fine on ibm jdk.
>>>> But when come to org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice
>>>> it throws the reported error.
>>>> After that cannot visit the User portal app as well.
>>>>
>>>> Are we supporting IBM jsk 8 for uuf? Any insight on this will be
>>>> helpful.
>>>>
>>>>
>>>>
>>>> [1][https://wso2.org/jira/browse/IDENTITY-5762]
>>>>
>>>>
>>>> Thanks,
>>>> --
>>>> Denuwanthi De Silva
>>>> Senior Software Engineer;
>>>> WSO2 Inc.; http://wso2.com,
>>>> Email: denuwan...@wso2.com
>>>> Blog: https://denuwanthi.wordpress.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> <https://wso2.com/signature>
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue when running UUFMicroservice on top of IBM JDK 8

2017-02-22 Thread Thusitha Thilina Dayaratne
It seems that IBM JDK doesn't contain the particular class whereas Oracle
and OpenJDK contain the class. According to[1] we are recommending Oracle
and Open JDK only. Therefore we may have to decide whether we should
support IBM JDK as well.

[1] - https://docs.wso2.com/display/Carbon500/Installation+Prerequisites

Thanks
Thusitha

On Wed, Feb 22, 2017 at 1:07 PM, SajithAR Ariyarathna 
wrote:

> According to [2] (see "Oracle content" section) IBM JDK 8 has Nashorn in
> it. So, UUF should work in IBM JDK :).
>
> Regarding your issue, According to the error log in [1] it seems like a
> CNF problem. Log says the it cannot find "java.lang.Class$Atomic" class.
> CNF exception is thrown from the static block in org.wso2.msf4j.util.
> RuntimeAnnotations class [3] where "java.lang.Class$Atomic" class is
> loaded using Class.forName() method.
>
> @ThusithaD, is there a workaround or a solution for this?
>
> [2] https://www-01.ibm.com/support/docview.wss?uid=swg21696670
> [3] https://github.com/wso2/msf4j/blob/v2.1.0/core/src/
> main/java/org/wso2/msf4j/util/RuntimeAnnotations.java#L54
>
> Thanks.
>
> On Wed, Feb 22, 2017 at 12:39 PM, Denuwanthi De Silva  > wrote:
>
>> Hi,
>>
>> When starting the IS 6.0.0 pack on top of IBM JDK 8 latest version we get
>> the error reported at [1].
>> The other microservices in the pack are added without an issue. I also
>> tested a micro service sample and it works fine on ibm jdk.
>> But when come to org.wso2.carbon.uuf.httpconnector.msf4j.UUFMicroservice
>> it throws the reported error.
>> After that cannot visit the User portal app as well.
>>
>> Are we supporting IBM jsk 8 for uuf? Any insight on this will be helpful.
>>
>>
>>
>> [1][https://wso2.org/jira/browse/IDENTITY-5762]
>>
>>
>> Thanks,
>> --
>> Denuwanthi De Silva
>> Senior Software Engineer;
>> WSO2 Inc.; http://wso2.com,
>> Email: denuwan...@wso2.com
>> Blog: https://denuwanthi.wordpress.com/
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.1.1 RC1

2017-02-14 Thread Thusitha Thilina Dayaratne
Hi All,

Thank you for testing the MSF4J 2.1.1-RC1. This vote is passed with 5 +1s
and ) -1s. Therefore we will proceed with the MSF4J 2.1.1 release.

Thanks
Thusitha

On Tue, Feb 14, 2017 at 12:35 PM, Nuwan Dias <nuw...@wso2.com> wrote:

> [x] Stable - go ahead and release.
>
> Thanks,
> NuwanD.
>
> On Wed, Feb 8, 2017 at 8:55 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 1st Release Candidate of WSO2 MSF4J(Microservices Framework
>> for Java) 2.1.1.
>>
>> Please download, test the framework and vote. The vote will be open for
>> 72 hours or as needed.
>> Refer to GitHub readmes for guides.
>>
>> *Source and binary distribution files:*
>> https://github.com/wso2/msf4j/releases/tag/v2.1.1-rc1
>>
>> *Maven staging repository:*
>> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1012
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/msf4j/tree/v2.1.1-rc1
>>
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you,
>> Platform Team
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Dias
>
> Software Architect - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729 <+94%2077%20777%205729>
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbon-transports] Error while reading the protocol from carbon-transport-request

2017-02-12 Thread Thusitha Thilina Dayaratne
Adding Isuru n Senduran.

On Mon, Feb 13, 2017 at 12:26 PM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi,
>
> I noticed that reading the protocol property from carbon-transport-request
> is always returning "http" regardless of the actual protocol [1].
>
> Is this a bug or do we have to rely on "IS_SECURED_CONNECTION" property
> to determine whether the protocol is HTTPS?
>
>
> [1] https://github.com/wso2/carbon-transports/blob/master/
> http/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/
> transport/http/netty/listener/SourceHandler.java#L218
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 MSF4J 2.1.1 RC1

2017-02-08 Thread Thusitha Thilina Dayaratne
Hi Devs,

This is the 1st Release Candidate of WSO2 MSF4J(Microservices Framework for
Java) 2.1.1.

Please download, test the framework and vote. The vote will be open for 72
hours or as needed.
Refer to GitHub readmes for guides.

*Source and binary distribution files:*
https://github.com/wso2/msf4j/releases/tag/v2.1.1-rc1

*Maven staging repository:*
https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1012

*The tag to be voted upon:*
https://github.com/wso2/msf4j/tree/v2.1.1-rc1



[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thank you,
Platform Team
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [C5] MSF4J Interceptors need to be configurable.

2017-01-15 Thread Thusitha Thilina Dayaratne
t;>>>>> solution for each issue below.
>>>>>>>
>>>>>>>
>>>>>>> *1. Ability to intercept response messages *
>>>>>>>
>>>>>>> JAX-RS defines 2 interfaces as ContainerRequestFilter[1] and
>>>>>>> ContainerResponseFilter[2] to intercept request and response messages, 
>>>>>>> IMO
>>>>>>> these 2 interfaces are much clean and standard then current MSF4J
>>>>>>> Interceptor[3] concept where response intercepting is not simple.
>>>>>>>
>>>>>>>
>>>>>>> *2.  Ability to apply/skip Interceptors  in global and per-service
>>>>>>> levels *
>>>>>>>
>>>>>>> Annotation driven NameBinding[4] concept defined for JAX-RS Filters
>>>>>>> is very flexible and easy to use as well. This NameBinding[4] feature
>>>>>>> enables to apply JAX-RS Filters at global, per-Resource or even
>>>>>>> per-sub-Resource level.
>>>>>>>
>>>>>>> *3. Define the order of Interceptors *
>>>>>>>
>>>>>>> JAX-RS defines several message processing extension points such as
>>>>>>> Pre, PreMatch, Post, it's possible to apply Filters during some of these
>>>>>>> message processing stages, as an example refer PreMatching[5] 
>>>>>>> annotation.
>>>>>>>
>>>>>>> Further, to define fine grained order of Filters JAX-RS reuse Java's
>>>>>>> standard Priority[1] annotation, through this annotation numeric 
>>>>>>> priority
>>>>>>> value can be define per Filters basis. JAX-RS already provide set of
>>>>>>> pre-defined Priories here[6]
>>>>>>>
>>>>>> Ability to engage in different phases is definitely a good feature.
>>>>>> But there can be situations where we need to engage multiple interceptors
>>>>>> at same phase with order of execution. As example i need to engage both
>>>>>> authenticate and authorization interceptors in pre invoke phase but
>>>>>> authenticator first and then authorizer as 2nd interceptor. In that case 
>>>>>> we
>>>>>> need to mention phase and order within phase in some way. It seems CXF 
>>>>>> and
>>>>>> other run times already handled this in different ways.
>>>>>>
>>>>>
>>>>> This requirement is well handled by the JAX-RS concept I described
>>>>> above.
>>>>>
>>>>> Thanks !
>>>>>
>>>>>>
>>>>>>
>>>>>> [1]http://cxf.apache.org/docs/interceptors.html
>>>>>>
>>>>>> Thanks,
>>>>>> sanjeewa.
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I have setup a meeting in next Wednesday, if we can cater current
>>>>>>> requirements using above concepts let's go ahead with JAX-RS Filters.
>>>>>>>
>>>>>>>
>>>>>>> [1] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/in
>>>>>>> dex.html?javax/ws/rs/container/ContainerRequestFilter.html
>>>>>>> [2] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/ja
>>>>>>> vax/ws/rs/container/ContainerResponseFilter.html
>>>>>>> [3] - https://github.com/wso2/msf4j/blob/master/core/src/main/ja
>>>>>>> va/org/wso2/msf4j/Interceptor.java
>>>>>>> [4] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/in
>>>>>>> dex.html?javax/ws/rs/NameBinding.html
>>>>>>> [5] - https://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/in
>>>>>>> dex.html?javax/ws/rs/container/PreMatching.html
>>>>>>> [6] - https://jax-rs-spec.java.net/nonav/2.0/apidocs/javax/ws/rs
>>>>>>> /Priorities.html
>>>>>>>
>>>>>>> Thanks !
>>>>>>>
>>>>>>>> ​
>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks & Regards,
>>>>>>>> Ishara Cooray
>>>>>>>> Senior Software Engineer
>>>>>>>> Mobile : +9477 262 9512 <

Re: [Dev] [APIM][C5] Intermittent error while loading Swagger Definition

2017-01-10 Thread Thusitha Thilina Dayaratne
Hi Thilini,

It seems that some services are getting register before all the carbon
transports get registered.  Could you please create a github issue for this.
We'll look into this.

Thanks
Thusitha

On Tue, Jan 10, 2017 at 4:55 PM, Thilini Shanika  wrote:

> Hi all,
>
> We are experiencing an issue while loading swagger definition via
> SwaggerDefinitionService. Intermittently, after a server restart, we are
> getting 'Swagger definition not found ' error while loading a given
> swagger definition by path.
>
> For example, if we are loading http://localhost:9090/
> swagger?path=/api/am/store/v0.10/apis definition (by
> /api/am/store/v0.10/apis
>  base path),
> intermittently the definition cannot be retrieved and getting following
> error.
>
> {"error": "Swagger definition not found for path /api/am/store/v0.10/apis"}
>
> But after one or more server restarts, we can load the swagger definition 
> with the given base path, successfully.
>
> When we were debugging, getSwaggerDefinition implementation in 
> SwaggerDefinitionService, we observed that intermittently 
> serviceRegistry.getServiceWithBasePath(path) [1] turned to be empty. So that 
> the swagger definition could not be loaded.
>
> Any clue on this behavior of not having a service registered with a given 
> base path, intermittently?
>
> [1] 
> https://github.com/wso2/msf4j/blob/v2.1.0/swagger/src/main/java/org/wso2/msf4j/swagger/SwaggerDefinitionService.java#L75
>
>
>
>
> --
> Thilini Shanika
> Senior Software Engineer
> WSO2, Inc.; http://wso2.com
> 20, Palmgrove Avenue, Colombo 3
>
> E-mail: tgtshan...@gmail.com
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] About the Role & Permission on the AS 5.3.0

2017-01-06 Thread Thusitha Thilina Dayaratne
Hi Wenxing,

1. what's the differences between them, how about the use cases?

Please refer [1] for more details on each of the table

> 2. when I am using the UserStoreManager to addUser with role lists, into
> which table will those roles go?

You can refer to the particular UserStore addUser method and check on this
e.g if you are using JDBCUserStore refer to [2] code might differ based on
the version
3. for an User, I can get its role list, but how to get the permission list
of an User?
I think you can refer to AS test case[1] which we do a similar thing

[1] -
http://tharindue.blogspot.com/2015/04/wso2-identity-server-data-dictionary.html
[2] -
https://github.com/wso2/carbon-kernel/blob/v4.4.9/core/org.wso2.carbon.user.core/src/main/java/org/wso2/carbon/user/core/jdbc/JDBCUserStoreManager.java#L1265
[3] -
https://github.com/wso2/product-as/blob/wso2as-5.3.0/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/usermgt/UserManagementWithAdminUserTestCase.java#L165

Thanks
Thusitha


On Fri, Jan 6, 2017 at 1:54 PM, wenxing zheng 
wrote:

> Dear all,
>
> With AS 5.3.0, we are able to create multiple tenants, and per tenant, we
> can create its own users with different roles.
>
> Regarding the Role definition in the DB, we have several kinds of roles,
> including:
> 1. UM_ROLE
> 2. UM_USER_ROLE
> 3. UM_SYSTEM_ROLE
> 4. UM_SYSTEM_USER_ROLE
> 5. UM_HYBRID_ROLE
> 6. UM_HYBRID_USER_ROLE
> 7. UM_SHARED_USER_ROLE
>
> My questions are:
> 1. what's the differences between them, how about the use cases?
> 2. when I am using the UserStoreManager to addUser with role lists, into
> which table will those roles go?
> 3. for an User, I can get its role list, but how to get the permission
> list of an User?
>
>
> Please shed more light on this topic and share some detailed description
> for reference.
>
> Thanks, Wenxing
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the PR

2016-12-13 Thread Thusitha Thilina Dayaratne
PR Merged.

@Maheshika, could you please release the bundle?

Thanks
Thusitha

On Sat, Dec 10, 2016 at 7:56 PM, Supun Sethunga <sup...@wso2.com> wrote:

> Hi Thusitha
>
> Made the changes. Can you please review and merge?
>
> Thanks,
> SupunS
>
> On Sat, Dec 10, 2016 at 7:46 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Supun,
>>
>> I've put some comments on the PR. Could you please check on them?
>>
>> Thanks
>> Thusitha
>>
>> On Sat, Dec 10, 2016 at 7:28 PM, Supun Sethunga <sup...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> Can you please review and merge the PR [1].
>>>
>>> [1] https://github.com/wso2/orbit/pull/253
>>>
>>> Regards,
>>> SupunS
>>>
>>> --
>>> *Supun Sethunga*
>>> Senior Software Engineer
>>> WSO2, Inc.
>>> http://wso2.com/
>>> lean | enterprise | middleware
>>> Mobile : +94 716546324 <+94%2071%20654%206324>
>>> Blog: http://supunsetunga.blogspot.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Supun Sethunga*
> Senior Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324 <+94%2071%20654%206324>
> Blog: http://supunsetunga.blogspot.com
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge the PR

2016-12-10 Thread Thusitha Thilina Dayaratne
Hi Supun,

I've put some comments on the PR. Could you please check on them?

Thanks
Thusitha

On Sat, Dec 10, 2016 at 7:28 PM, Supun Sethunga  wrote:

> Hi,
>
> Can you please review and merge the PR [1].
>
> [1] https://github.com/wso2/orbit/pull/253
>
> Regards,
> SupunS
>
> --
> *Supun Sethunga*
> Senior Software Engineer
> WSO2, Inc.
> http://wso2.com/
> lean | enterprise | middleware
> Mobile : +94 716546324 <+94%2071%20654%206324>
> Blog: http://supunsetunga.blogspot.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] JIRA Account to report bugs

2016-12-08 Thread Thusitha Thilina Dayaratne
Hi Hanen,

You can register an account at [1] and then you should be able to login to
public JIRA

[1] - https://wso2.com/user/register

Thanks

On Thu, Dec 8, 2016 at 7:21 PM, Hanen Ben Rhouma  wrote:

> Could you please create me a jira account to report bugs related to WSO2
> IS 5.3.0-Beta ?
>
> Thanks,
> Hanen
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [C5] MSF4J Interceptors need to be configurable.

2016-12-06 Thread Thusitha Thilina Dayaratne
Hi Ishara,

As you have mentioned, with the current architecture we can't set the
specific interceptor for a particular service but rather to all services in
the registry. And also if there are multiple interceptors and one
interceptor returns false from its' preCaall then the invocation chain will
not continue further.

IMHO we have few options

   - We can implement a way to register specific interceptors to specific
   services
   - We can support JAX-RS Filters
   - We can provide a way to skip some interceptors for specific services

@Azeez WDYT?

Thanks
Thusitha


On Wed, Dec 7, 2016 at 10:56 AM, Ishara Cooray  wrote:

> HI,
>
> We are using MSF4J interceptor for securing REST APIs in API Manager. [1]
> As for now Interceptor registration happens at the class level @Component
> annotation as below.
>
> @Component(
> name = "org.wso2.carbon.apimgt.rest.api.common.interceptors.
> OAUTH2SecurityInterceptor",
> service = Interceptor.class,
> immediate = true
> )
> The limitations here are
>
>1. it is not possible to have more than one interceptor that will
>dynamically pick when an api call is received(Because the order matters and
>we are not certain which interceptor will take into effect ).
>2. We cannot explicitly configure to use Custom interceptors because
>of the above[1] reason.
>
> Do we have any plans for these limitations?
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixed an issue in Swagger-parser

2016-12-02 Thread Thusitha Thilina Dayaratne
PR Merged.

@Maheshika, could you please release the bundle?

Thanks
Thusitha


On Thu, Dec 1, 2016 at 5:40 PM, Ishara Cooray <isha...@wso2.com> wrote:

> Hi Thusitha,
>
> Please find the updated PR https://github.com/wso2/orbit/pull/250
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> On Thu, Dec 1, 2016 at 5:18 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Ishara,
>>
>> This is an already released version. Therefore you need to increase the
>> version and create a new bundle with this fix.
>>
>> Thanks
>> Thusitha
>>
>> On Thu, Dec 1, 2016 at 5:14 PM, Ishara Cooray <isha...@wso2.com> wrote:
>>
>>> Hi,
>>>
>>> I have fixed an issue in swagger-parser and PR[1] is sent.
>>>
>>> Please review & merge the PR and provide us a release version. This is
>>> needed for APIM C5 development work.
>>>
>>> [1] https://github.com/wso2/orbit/pull/249
>>> <https://github.com/wso2/orbit/pull/249>
>>>
>>> Thanks & Regards,
>>> Ishara Cooray
>>> Senior Software Engineer
>>> Mobile : +9477 262 9512 <+94%2077%20262%209512>
>>> WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809 <+94%2071%20275%206809>
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fixed an issue in Swagger-parser

2016-12-01 Thread Thusitha Thilina Dayaratne
Hi Ishara,

This is an already released version. Therefore you need to increase the
version and create a new bundle with this fix.

Thanks
Thusitha

On Thu, Dec 1, 2016 at 5:14 PM, Ishara Cooray  wrote:

> Hi,
>
> I have fixed an issue in swagger-parser and PR[1] is sent.
>
> Please review & merge the PR and provide us a release version. This is
> needed for APIM C5 development work.
>
> [1] https://github.com/wso2/orbit/pull/249
> 
>
> Thanks & Regards,
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512 <+94%2077%20262%209512>
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Having base contexts for micro service based APIs running within kernal

2016-11-20 Thread Thusitha Thilina Dayaratne
Hi Sanjeewa,

We will add support to prepend a path as the root path in the next release.

Thanks
Thusitha

On Wed, Nov 9, 2016 at 10:06 AM, Sanjeewa Malalgoda <sanje...@wso2.com>
wrote:

> Hi Azeez, All,
> We have implemented Microservice class from our service classes and
> registered them using pom file as follows.
>
> 
> osgi.service; objectClass="org.wso2.msf4j.Microservice";
> serviceCount="5"
> 
>
> Since we have 2 microservices for store and publisher we cannot share same
> root context. So we should have a way to deploy them with different
> context. Now this is *Blocker* for us to move forward with C5 based
> implementation as we have started development of both components. Please
> let us know how should we fix this.
>
> Thanks,
> sanjeewa.
>
> On Fri, Oct 28, 2016 at 9:50 PM, Sagara Gunathunga <sag...@wso2.com>
> wrote:
>
>>
>>
>> On Fri, Oct 28, 2016 at 9:11 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Sagara,
>>>
>>> When adding YAML based config, though the config is properly picked,
>>> profiles are not getting set. I compared the implementation with
>>> springboot. There they having a separate property source for the active
>>> configuration based on the YAML.
>>>
>>> I don't think we should keep them for next release.
>>>
>>> Then I'll look more into that and try to get it done for the next RC.
>>>
>>
>> If time permits I will also try to check this over the weekend otherwise
>> let's check this Monday morning.
>>
>> Thanks !
>>
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Fri, Oct 28, 2016 at 9:07 PM, Sagara Gunathunga <sag...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Fri, Oct 28, 2016 at 8:56 PM, Thusitha Thilina Dayaratne <
>>>> thusit...@wso2.com> wrote:
>>>>
>>>>> Hi Sagara,
>>>>>
>>>>> I've added the property file based improvement to the rc3. But due to
>>>>> some issues didn't add the YML based improvement.
>>>>> Will fix them and add to the next release.
>>>>>
>>>>
>>>> Can you please mention what are those issues ?
>>>>
>>>> I don't think we should keep them for next release.
>>>>
>>>> Thanks !
>>>>
>>>>>
>>>>> Thanks
>>>>> Thusitha
>>>>>
>>>>> On Wed, Oct 26, 2016 at 8:33 AM, Sagara Gunathunga <sag...@wso2.com>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Hi Thusitha,
>>>>>>
>>>>>> Please make sure to merge Spring profile related improvements (both
>>>>>> property file and YAML files based) in to new RC.
>>>>>>
>>>>>> Thanks !
>>>>>>
>>>>>> On Tue, Oct 25, 2016 at 6:39 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>>>>
>>>>>>> We are calling off the vote on the current RC because of issues. So
>>>>>>> we may be able to merge this.
>>>>>>>
>>>>>>> On Tue, Oct 25, 2016 at 5:50 PM, Sanjeewa Malalgoda <
>>>>>>> sanje...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Added comment on pull request. Please consider this for next
>>>>>>>> release.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> sanjeewa.
>>>>>>>>
>>>>>>>> On Mon, Oct 24, 2016 at 6:32 PM, Sanjeewa Malalgoda <
>>>>>>>> sanje...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Yes this kind of solution will work for the moment. Thanks all for
>>>>>>>>> your inputs.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> sanjeewa.
>>>>>>>>>
>>>>>>>>> On Mon, Oct 24, 2016 at 6:22 PM, Lakshan Gamage <laks...@wso2.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Hi all,
>>>>>>>>>>
>>>>>>>>>> In the solution I provided with my PR [1], this was done by
>>>>>>>>>> overloading deploy method 

Re: [Dev] [DEV][APIM][C5] Error occcured with Created status with Location Header.

2016-11-06 Thread Thusitha Thilina Dayaratne
Hi Tharindu,

ATM, MSF4J doesn't support the Response.location(). We will fix this in the
next release. Until that, as a workaround, you can use the set the status
code and location header manually.

e.g.

Response.status(Response.Status.CREATED).header(HttpHeaders.LOCATION,
"http://localhost:8080/service/abc?page=2;).build();


Thanks

Thusitha


On Sun, Nov 6, 2016 at 8:57 PM, Tharindu Dharmarathna 
wrote:

> Hi All,
>
>
> We are going to implement API Creation Flow in API Manager C5 with msf4j
> 2.1.0.
>
> *Requirement*
> Need  to send 201 (Created) with Location for the Created API resource.
>
> *Issue*
>
> When we implement this and test we came across with below exception.
>
> WARN {org.wso2.msf4j.internal.MSF4JMessageProcessor} - Unmapped exception
>> java.lang.UnsupportedOperationException
>> at org.wso2.msf4j.delegates.MSF4JResponse$Builder.location(MSF4
>> JResponse.java:334)
>> at javax.ws.rs.core.Response.created(Response.java:699)
>> at org.wso2.carbon.apimgt.rest.api.publisher.impl.ApisApiServic
>> eImpl.apisPost(ApisApiServiceImpl.java:260)
>> at org.wso2.carbon.apimgt.rest.api.publisher.ApisApi.apisPost(A
>> pisApi.java:425)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.wso2.msf4j.internal.router.HttpMethodInfo.invoke(HttpMet
>> hodInfo.java:132)
>> at org.wso2.msf4j.internal.MSF4JMessageProcessor.dispatchMethod
>> (MSF4JMessageProcessor.java:130)
>> at org.wso2.msf4j.internal.MSF4JMessageProcessor.receive(MSF4JM
>> essageProcessor.java:72)
>> at org.wso2.carbon.transport.http.netty.listener.WorkerPoolDisp
>> atchingSourceHandler.lambda$publishToWorkerPool$12(WorkerPoo
>> lDispatchingSourceHandler.java:125)
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>> Executor.java:1142)
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>> lExecutor.java:617)
>> at java.lang.Thread.run(Thread.java:745)
>
>
> Is there any workaround available for this ?
>
> Github issue created as [1].
>
> [1] - https://github.com/wso2/msf4j/issues/320
>
> Thanks
>
>
> *Tharindu Dharmarathna*Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 Microservices Framework for Java (WSO2 MSF4J) 2.1.0 Released

2016-11-05 Thread Thusitha Thilina Dayaratne
WSO2 Microservices Framework for Java (WSO2 MSF4J) 2.1.0 Released!

We are pleased to announce the release of WSO2 Microservices Framework for
Java (WSO2 MSF4J ) 2.1.0. The distribution,
source and tag location for this release is available here
. WSO2 MSF4J is a
lightweight, high performance microservices runtime. It also provides a
very simple programming model for developing Java based microservices.

This release of the WSO2 MSF4J includes the following key features. For
further details please refer to the Product Page
.
What’s new in this Release

   -

   HTTP session support
   -

   Cookie support
   -

   JAX-RS sub-resource support
   -

   Ability to run different services on different ports within the same
   runtime
   -

   Message tracing support for DAS
   -

   Pet store deployment based on docker compose
   -

   Ability to register services with dynamic paths
   -

   Feign based MSF4J Client Support
   -

   Spring Configuration externalization support based on YAML and
   properties files


In addition to the above features, MSF4J supports analysis with
visualization with WSO2 Data Analytics Server (DAS), and includes a set of
comprehensive samples which demonstrate how to use MSF4J features and build
Microservices Architecture (MSA) based solutions. The base pack is also
reduced significantly and now it is around 5 MB. This release also includes
several bug fixes to the previous version of MSF4J.

How you can contribute

We welcome contributors: head over to wso2.com/community to find out more.
If you have any suggestions or are interested in WSO2 MSF4J 2.1.0
discussions, please join the dev@wso2.org or architect...@wso2.org mailing
lists.

Reporting Issues

Please report issues and documentation errors regarding WSO2 MSF4J 2.1.0
through the Github issue tracking system
.

Thanks,

WSO2 MSF4J Team
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [DEV][C5] How to access the REST API Request properties

2016-11-03 Thread Thusitha Thilina Dayaratne
Hi Sanjeewa,

I didn't get the exact point that you mentioned. Could you please elaborate
what we need to do from MSF4J side to cater the requirement?


Thanks
Thusitha

On Thu, Nov 3, 2016 at 5:46 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
wrote:

> Hi Azeez, Thusitha,
> Shouldn't we build a authentication context once request pass through
> authentication interceptor? Usually web services frameworks do that. And
> most of the time they let users to build authentication context and users
> context so they can access some of those in application implementation. We
> should be able to add that as a property from interceptor and use it in
> next interceptors or app implementation. But shouldn't we support it OOB?
>
> Thanks,
> sanjeewa.
>
> On Thu, Nov 3, 2016 at 5:21 PM, Ishara Cooray <isha...@wso2.com> wrote:
>
>> Thanks Thusitha.
>>
>> FI
>> following info could be found as request properties.
>>
>>
>> ​
>> ​
>> Also the token info could be found in Token introspection response
>>
>> <http://connect2id.com/products/server/docs/api/token-introspection#introspection-response>
>>
>> Thanks & Regards,
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> On Thu, Nov 3, 2016 at 10:30 AM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Ishara,
>>>
>>> AFAIK you should be able to get that information through the request
>>> object.
>>> e.g request.getProperties()
>>>
>>> Thanks
>>> Thusitha
>>>
>>> On Thu, Nov 3, 2016 at 10:24 AM, Ishara Cooray <isha...@wso2.com> wrote:
>>>
>>>> +Shafreen, Sanjeewa, Kishanthan
>>>>
>>>> Hi,
>>>>
>>>> With regard to C5 implementation, i need to get api request properties
>>>> such as Message.BASE_PATH, Message.PATH_INFO, Message.HTTP_REQUEST_METHOD
>>>> for scope validation of a rest api call.
>>>>
>>>> In Interceptor interface we have precall method which i can use to get
>>>> above information.
>>>>
>>>> public boolean preCall(Request request, Response responder,
>>>> ServiceMethodInfo serviceMethodInfo)
>>>>
>>>> Appreciate if you can provide the usage of the above to get http
>>>> request info and token info.
>>>>
>>>>
>>>> Thanks.
>>>> Ishara
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> <http://wso2.com/signature>
>>>
>>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.
> blogspot.com/ <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 MSF4J 2.1.0 RC3

2016-11-03 Thread Thusitha Thilina Dayaratne
Hi Devs,

Thank you for testing the MSF4J 2.1.0 RC3. This vote is passed with 3 +1s
and 0 -1s.
Therefore we will proceed with the MSF4J 2.1.0 release.

Best Regards
Thusitha

On Thu, Nov 3, 2016 at 2:17 PM, Nisala Nanayakkara <nis...@wso2.com> wrote:

> Hi Thusitha,
>
> I have tested following samples.
>
>- Hello World
>- Spring Hello World
>- Session-aware Service
>- Lifecycle
>- Metrics
>- File Server
>- FormParam
>- BasicAuth Security
>- OAuth2 Security
>- Template
>
> [x] Stable - go ahead and release
> Thanks,
> Nisala
>
> On Mon, Oct 31, 2016 at 8:41 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Devs,
>>
>> This is the 3rd Release Candidate of WSO2 MSF4J(Microservices Framework
>> for Java) 2.1.0.
>>
>> Please download, test the framework and vote. The vote will be open for
>> 72 hours or as needed.
>> Refer to GitHub readmes for guides.
>>
>> *Source and binary distribution files:*
>> https://github.com/wso2/msf4j/releases/tag/v2.1.0-rc3
>>
>> *Maven staging repository:*
>> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1010
>>
>> *The tag to be voted upon:*
>> https://github.com/wso2/msf4j/tree/v2.1.0-rc3
>>
>>
>>
>> [ ] Broken - do not release (explain why)
>> [ ] Stable - go ahead and release
>>
>> Thank you,
>> Platform Team
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Fwd: [DEV][C5] How to access the REST API Request properties

2016-11-02 Thread Thusitha Thilina Dayaratne
Hi Ishara,

AFAIK you should be able to get that information through the request object.
e.g request.getProperties()

Thanks
Thusitha

On Thu, Nov 3, 2016 at 10:24 AM, Ishara Cooray  wrote:

> +Shafreen, Sanjeewa, Kishanthan
>
> Hi,
>
> With regard to C5 implementation, i need to get api request properties
> such as Message.BASE_PATH, Message.PATH_INFO, Message.HTTP_REQUEST_METHOD
> for scope validation of a rest api call.
>
> In Interceptor interface we have precall method which i can use to get
> above information.
>
> public boolean preCall(Request request, Response responder,
> ServiceMethodInfo serviceMethodInfo)
>
> Appreciate if you can provide the usage of the above to get http request
> info and token info.
>
>
> Thanks.
> Ishara
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 Carbon Kernel 4.4.10 Released

2016-11-01 Thread Thusitha Thilina Dayaratne
*WSO2 Carbon Kernel 4.4.10 Released !!*

The Platform team is pleased to announce the release of Carbon Kernel 4.4
.10.

*Fixed Bugs*
*https://wso2.org/jira/issues/?filter=13580
*

*Known Issues*
*https://wso2.org/jira/issues/?filter=13581
*

*How to Contribute*

   - WSO2 Carbon Kernel code is hosted on Github.
   - The Git repository is https://github.com/wso2/carbon-kernel/tree/4.4.x
   - Carbon Kernel 4.4.10 release tag is
*https://github.com/wso2/carbon-kernel/releases/tag/v4.4.10
   *
   - Please report issues at Carbon Jira, https://wso2.org/jira/br
   owse/CARBON


*Contact Us*
WSO2 Carbon developers can be contacted via following mailing lists:

   - WSO2 Developers List: dev@wso2.org
   - WSO2 Architecture List: architect...@wso2.org


You can download the released distribution from the following location.
http://wso2.com/products/carbon/

Thank you for your interest in WSO2 Carbon Kernel .

Best Regards
Platform Team

-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 MSF4J 2.1.0 RC3

2016-10-31 Thread Thusitha Thilina Dayaratne
Hi Devs,

This is the 3rd Release Candidate of WSO2 MSF4J(Microservices Framework for
Java) 2.1.0.

Please download, test the framework and vote. The vote will be open for 72
hours or as needed.
Refer to GitHub readmes for guides.

*Source and binary distribution files:*
https://github.com/wso2/msf4j/releases/tag/v2.1.0-rc3

*Maven staging repository:*
https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1010

*The tag to be voted upon:*
https://github.com/wso2/msf4j/tree/v2.1.0-rc3



[ ] Broken - do not release (explain why)
[ ] Stable - go ahead and release

Thank you,
Platform Team
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File upload implementation with micro service

2016-10-31 Thread Thusitha Thilina Dayaratne
Hi Sanjeewa,

I've created a Github issue[1] to track this. We will add this on future
releases.

Thanks
Thusitha

On Mon, Oct 31, 2016 at 5:42 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
wrote:

> Hi Thusitha,
> Thanks for the information and it helped a lot. However when i had look at
> on the implementation for form service[1] i realized some of the
> information like file size, length etc are missing there. As i understood
> name and content type is not enough for some use cases(as example we do not
> allow users to upload files larger than 1Mb). If you can please add those
> attributes in next release. I have updated code generator[2] with this
> change.
>
> [1]https://github.com/wso2/msf4j/blob/master/core/src/
> main/java/org/wso2/msf4j/formparam/FileInfo.java
> [2]https://github.com/sanjeewa-malalgoda/swagger2MSF4J
>
> Thanks,
> sanjeewa.
>
> On Mon, Oct 31, 2016 at 3:39 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sanjeewa,
>>
>> ATM msf4j also supports a similar approach[1].  You can also access File
>> object like in[2]
>>
>> [1] - https://github.com/wso2/msf4j/blob/master/samples/formpara
>> m/src/main/java/org/wso2/msf4j/example/FormService.java#L170
>> [2] - https://github.com/wso2/msf4j/blob/master/samples/formpara
>> m/src/main/java/org/wso2/msf4j/example/FormService.java#L132
>>
>> Thanks
>> Thusitha
>>
>> On Mon, Oct 31, 2016 at 3:29 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
>> wrote:
>>
>>> Hi Azeez, All,
>>> When we are implementing multi part file uploads and document updates
>>> via post we may need to access file data within service implementation in
>>> addition to input stream. In such cases most of the REST frameworks create
>>> this object[1] in framework level as passed to service implementation. When
>>> it comes to MSF4J what is the best approach to do form post with data file?
>>> Also what is the best way to pass file data to service implementation layer?
>>>
>>> As of now we are using org.glassfish.jersey.media.mul
>>> tipart.FormDataContentDisposition class for this in API Manager REST
>>> API store and publisher micro services. And we are still not sure what
>>> comes to implementation layer when we add this to micro service. Most of
>>> the time we may need to do some work to fill data to this object. Also we
>>> cannot zip those jars due to license mismatching and it can impact on
>>> binary size. Is there any possibility of supporting this from MSF4J
>>> framework level. Otherwise we have to generate file data class from code
>>> generator and add it to generated code. But IMO its not clean solution.
>>>
>>> Appreciate your feedback on this.
>>>
>>> [1]https://jersey.java.net/apidocs/2.8/jersey/org/glassfish/
>>> jersey/media/multipart/FormDataContentDisposition.html
>>>
>>> Thanks,
>>> sanjeewa.
>>>
>>> --
>>>
>>> *Sanjeewa Malalgoda*
>>> WSO2 Inc.
>>> Mobile : +94713068779
>>>
>>> <http://sanjeewamalalgoda.blogspot.com/>blog
>>> :http://sanjeewamalalgoda.blogspot.com/
>>> <http://sanjeewamalalgoda.blogspot.com/>
>>>
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> <http://sanjeewamalalgoda.blogspot.com/>blog :http://sanjeewamalalgoda.
> blogspot.com/ <http://sanjeewamalalgoda.blogspot.com/>
>
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] File upload implementation with micro service

2016-10-31 Thread Thusitha Thilina Dayaratne
Hi Sanjeewa,

ATM msf4j also supports a similar approach[1].  You can also access File
object like in[2]

[1] -
https://github.com/wso2/msf4j/blob/master/samples/formparam/src/main/java/org/wso2/msf4j/example/FormService.java#L170
[2] -
https://github.com/wso2/msf4j/blob/master/samples/formparam/src/main/java/org/wso2/msf4j/example/FormService.java#L132

Thanks
Thusitha

On Mon, Oct 31, 2016 at 3:29 PM, Sanjeewa Malalgoda 
wrote:

> Hi Azeez, All,
> When we are implementing multi part file uploads and document updates via
> post we may need to access file data within service implementation in
> addition to input stream. In such cases most of the REST frameworks create
> this object[1] in framework level as passed to service implementation. When
> it comes to MSF4J what is the best approach to do form post with data file?
> Also what is the best way to pass file data to service implementation layer?
>
> As of now we are using 
> org.glassfish.jersey.media.multipart.FormDataContentDisposition
> class for this in API Manager REST API store and publisher micro services.
> And we are still not sure what comes to implementation layer when we add
> this to micro service. Most of the time we may need to do some work to fill
> data to this object. Also we cannot zip those jars due to license
> mismatching and it can impact on binary size. Is there any possibility of
> supporting this from MSF4J framework level. Otherwise we have to generate
> file data class from code generator and add it to generated code. But IMO
> its not clean solution.
>
> Appreciate your feedback on this.
>
> [1]https://jersey.java.net/apidocs/2.8/jersey/org/glassfish/jersey/media/
> multipart/FormDataContentDisposition.html
>
> Thanks,
> sanjeewa.
>
> --
>
> *Sanjeewa Malalgoda*
> WSO2 Inc.
> Mobile : +94713068779
>
> blog :http://sanjeewamalalgoda.
> blogspot.com/ 
>
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.10 RC1

2016-10-31 Thread Thusitha Thilina Dayaratne
Hi Devs,

Thank you for testing the 4.4.10-rc1. This vote is pass with 3 +1s and 0
-1s. Therefore we will proceed with the carbon kernel 4.4.10 release.

Thanks
Thusitha

On Mon, Oct 31, 2016 at 12:48 PM, Megala Uthayakumar <meg...@wso2.com>
wrote:

> Hi All,
>
> I tested the following with EMM 2.2.0-SNAPSHOT and found no issues. Hence
> voting +1 stable.
>
> - User management in super-tenant mode
> - User management in tenant mode
> - Calling the admin services in tenant mode as well as in super-tenant
> mode.
>
> Thanks.
>
> Regards,
> Megala
>
>
>
> On Mon, Oct 31, 2016 at 12:10 PM, Kamidu Punchihewa <sachi...@wso2.com>
> wrote:
>
>> Hi All,
>>
>> Built and tested the following with the EMM 2.2.0-SNAPSHOT. The release
>> behave as expected,Hence voting [+1][stable].
>>
>>
>>- User Management in EMM
>>- Device Management
>>- Certificate Management
>>- Policy Management.
>>
>> Please note that the above sections were tested utilizing the
>> environments given below,
>>
>> Ubuntu xenial (16.04) 64bit.
>>> 8GB RAM
>>> Mozilla Firefox 49.0.2 and Google Chrome 54.0.2840.59
>>>
>>
>> Thanks and Best Regards,
>>
>> Kamidu Sachith Punchihewa
>> *Software Engineer*
>> WSO2, Inc.
>> lean . enterprise . middleware
>> Mobile : +94 (0) 770566749 <%2B94%20%280%29%20773%20451194>
>>
>>
>> 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.
>>
>> On Mon, Oct 31, 2016 at 11:47 AM, Malintha Fernando <malinth...@wso2.com>
>> wrote:
>>
>>> Hi All,
>>>
>>> Built and tested following features with EMM 2.2.0 and found no issues.
>>> Hence voting [+1][stable].
>>>
>>>- Creating a new user roles and adding publisher permissions.
>>>- Login to EMM console with new user
>>>- Enrolling a device and pushing a policy
>>>- Creating a tenant and login to EMM console
>>>
>>>
>>> Thanks & Regards,
>>> Malintha
>>>
>>> On Fri, Oct 28, 2016 at 11:55 PM, Thusitha Thilina Dayaratne <
>>> thusit...@wso2.com> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.10.
>>>>
>>>> This release fixes the following issues
>>>> *https://wso2.org/jira/issues/?filter=13580
>>>> <https://wso2.org/jira/issues/?filter=13580>*
>>>>
>>>> Please download and test your products with kernel 4.4.10 RC1 and vote
>>>> . The vote will be open for 72 hours or as longer as needed.
>>>>
>>>> Source and binary distribution files:
>>>> https://github.com/wso2/carbon-kernel/archive/v4.4.10-rc1.zip
>>>> http://svn.wso2.org/repos/wso2/people/thusithad/4.4.10/wso2c
>>>> arbon-4.4.10.zip
>>>>
>>>> Maven staging repository
>>>> *https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1042
>>>> <https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1042>*
>>>>
>>>> The tag to be voted upon :
>>>> https://github.com/wso2/carbon-kernel/releases/tag/v4.4.10-rc1
>>>>
>>>> [ ] Broken - Do not release (explain why)
>>>> [ ] Stable  - Go ahead and release
>>>>
>>>> Thank you
>>>> Platform Team
>>>> --
>>>> Thusitha Dayaratne
>>>> Software Engineer
>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>
>>>> Mobile  +94712756809
>>>> Blog  alokayasoya.blogspot.com
>>>> Abouthttp://about.me/thusithathilina
>>>> <http://wso2.com/signature>
>>>>
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Malintha Fernando
>>> Software Engineer
>>> WSO2 Inc. | http://wso2.com
>>> Mobile : +94 718874922
>>> Blog : http://blog.malintha.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Megala Uthayakumar
>
> Software Engineer
> Mobile : 0779967122
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [VOTE] Release WSO2 Carbon Kernel 4.4.10 RC1

2016-10-28 Thread Thusitha Thilina Dayaratne
Hi Devs,

This is the 1st release candidate of WSO2 Carbon Kernel 4.4.10.

This release fixes the following issues
*https://wso2.org/jira/issues/?filter=13580
*

Please download and test your products with kernel 4.4.10 RC1 and vote. The
vote will be open for 72 hours or as longer as needed.

Source and binary distribution files:
https://github.com/wso2/carbon-kernel/archive/v4.4.10-rc1.zip
http://svn.wso2.org/repos/wso2/people/thusithad/4.4.10/wso2carbon-4.4.10.zip

Maven staging repository
*https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1042
*

The tag to be voted upon :
https://github.com/wso2/carbon-kernel/releases/tag/v4.4.10-rc1

[ ] Broken - Do not release (explain why)
[ ] Stable  - Go ahead and release

Thank you
Platform Team
-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Having base contexts for micro service based APIs running within kernal

2016-10-28 Thread Thusitha Thilina Dayaratne
Hi Sagara,

I've added the property file based improvement to the rc3. But due to some
issues didn't add the YML based improvement.
Will fix them and add to the next release.

Thanks
Thusitha

On Wed, Oct 26, 2016 at 8:33 AM, Sagara Gunathunga <sag...@wso2.com> wrote:

>
> Hi Thusitha,
>
> Please make sure to merge Spring profile related improvements (both
> property file and YAML files based) in to new RC.
>
> Thanks !
>
> On Tue, Oct 25, 2016 at 6:39 PM, Afkham Azeez <az...@wso2.com> wrote:
>
>> We are calling off the vote on the current RC because of issues. So we
>> may be able to merge this.
>>
>> On Tue, Oct 25, 2016 at 5:50 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
>> wrote:
>>
>>> Added comment on pull request. Please consider this for next release.
>>>
>>> Thanks,
>>> sanjeewa.
>>>
>>> On Mon, Oct 24, 2016 at 6:32 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
>>> wrote:
>>>
>>>> Yes this kind of solution will work for the moment. Thanks all for your
>>>> inputs.
>>>>
>>>> Thanks,
>>>> sanjeewa.
>>>>
>>>> On Mon, Oct 24, 2016 at 6:22 PM, Lakshan Gamage <laks...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> In the solution I provided with my PR [1], this was done by
>>>>> overloading deploy method in MicroservicesRunner. But I also think it 
>>>>> would
>>>>> be better if we can support @ApplicationPath annotation in the future.
>>>>>
>>>>> [1] - https://github.com/wso2/msf4j/pull/287
>>>>>
>>>>> On Mon, Oct 24, 2016 at 5:49 PM, Thusitha Thilina Dayaratne <
>>>>> thusit...@wso2.com> wrote:
>>>>>
>>>>>> Hi Sanjeewa,
>>>>>>
>>>>>> We had a similar request a few weeks ago[1] (But at compile time).
>>>>>> But we decided not to add this as a feature since users can append the 
>>>>>> path
>>>>>> when defining the class @Path.
>>>>>>
>>>>>>>
>>>>>>> If we take this base context to code level things will work. But its
>>>>>>> not a clean solution IMO. So at the time we start service or some
>>>>>>> configuration file should allow to add root context to API easily. Can 
>>>>>>> we
>>>>>>> do something like this?
>>>>>>
>>>>>> IMHO providing the base path as a config value is a good approach.
>>>>>> We might need to support @ApplicationPath in future release.
>>>>>>
>>>>>> [1] - Dev Mail thread: "[Dev] Setting the Application Base URI in
>>>>>> msf4j"
>>>>>>
>>>>>> Thanks
>>>>>> Thusitha
>>>>>>
>>>>>> On Mon, Oct 24, 2016 at 5:41 PM, Sanjeewa Malalgoda <
>>>>>> sanje...@wso2.com> wrote:
>>>>>>
>>>>>>> Hi Azeez, All,
>>>>>>> When we are implementing APIs for API Management operations we need
>>>>>>> to run APIs with different contexts. As examples /apis for publisher 
>>>>>>> can be
>>>>>>> different from store API. So far what we have done is adding base 
>>>>>>> context
>>>>>>> per each API. But that is not a part of API definition. Sometimes that
>>>>>>> helped users to run their APIs with different contexts.
>>>>>>>
>>>>>>> If we take this base context to code level things will work. But its
>>>>>>> not a clean solution IMO. So at the time we start service or some
>>>>>>> configuration file should allow to add root context to API easily. Can 
>>>>>>> we
>>>>>>> do something like this?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> sanjeewa.
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> *Sanjeewa Malalgoda*
>>>>>>> WSO2 Inc.
>>>>>>> Mobile : +94713068779
>>>>>>>
>>>>>>> <http://sanjeewamalalgoda.blogspot.com/>blog
>>>>>>> :http://sanjeewamalalgoda.blogspot.com/
>>>>>>> <http://sanjeewamalalgoda.blogspot.com/&g

Re: [Dev] Having base contexts for micro service based APIs running within kernal

2016-10-28 Thread Thusitha Thilina Dayaratne
Hi Sagara,

When adding YAML based config, though the config is properly picked,
profiles are not getting set. I compared the implementation with
springboot. There they having a separate property source for the active
configuration based on the YAML.

I don't think we should keep them for next release.

Then I'll look more into that and try to get it done for the next RC.

Thanks
Thusitha

On Fri, Oct 28, 2016 at 9:07 PM, Sagara Gunathunga <sag...@wso2.com> wrote:

>
>
> On Fri, Oct 28, 2016 at 8:56 PM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Sagara,
>>
>> I've added the property file based improvement to the rc3. But due to
>> some issues didn't add the YML based improvement.
>> Will fix them and add to the next release.
>>
>
> Can you please mention what are those issues ?
>
> I don't think we should keep them for next release.
>
> Thanks !
>
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Oct 26, 2016 at 8:33 AM, Sagara Gunathunga <sag...@wso2.com>
>> wrote:
>>
>>>
>>> Hi Thusitha,
>>>
>>> Please make sure to merge Spring profile related improvements (both
>>> property file and YAML files based) in to new RC.
>>>
>>> Thanks !
>>>
>>> On Tue, Oct 25, 2016 at 6:39 PM, Afkham Azeez <az...@wso2.com> wrote:
>>>
>>>> We are calling off the vote on the current RC because of issues. So we
>>>> may be able to merge this.
>>>>
>>>> On Tue, Oct 25, 2016 at 5:50 PM, Sanjeewa Malalgoda <sanje...@wso2.com>
>>>> wrote:
>>>>
>>>>> Added comment on pull request. Please consider this for next release.
>>>>>
>>>>> Thanks,
>>>>> sanjeewa.
>>>>>
>>>>> On Mon, Oct 24, 2016 at 6:32 PM, Sanjeewa Malalgoda <sanje...@wso2.com
>>>>> > wrote:
>>>>>
>>>>>> Yes this kind of solution will work for the moment. Thanks all for
>>>>>> your inputs.
>>>>>>
>>>>>> Thanks,
>>>>>> sanjeewa.
>>>>>>
>>>>>> On Mon, Oct 24, 2016 at 6:22 PM, Lakshan Gamage <laks...@wso2.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> In the solution I provided with my PR [1], this was done by
>>>>>>> overloading deploy method in MicroservicesRunner. But I also think it 
>>>>>>> would
>>>>>>> be better if we can support @ApplicationPath annotation in the future.
>>>>>>>
>>>>>>> [1] - https://github.com/wso2/msf4j/pull/287
>>>>>>>
>>>>>>> On Mon, Oct 24, 2016 at 5:49 PM, Thusitha Thilina Dayaratne <
>>>>>>> thusit...@wso2.com> wrote:
>>>>>>>
>>>>>>>> Hi Sanjeewa,
>>>>>>>>
>>>>>>>> We had a similar request a few weeks ago[1] (But at compile time).
>>>>>>>> But we decided not to add this as a feature since users can append the 
>>>>>>>> path
>>>>>>>> when defining the class @Path.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> If we take this base context to code level things will work. But
>>>>>>>>> its not a clean solution IMO. So at the time we start service or some
>>>>>>>>> configuration file should allow to add root context to API easily. 
>>>>>>>>> Can we
>>>>>>>>> do something like this?
>>>>>>>>
>>>>>>>> IMHO providing the base path as a config value is a good approach.
>>>>>>>>
>>>>>>>> We might need to support @ApplicationPath in future release.
>>>>>>>>
>>>>>>>> [1] - Dev Mail thread: "[Dev] Setting the Application Base URI in
>>>>>>>> msf4j"
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Thusitha
>>>>>>>>
>>>>>>>> On Mon, Oct 24, 2016 at 5:41 PM, Sanjeewa Malalgoda <
>>>>>>>> sanje...@wso2.com> wrote:
>>>>>>>>
>>>>>>>>> Hi Azeez, All,
>>>>>>>>> When we are implementing APIs for API Management o

Re: [Dev] [P2] Error while building EMM 2.2.0 with carbon-kernel 4.4.10-SNAPSHOT

2016-10-28 Thread Thusitha Thilina Dayaratne
Hi Malintha,

In the carbon.product version should be 4.4.10.SNAPSHOT (Note . instead of
-)

Thanks
Thusitha

On Fri, Oct 28, 2016 at 4:01 PM, Malintha Fernando 
wrote:

> Hi All,
>
> I am getting the following error while trying to build EMM-2.2.0 with
> carbon-kernel 4.4.10-SNAPSHOT. I changed the version of carbon.product file
> to "4.4.10-SNAPSHOP" and it threw this parsing error. It failed even when I
> tried with just "4.4.10". Any input on this is appreciated.
>
>
> *=carbon.product file=*
>
>  application="carbon.application" version="4.4.10-SNAPSHOT" useFeatures="true" 
> includeLaunchers="true">
>
>
> 
>
> 
>
>
> *​Build Error===*
>
> Generating metadata for ..
> An error has occurred while loading product file 
> /home/malintha/iot/product-emm/modules/p2-profile-gen/carbon.product. 
> Exception details: java.lang.IllegalArgumentException: Format 
> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse 
> 4.4.10-SNAPSHOT.
> [INFO]
> [INFO] --- carbon-p2-plugin:1.5.4:materialize-product 
> (creating-worker-profile) @ wso2mdm-profile-gen ---
> [INFO] Command line:
>/bin/sh -c cd /home/malintha/iot/product-emm/modules/p2-profile-gen && 
> /usr/lib/jvm/java-7-oracle/jre/bin/java -jar 
> /home/malintha/.m3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110725-1610.jar
>  -nosplash -application org.eclipse.equinox.p2.director -metadataRepository 
> file:/home/malintha/iot/product-emm/modules/p2-profile-gen/target/p2-repo 
> -artifactRepository 
> file:/home/malintha/iot/product-emm/modules/p2-profile-gen/target/p2-repo 
> -installIU carbon.product.id -profileProperties 
> org.eclipse.update.install.features=true -profile worker -bundlepool 
> file:/home/malintha/iot/product-emm/modules/p2-profile-gen/target/wso2carbon-core-4.4.10-SNAPSHOT/repository/components
>  -shared 
> file:/home/malintha/iot/product-emm/modules/p2-profile-gen/target/wso2carbon-core-4.4.10-SNAPSHOT/repository/components/p2
>  -destination 
> file:/home/malintha/iot/product-emm/modules/p2-profile-gen/target/wso2carbon-core-4.4.10-SNAPSHOT/repository/components/worker
>  -p2.os linux -p2.ws gtk -p2.arch x86 -roaming
> Installation failed.
> The installable unit carbon.product.id has not been found.
> Application failed, log file location: 
> /home/malintha/.m3/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1477650320977.log
>
> [INFO] 
> 
> [INFO] Reactor Summary:
> [INFO]
> [INFO] WSO2 MDM - Parent .. SUCCESS [  0.563 
> s]
> [INFO] wso2mdm-product-mobileservices . SUCCESS [  0.050 
> s]
> [INFO] WSO2 EMM Tools . SUCCESS [  0.025 
> s]
> [INFO] WSO2 EMM QSG tools . SUCCESS [  1.957 
> s]
> [INFO] WSO2 Mobile Device Manager (MDM) - UI styles ... SUCCESS [  0.585 
> s]
> [INFO] WSO2 Mobile Device Manager (MDM) Features .. SUCCESS [  0.013 
> s]
> [INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  SUCCESS [  0.336 
> s]
> [INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. FAILURE [ 25.626 
> s]
> [INFO] WSO2 Mobile Device Manager (MDM) - Distribution  SKIPPED
> [INFO] WSO2 MDM - Integration Tests ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM Integration Test Common ... SKIPPED
> [INFO] WSO2 MDM - Integration Admin Clients ... SKIPPED
> [INFO] WSO2 MDM - Integration Test Utils .. SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Pages ... SKIPPED
> [INFO] WSO2 MDM Backend Integration Tests . SKIPPED
> [INFO] WSO2 MDM - Integration Test UI Module .. SKIPPED
> [INFO] WSO2 MDM Platform Integration Tests  SKIPPED
> [INFO] 
> 
> [INFO] BUILD FAILURE
> [INFO] 
> 
> [INFO] Total time: 30.055 s
> [INFO] Finished at: 2016-10-28T15:55:22+05:30
> [INFO] Final Memory: 47M/1238M
> [INFO] 
> 
> [ERROR] Failed to execute goal 
> org.wso2.maven:carbon-p2-plugin:1.5.4:materialize-product 
> (creating-worker-profile) on project wso2mdm-profile-gen: Cannot generate P2 
> metadata: P2 publisher return code was 13 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] 

Re: [Dev] [VOTE] Release WSO2 MSF4J 2.1.0 RC2

2016-10-28 Thread Thusitha Thilina Dayaratne
Hi All,

We are calling off this vote due to an issue find while doing internal
calls with high concurrency.
We will fix that and do a RC2 ASAP.

Thanks
Thusitha

On Tue, Oct 25, 2016 at 10:04 AM, Nisala Nanayakkara <nis...@wso2.com>
wrote:

> Hi Thusitha,
>
> I have tested following samples.
>
>- Hello World
>- Spring Hello World
>- Session-aware Service
>- Lifecycle
>- Metrics
>- File Server
>- FormParam
>- Circuit Breaker
>- Log-interceptor
>- BasicAuth Security
>- OAuth2 Security
>- Template
>
> No major issues were found. But found a bug in a sample. In the
> Log-interceptor sample, 'org.wso2.carbon.messaging' package is not
> imported. We need to import this to run Log-interceptor sample properly.
> Other samples are working as expected.
>
> Thanks,
> Nisala
>
>
> On Mon, Oct 24, 2016 at 4:26 PM, Isuru Perera <isu...@wso2.com> wrote:
>
>> +1
>>
>> I tested metrics and http-monitoring samples.
>>
>> On Thu, Oct 20, 2016 at 5:36 PM, Thusitha Thilina Dayaratne <
>> thusit...@wso2.com> wrote:
>>
>>> Hi Devs,
>>>
>>> This is the 2nd Release Candidate of WSO2 MSF4J(Microservices Framework
>>> for Java) 2.1.0.
>>>
>>> Please download, test the framework and vote. The vote will be open for
>>> 72 hours or as needed.
>>> Refer to GitHub readmes for guides.
>>>
>>> * Source and binary distribution files:*
>>> https://github.com/wso2/msf4j/releases/tag/v2.1.0-rc2
>>>
>>> *Maven staging repository:*
>>> https://maven.wso2.org/nexus/content/repositories/orgwso2msf4j-1008
>>>
>>> *The tag to be voted upon:*
>>> https://github.com/wso2/msf4j/tree/v2.1.0-rc2
>>>
>>>
>>>
>>> [ ] Broken - do not release (explain why)
>>> [ ] Stable - go ahead and release
>>>
>>> Thank you,
>>> Platform Team
>>>
>>> --
>>> Thusitha Dayaratne
>>> Software Engineer
>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>
>>> Mobile  +94712756809
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> <http://wso2.com/signature>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Nisala Niroshana Nanayakkara,*
> Software Engineer
> Mobile:(+94)717600022
> WSO2 Inc., http://wso2.com/
>



-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Are we using the default rule set for Findbugs ?

2016-10-26 Thread Thusitha Thilina Dayaratne
1Hi Sajith,

AFAIK, in carbon-parent 5, we are using the default ruleset which is
provided by findbugs maven plugin (3.0.3)[1].

[1] -
https://github.com/wso2/carbon-parent/blob/carbon-parent-5/pom.xml#L348

Thanks
Thusitha

On Wed, Oct 26, 2016 at 2:45 PM, Sajith Kariyawasam  wrote:

> Hi,
>
> $subject or are there any customized rule sets?
>
> I have run a findbugs analysis in Eclipse, and the issues reported there
> are different
> from the issues I get when I do a *mvn clean install* in command line.
>
> Are there any additional filter files that I need to add into Eclipse ?
>
> I couldn't find any of those in [1]. Better to add those here, if there
> are any
>
> [1] https://github.com/wso2/code-quality-tools
>
> Thanks,
> Sajith
>
> --
> Sajith Kariyawasam
> *Associate Tech Lead*
> *WSO2 Inc.; http://wso2.com *
> *Committer and PMC member, Apache Stratos *
> *AMIE (SL)*
> *Mobile: 0772269575*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge the PR for orbit/spark-core

2016-10-26 Thread Thusitha Thilina Dayaratne
PR Merged.

@Maheshika, Could you please release the bundle?

Thanks'
Thusitha

On Wed, Oct 26, 2016 at 11:52 AM, Susinda Perera <susi...@wso2.com> wrote:

> Hi Thusitha
>
> I have made the changes. Please have a look.
>
> Thanks
> Susinda
>
>
>
> On Wed, Oct 26, 2016 at 11:01 AM, Thusitha Thilina Dayaratne <
> thusit...@wso2.com> wrote:
>
>> Hi Susinda,
>>
>> I've added some comments to the PR. Could you look into them?
>>
>> Thanks
>> Thusitha
>>
>> On Wed, Oct 26, 2016 at 10:45 AM, Susinda Perera <susi...@wso2.com>
>> wrote:
>>
>>> Hi Kernel Team
>>>
>>> Can we merge the PR[1] in orbit. This is needed to fix the JIRA[2]
>>> [1] https://github.com/wso2/orbit/pull/247
>>> [2] https://wso2.org/jira/browse/IOTS-286
>>>
>>> Thanks
>>> Susinda
>>>
>>> --
>>> *Susinda Perera*
>>> Software Engineer
>>> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
>>> Mobile:(+94)716049075
>>> Blog: susinda.blogspot.com
>>> WSO2 Inc. http://wso2.com/
>>> Tel : 94 11 214 5345 Fax :94 11 2145300
>>>
>>>
>>
>>
>> --
>> Thusitha Dayaratne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> Mobile  +94712756809
>> Blog  alokayasoya.blogspot.com
>> Abouthttp://about.me/thusithathilina
>> <http://wso2.com/signature>
>>
>>
>
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
<http://wso2.com/signature>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Merge the PR for orbit/spark-core

2016-10-26 Thread Thusitha Thilina Dayaratne
Hi Susinda,

I've added some comments to the PR. Could you look into them?

Thanks
Thusitha

On Wed, Oct 26, 2016 at 10:45 AM, Susinda Perera  wrote:

> Hi Kernel Team
>
> Can we merge the PR[1] in orbit. This is needed to fix the JIRA[2]
> [1] https://github.com/wso2/orbit/pull/247
> [2] https://wso2.org/jira/browse/IOTS-286
>
> Thanks
> Susinda
>
> --
> *Susinda Perera*
> Software Engineer
> B.Sc.(Eng), M.Sc(Computer Science), AMIE(SL)
> Mobile:(+94)716049075
> Blog: susinda.blogspot.com
> WSO2 Inc. http://wso2.com/
> Tel : 94 11 214 5345 Fax :94 11 2145300
>
>


-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


  1   2   3   4   >