Re: [Dev] Requesting suggestions for micro integrator secure vault script name

2018-08-07 Thread Nirothipan Megalingham
+1 to *securevalut *as the name would be simple.

Thanks
Nirothipan

On Wed, Aug 8, 2018 at 8:37 AM, Sasikala Kottegoda 
wrote:

> +1 to *securevault* since it's already inside micro-integrator.
>
> Thank you,
> Sasikala
>
> On Tue, Aug 7, 2018 at 6:53 PM Godwin Shrimal  wrote:
>
>> +1 to *securevault*. Since word micro is redundant here and its coming
>> with the profile name itself.
>>
>> Thanks
>> Godwin
>>
>> On Tue, Aug 7, 2018 at 2:09 PM Lahiru Madushanka 
>> wrote:
>>
>>> +1 to *micro-*securevault*.sh*
>>>
>>> On Tue, Aug 7, 2018 at 5:19 PM Hasitha Hiranya 
>>> wrote:
>>>
 Hi Arshardh,

 I am +1 for the simple name "*securevault*"

 Thanks

 On Tue, Aug 7, 2018 at 10:36 AM Arshardh Ifthikar 
 wrote:

> Hi all,
> The Micro Integrator profile of the Enterprise Integrator, did not
> support secure vault [1]. One reason for this was, the absence of an user
> interface to add new entries to the secure vault.
>
> Since the micro integrator does not consist of a management console,
> users will be given the opportunity to add entries to the micro integrator
> secure vault via executing a script. Once the user enters the alias and 
> the
> password, the entry will be stored in the micro integrator registry as
> properties, and will be used subsequently for the vault-lookup function.
>
> [image: image.png]
>
> The above mentioned script located within the micro integrator bin
> folder, needs an appropriate name. This particular script is currently
> named, "*securevault*". Please mention any suggestions for a
> different name.
>
> [1] https://docs.wso2.com/display/EI630/Working+with+
> Passwords+in+the+ESB+profile
>
> Thanks,
> Arshardh
>
> --
> *Arshardh Ifthikar*
> Software Engineer | WSO2 Inc.
>
> Email: arsha...@wso2.com
> Mobile: +94719806525
> Web: http://wso2.com
>
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


 --
 *Hasitha Abeykoon*
 Associate Technical Lead; WSO2, Inc.; http://wso2.com
 *cell:* *+94 719363063*
 *blog: **abeykoon.blogspot.com* 

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

>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Sasikala Kottegoda
> *Senior Software Engineer*
> WSO2 Inc., http://wso2.com/
> lean. enterprise. middleware
> Mobile: +94 774835928
>
> [image: https://wso2.com/signature] 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,
M.Nirothipan
Software Engineer | WSO2 
Mobile: 0094772172692
Email: nirothi...@wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting suggestions for micro integrator secure vault script name

2018-08-07 Thread Sasikala Kottegoda
+1 to *securevault* since it's already inside micro-integrator.

Thank you,
Sasikala

On Tue, Aug 7, 2018 at 6:53 PM Godwin Shrimal  wrote:

> +1 to *securevault*. Since word micro is redundant here and its coming
> with the profile name itself.
>
> Thanks
> Godwin
>
> On Tue, Aug 7, 2018 at 2:09 PM Lahiru Madushanka 
> wrote:
>
>> +1 to *micro-*securevault*.sh*
>>
>> On Tue, Aug 7, 2018 at 5:19 PM Hasitha Hiranya  wrote:
>>
>>> Hi Arshardh,
>>>
>>> I am +1 for the simple name "*securevault*"
>>>
>>> Thanks
>>>
>>> On Tue, Aug 7, 2018 at 10:36 AM Arshardh Ifthikar 
>>> wrote:
>>>
 Hi all,
 The Micro Integrator profile of the Enterprise Integrator, did not
 support secure vault [1]. One reason for this was, the absence of an user
 interface to add new entries to the secure vault.

 Since the micro integrator does not consist of a management console,
 users will be given the opportunity to add entries to the micro integrator
 secure vault via executing a script. Once the user enters the alias and the
 password, the entry will be stored in the micro integrator registry as
 properties, and will be used subsequently for the vault-lookup function.

 [image: image.png]

 The above mentioned script located within the micro integrator bin
 folder, needs an appropriate name. This particular script is currently
 named, "*securevault*". Please mention any suggestions for a different
 name.

 [1]
 https://docs.wso2.com/display/EI630/Working+with+Passwords+in+the+ESB+profile

 Thanks,
 Arshardh

 --
 *Arshardh Ifthikar*
 Software Engineer | WSO2 Inc.

 Email: arsha...@wso2.com
 Mobile: +94719806525
 Web: http://wso2.com

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

>>>
>>>
>>> --
>>> *Hasitha Abeykoon*
>>> Associate Technical Lead; WSO2, Inc.; http://wso2.com
>>> *cell:* *+94 719363063*
>>> *blog: **abeykoon.blogspot.com* 
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
Sasikala Kottegoda
*Senior Software Engineer*
WSO2 Inc., http://wso2.com/
lean. enterprise. middleware
Mobile: +94 774835928

[image: https://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

2018-08-07 Thread Malintha Amarasinghe
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/
>> * *
>> *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 <071%20275%206809>
>>> Blog  alokayasoya.blogspot.com
>>> Abouthttp://about.me/thusithathilina
>>> 
>>>
>>>
>>
>>
>> --
>> *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*
>>
>
>
>
> --
> Thusitha Dayaratne
> Software 

Re: [Dev] Using Postgresql gives startup error in Kernel 4.4.33

2018-08-07 Thread Nandika Jayawardana
This pr was done as there was a hard corded db connection interceptor which
was roll-backing select queries on return which as having a major
performance impact. If you want the removed behavior by default you should
be able to add the property rollbackOnReturn on your datasource config.

Please refer to
 http://uk.titicaca.co.uk/docs/jdbc-pool.html

Nandika

On Tue, Aug 7, 2018 at 5:01 PM, Senthalan Kanagalingam 
wrote:

> Hi all,
>
> When I revert this PR[1]  and tried out, there were no startup errors.
> What is the fix of this done with this PR?
>
> [1] - https://github.com/wso2/carbon-kernel/pull/1805
>
>
> On Tue, Aug 7, 2018 at 11:26 AM Senthalan Kanagalingam 
> wrote:
>
>> Hi all,
>>
>> I have currently testing wso2 IS 5.7.0-alpha with different databases.
>> When starting with Postgresql give the error[1]. I have followed the
>> instruction from the administration guide [2]. When tried out with IS 5.6.0
>> with the same configuration it works perfectly. So I tried to build with
>> each milestone release and it started to fail in IS 5.7.0-m5, where we have
>> updated the kernel version to 4.4.33.
>>
>> To confirm, I have rebuilt the latest product-is with kernel version
>> 4.4.32. There were no startup errors. So we have to analyse the database
>> related changes between kernel 4.4.32 and 4.4.33.
>>
>> [1] - https://github.com/wso2/product-is/issues/3545
>> [2] - https://docs.wso2.com/display/ADMIN44x/Changing+to+PostgreSQL
>>
>> thanks,
>> Senthalan.
>> --
>>
>> *Senthalan Kanagalingam*
>> *Software Engineer - WSO2 Inc.*
>> *Mobile : +94 (0) 77 18 77 466*
>> 
>>
>
>
> --
>
> *Senthalan Kanagalingam*
> *Software Engineer - WSO2 Inc.*
> *Mobile : +94 (0) 77 18 77 466*
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nandika Jayawardana
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting suggestions for micro integrator secure vault script name

2018-08-07 Thread Godwin Shrimal
+1 to *securevault*. Since word micro is redundant here and its coming with
the profile name itself.

Thanks
Godwin

On Tue, Aug 7, 2018 at 2:09 PM Lahiru Madushanka 
wrote:

> +1 to *micro-*securevault*.sh*
>
> On Tue, Aug 7, 2018 at 5:19 PM Hasitha Hiranya  wrote:
>
>> Hi Arshardh,
>>
>> I am +1 for the simple name "*securevault*"
>>
>> Thanks
>>
>> On Tue, Aug 7, 2018 at 10:36 AM Arshardh Ifthikar 
>> wrote:
>>
>>> Hi all,
>>> The Micro Integrator profile of the Enterprise Integrator, did not
>>> support secure vault [1]. One reason for this was, the absence of an user
>>> interface to add new entries to the secure vault.
>>>
>>> Since the micro integrator does not consist of a management console,
>>> users will be given the opportunity to add entries to the micro integrator
>>> secure vault via executing a script. Once the user enters the alias and the
>>> password, the entry will be stored in the micro integrator registry as
>>> properties, and will be used subsequently for the vault-lookup function.
>>>
>>> [image: image.png]
>>>
>>> The above mentioned script located within the micro integrator bin
>>> folder, needs an appropriate name. This particular script is currently
>>> named, "*securevault*". Please mention any suggestions for a different
>>> name.
>>>
>>> [1]
>>> https://docs.wso2.com/display/EI630/Working+with+Passwords+in+the+ESB+profile
>>>
>>> Thanks,
>>> Arshardh
>>>
>>> --
>>> *Arshardh Ifthikar*
>>> Software Engineer | WSO2 Inc.
>>>
>>> Email: arsha...@wso2.com
>>> Mobile: +94719806525
>>> Web: http://wso2.com
>>>
>>> 
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *Hasitha Abeykoon*
>> Associate Technical Lead; WSO2, Inc.; http://wso2.com
>> *cell:* *+94 719363063*
>> *blog: **abeykoon.blogspot.com* 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Godwin Amila Shrimal*
Associate Technical Lead
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
*
twitter: https://twitter.com/godwinamila

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


Re: [Dev] Requesting suggestions for micro integrator secure vault script name

2018-08-07 Thread Lahiru Madushanka
+1 to *micro-*securevault*.sh*

On Tue, Aug 7, 2018 at 5:19 PM Hasitha Hiranya  wrote:

> Hi Arshardh,
>
> I am +1 for the simple name "*securevault*"
>
> Thanks
>
> On Tue, Aug 7, 2018 at 10:36 AM Arshardh Ifthikar 
> wrote:
>
>> Hi all,
>> The Micro Integrator profile of the Enterprise Integrator, did not
>> support secure vault [1]. One reason for this was, the absence of an user
>> interface to add new entries to the secure vault.
>>
>> Since the micro integrator does not consist of a management console,
>> users will be given the opportunity to add entries to the micro integrator
>> secure vault via executing a script. Once the user enters the alias and the
>> password, the entry will be stored in the micro integrator registry as
>> properties, and will be used subsequently for the vault-lookup function.
>>
>> [image: image.png]
>>
>> The above mentioned script located within the micro integrator bin
>> folder, needs an appropriate name. This particular script is currently
>> named, "*securevault*". Please mention any suggestions for a different
>> name.
>>
>> [1]
>> https://docs.wso2.com/display/EI630/Working+with+Passwords+in+the+ESB+profile
>>
>> Thanks,
>> Arshardh
>>
>> --
>> *Arshardh Ifthikar*
>> Software Engineer | WSO2 Inc.
>>
>> Email: arsha...@wso2.com
>> Mobile: +94719806525
>> Web: http://wso2.com
>>
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> *Hasitha Abeykoon*
> Associate Technical Lead; WSO2, Inc.; http://wso2.com
> *cell:* *+94 719363063*
> *blog: **abeykoon.blogspot.com* 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting suggestions for micro integrator secure vault script name

2018-08-07 Thread Hasitha Hiranya
Hi Arshardh,

I am +1 for the simple name "*securevault*"

Thanks

On Tue, Aug 7, 2018 at 10:36 AM Arshardh Ifthikar  wrote:

> Hi all,
> The Micro Integrator profile of the Enterprise Integrator, did not support
> secure vault [1]. One reason for this was, the absence of an user interface
> to add new entries to the secure vault.
>
> Since the micro integrator does not consist of a management console, users
> will be given the opportunity to add entries to the micro integrator secure
> vault via executing a script. Once the user enters the alias and the
> password, the entry will be stored in the micro integrator registry as
> properties, and will be used subsequently for the vault-lookup function.
>
> [image: image.png]
>
> The above mentioned script located within the micro integrator bin folder,
> needs an appropriate name. This particular script is currently named, "
> *securevault*". Please mention any suggestions for a different name.
>
> [1]
> https://docs.wso2.com/display/EI630/Working+with+Passwords+in+the+ESB+profile
>
> Thanks,
> Arshardh
>
> --
> *Arshardh Ifthikar*
> Software Engineer | WSO2 Inc.
>
> Email: arsha...@wso2.com
> Mobile: +94719806525
> Web: http://wso2.com
>
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


-- 
*Hasitha Abeykoon*
Associate Technical Lead; WSO2, Inc.; http://wso2.com
*cell:* *+94 719363063*
*blog: **abeykoon.blogspot.com* 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Requesting suggestions for micro integrator secure vault script name

2018-08-07 Thread Malaka Gangananda
Hi Arshardh,

What about *micro-*securevault*.sh *?

Thanks,

On Tue, Aug 7, 2018 at 10:35 AM, Arshardh Ifthikar 
wrote:

> Hi all,
> The Micro Integrator profile of the Enterprise Integrator, did not support
> secure vault [1]. One reason for this was, the absence of an user interface
> to add new entries to the secure vault.
>
> Since the micro integrator does not consist of a management console, users
> will be given the opportunity to add entries to the micro integrator secure
> vault via executing a script. Once the user enters the alias and the
> password, the entry will be stored in the micro integrator registry as
> properties, and will be used subsequently for the vault-lookup function.
>
> [image: image.png]
>
> The above mentioned script located within the micro integrator bin folder,
> needs an appropriate name. This particular script is currently named, "
> *securevault*". Please mention any suggestions for a different name.
>
> [1] https://docs.wso2.com/display/EI630/Working+with+
> Passwords+in+the+ESB+profile
>
> Thanks,
> Arshardh
>
> --
> *Arshardh Ifthikar*
> Software Engineer | WSO2 Inc.
>
> Email: arsha...@wso2.com
> Mobile: +94719806525
> Web: http://wso2.com
>
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Malaka.
-- 
Malaka Gangananda - Software Engineer | WSO2
Email : mala...@wso2.com
Mobile : +94713564340
Web : http://wso2.com
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using Postgresql gives startup error in Kernel 4.4.33

2018-08-07 Thread Senthalan Kanagalingam
Hi all,

When I revert this PR[1]  and tried out, there were no startup errors. What
is the fix of this done with this PR?

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


On Tue, Aug 7, 2018 at 11:26 AM Senthalan Kanagalingam 
wrote:

> Hi all,
>
> I have currently testing wso2 IS 5.7.0-alpha with different databases.
> When starting with Postgresql give the error[1]. I have followed the
> instruction from the administration guide [2]. When tried out with IS 5.6.0
> with the same configuration it works perfectly. So I tried to build with
> each milestone release and it started to fail in IS 5.7.0-m5, where we have
> updated the kernel version to 4.4.33.
>
> To confirm, I have rebuilt the latest product-is with kernel version
> 4.4.32. There were no startup errors. So we have to analyse the database
> related changes between kernel 4.4.32 and 4.4.33.
>
> [1] - https://github.com/wso2/product-is/issues/3545
> [2] - https://docs.wso2.com/display/ADMIN44x/Changing+to+PostgreSQL
>
> thanks,
> Senthalan.
> --
>
> *Senthalan Kanagalingam*
> *Software Engineer - WSO2 Inc.*
> *Mobile : +94 (0) 77 18 77 466*
> 
>


-- 

*Senthalan Kanagalingam*
*Software Engineer - WSO2 Inc.*
*Mobile : +94 (0) 77 18 77 466*

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


Re: [Dev] Is there a way to log product name to wso2carbon.log ?

2018-08-07 Thread gayan gunawardana
On Tue, Aug 7, 2018 at 4:18 PM, Rushmin Fernando  wrote:

> Hi Gayan,
>
> I think the best way is to do it from the logstash level if
> possible (filtering etc .. )
>
> If you really need the product name in each log line, you can simply
> modify the log appender in log4j.porperties.
>
> log4j.appender.CARBON_LOGFILE.File=${carbon.home}/
> repository/logs/${instance.log}/wso2carbon${instance.log}.log
> log4j.appender.CARBON_LOGFILE.Append=true
> log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.
> TenantAwarePatternLayout
> # ConversionPattern will be overridden by the configuration setting in the
> DB
> log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=*[WSO2-IS]* TID:
> [%T] [%S] [%d] %P%5p {%c} - %x %m %n
>
Thanks Rushmin.

>
>
>
>
> On Tue, Aug 7, 2018 at 6:44 PM gayan gunawardana 
> wrote:
>
>> Thanks All,
>>
>> I need something like below to print product name with each line of log
>> so that It would be easy to separate logs by product in logstash.
>>
>> TID: [-1] [ESB] [2018-07-12 15:38:22,463] DEBUG
>> {org.wso2.carbon.mediation.ntask.internal.NtaskService} -  Un-setting
>> the Realm Service. {org.wso2.carbon.mediation.
>> ntask.internal.NtaskService}
>>
>> On Mon, Aug 6, 2018 at 9:18 PM, Godwin Shrimal  wrote:
>>
>>>
>>>
>>> On Mon, Aug 6, 2018 at 4:42 PM Prakhash Sivakumar 
>>> wrote:
>>>

 On Mon, Aug 6, 2018 at 9:02 PM Godwin Shrimal  wrote:

>
>
> On Mon, Aug 6, 2018 at 2:22 PM Prakhash Sivakumar 
> wrote:
>
>>
>>
>> On Mon, Aug 6, 2018 at 2:19 PM Godwin Shrimal 
>> wrote:
>>
>>> I don't see any value in printing product name for every logline. We
>>> already printing product name once server started. Please see the 
>>> example
>>> below.
>>>
>>> [2018-08-06 09:48:08,391]  INFO {org.wso2.carbon.core.internal.
>>> StartupFinalizerServiceComponent} -  Server   :  WSO2
>>> Identity Server-5.1.0
>>>
>>
>> I think there might be situations like identifying log files when we
>> are doing the log file rotation, as those log files won't be having the
>> startup logs, it might be difficult to identify the files if we are not
>> properly handling it.
>>
>> In that case I think printing product names in the new log file when
>> starting the log file rotation would help.
>>
>
> I am not clear how printing productname in each line help for log
> rotation. Can you explain using an example ?
>
 What I was suggesting is printing the product name when creating a new
 file every time during the rotation. It will appear only once in the log
 file.(not in each line)

>>>
>>> Ok, I understand wht you are telling now, once log rotated, we cannot
>>> have any log entry identify product name.
>>>

 I think Gayan's requirement also should be something similar. @Gayan
 can you please elaborate if you have any other requirements

>>> Yes. Can you explain what you are trying to acheive here ?
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>>

 Thanks.

>
> Thanks
> Godwin
>
>
>
>>
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Mon, Aug 6, 2018 at 5:50 AM Rushmin Fernando 
>>> wrote:
>>>
 Hi Gayan,

 What's the requirement behind this? And are you expecting a one
 time log or the product name for every logline?

 On Mon, Aug 6, 2018 at 12:43 PM gayan gunawardana <
 gmgunaward...@gmail.com> wrote:

> Hi Devs,
>
> Appreciate your input regarding $subject.
>
> --
> Gayan
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


 --
 *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

>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> Prakhash Sivakumar
>> Senior Software Engineer | WSO2 Inc
>> Platform Security Team
>> Mobile : 

Re: [Dev] Is there a way to log product name to wso2carbon.log ?

2018-08-07 Thread Rushmin Fernando
Hi Gayan,

I think the best way is to do it from the logstash level if
possible (filtering etc .. )

If you really need the product name in each log line, you can simply modify
the log appender in log4j.porperties.

log4j.appender.CARBON_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon${instance.log}.log
log4j.appender.CARBON_LOGFILE.Append=true
log4j.appender.CARBON_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
# ConversionPattern will be overridden by the configuration setting in the
DB
log4j.appender.CARBON_LOGFILE.layout.ConversionPattern=*[WSO2-IS]* TID:
[%T] [%S] [%d] %P%5p {%c} - %x %m %n




On Tue, Aug 7, 2018 at 6:44 PM gayan gunawardana 
wrote:

> Thanks All,
>
> I need something like below to print product name with each line of log so
> that It would be easy to separate logs by product in logstash.
>
> TID: [-1] [ESB] [2018-07-12 15:38:22,463] DEBUG
> {org.wso2.carbon.mediation.ntask.internal.NtaskService} -  Un-setting the
> Realm Service. {org.wso2.carbon.mediation.ntask.internal.NtaskService}
>
> On Mon, Aug 6, 2018 at 9:18 PM, Godwin Shrimal  wrote:
>
>>
>>
>> On Mon, Aug 6, 2018 at 4:42 PM Prakhash Sivakumar 
>> wrote:
>>
>>>
>>> On Mon, Aug 6, 2018 at 9:02 PM Godwin Shrimal  wrote:
>>>


 On Mon, Aug 6, 2018 at 2:22 PM Prakhash Sivakumar 
 wrote:

>
>
> On Mon, Aug 6, 2018 at 2:19 PM Godwin Shrimal  wrote:
>
>> I don't see any value in printing product name for every logline. We
>> already printing product name once server started. Please see the example
>> below.
>>
>> [2018-08-06 09:48:08,391]  INFO
>> {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} -
>> Server   :  WSO2 Identity Server-5.1.0
>>
>
> I think there might be situations like identifying log files when we
> are doing the log file rotation, as those log files won't be having the
> startup logs, it might be difficult to identify the files if we are not
> properly handling it.
>
> In that case I think printing product names in the new log file when
> starting the log file rotation would help.
>

 I am not clear how printing productname in each line help for log
 rotation. Can you explain using an example ?

>>> What I was suggesting is printing the product name when creating a new
>>> file every time during the rotation. It will appear only once in the log
>>> file.(not in each line)
>>>
>>
>> Ok, I understand wht you are telling now, once log rotated, we cannot
>> have any log entry identify product name.
>>
>>>
>>> I think Gayan's requirement also should be something similar. @Gayan can
>>> you please elaborate if you have any other requirements
>>>
>> Yes. Can you explain what you are trying to acheive here ?
>>
>> Thanks
>> Godwin
>>
>>
>>
>>>
>>> Thanks.
>>>

 Thanks
 Godwin



>
>>
>> Thanks
>> Godwin
>>
>> On Mon, Aug 6, 2018 at 5:50 AM Rushmin Fernando 
>> wrote:
>>
>>> Hi Gayan,
>>>
>>> What's the requirement behind this? And are you expecting a one time
>>> log or the product name for every logline?
>>>
>>> On Mon, Aug 6, 2018 at 12:43 PM gayan gunawardana <
>>> gmgunaward...@gmail.com> wrote:
>>>
 Hi Devs,

 Appreciate your input regarding $subject.

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

>>>
>>>
>>> --
>>> *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
>>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Associate Technical Lead
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>> *
>> twitter: https://twitter.com/godwinamila
>> 
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Prakhash Sivakumar
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Mobile : +94771510080
> Blog : https://medium.com/@PrakhashS
>


 --
 *Godwin Amila Shrimal*
 Associate Technical Lead
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: 

Re: [Dev] Is there a way to log product name to wso2carbon.log ?

2018-08-07 Thread gayan gunawardana
Thanks All,

I need something like below to print product name with each line of log so
that It would be easy to separate logs by product in logstash.

TID: [-1] [ESB] [2018-07-12 15:38:22,463] DEBUG
{org.wso2.carbon.mediation.ntask.internal.NtaskService} -  Un-setting the
Realm Service. {org.wso2.carbon.mediation.ntask.internal.NtaskService}

On Mon, Aug 6, 2018 at 9:18 PM, Godwin Shrimal  wrote:

>
>
> On Mon, Aug 6, 2018 at 4:42 PM Prakhash Sivakumar 
> wrote:
>
>>
>> On Mon, Aug 6, 2018 at 9:02 PM Godwin Shrimal  wrote:
>>
>>>
>>>
>>> On Mon, Aug 6, 2018 at 2:22 PM Prakhash Sivakumar 
>>> wrote:
>>>


 On Mon, Aug 6, 2018 at 2:19 PM Godwin Shrimal  wrote:

> I don't see any value in printing product name for every logline. We
> already printing product name once server started. Please see the example
> below.
>
> [2018-08-06 09:48:08,391]  INFO {org.wso2.carbon.core.internal.
> StartupFinalizerServiceComponent} -  Server   :  WSO2
> Identity Server-5.1.0
>

 I think there might be situations like identifying log files when we
 are doing the log file rotation, as those log files won't be having the
 startup logs, it might be difficult to identify the files if we are not
 properly handling it.

 In that case I think printing product names in the new log file when
 starting the log file rotation would help.

>>>
>>> I am not clear how printing productname in each line help for log
>>> rotation. Can you explain using an example ?
>>>
>> What I was suggesting is printing the product name when creating a new
>> file every time during the rotation. It will appear only once in the log
>> file.(not in each line)
>>
>
> Ok, I understand wht you are telling now, once log rotated, we cannot have
> any log entry identify product name.
>
>>
>> I think Gayan's requirement also should be something similar. @Gayan can
>> you please elaborate if you have any other requirements
>>
> Yes. Can you explain what you are trying to acheive here ?
>
> Thanks
> Godwin
>
>
>
>>
>> Thanks.
>>
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>>

>
> Thanks
> Godwin
>
> On Mon, Aug 6, 2018 at 5:50 AM Rushmin Fernando 
> wrote:
>
>> Hi Gayan,
>>
>> What's the requirement behind this? And are you expecting a one time
>> log or the product name for every logline?
>>
>> On Mon, Aug 6, 2018 at 12:43 PM gayan gunawardana <
>> gmgunaward...@gmail.com> wrote:
>>
>>> Hi Devs,
>>>
>>> Appreciate your input regarding $subject.
>>>
>>> --
>>> Gayan
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>> --
>> *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
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>


 --
 Prakhash Sivakumar
 Senior Software Engineer | WSO2 Inc
 Platform Security Team
 Mobile : +94771510080
 Blog : https://medium.com/@PrakhashS

>>>
>>>
>>> --
>>> *Godwin Amila Shrimal*
>>> Associate Technical Lead
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: *+94772264165*
>>> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
>>> *
>>> twitter: https://twitter.com/godwinamila
>>> 
>>>
>>
>>
>> --
>> Prakhash Sivakumar
>> Senior Software Engineer | WSO2 Inc
>> Platform Security Team
>> Mobile : +94771510080
>> Blog : https://medium.com/@PrakhashS
>>
>
>
> --
> *Godwin Amila Shrimal*
> Associate Technical Lead
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94772264165*
> linkedin: *https://www.linkedin.com/in/godwin-amila-2ba26844/
> *
> twitter: https://twitter.com/godwinamila
> 
>



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


[Dev] Migrating from Material UI V0.x to 1.x

2018-08-07 Thread Thisaru Guruge
Hi all,

I was working on a react project where I had to use some components from
Material-UI 0.20.1 and another component from Material-UI 1.3.0

There were some clashes as some of the sub components used in those
components are not supported in the latest versions.
For an example, I had one component which used 'FlatButton' inside it, but
the 'FlatButton' is no longer exists in newer versions.

I found following doc where we can use Older (V0.x) material-ui components
inside newer (V1.x) components, which might help you.
https://material-ui.com/guides/migration-v0x/

Simply, you can import two versions and use them one within another as
mentioned below:

import { MuiThemeProvider, createMuiTheme } from
'@material-ui/core/styles'; // v1.x
import { MuiThemeProvider as V0MuiThemeProvider} from 'material-ui';

return (


{/*Components*/}

   
)

Hope someone finds this useful.

-- 
Thanks and Best Regards,
Thisaru Guruge
Software Engineer
Mobile: +94 71 720 9720


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