Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Gayan Gunarathne
I guess this happen due to the database connection mentioned in the dbs. It
requires to restart the server.

Thanks,
Gayan

On Thu, Jan 4, 2018 at 7:17 AM, Shazni Nazeer  wrote:

> I have noticed the same. This happens in the data services server 3.5.1
> too. Always requires a restart to take effect.
>
> Is this a bug?
>
> On Tue, Jan 2, 2018 at 1:15 AM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> We can change proxy services (Deployed using CAR) from UI and its getting
>> hot deploy after changes. But we can't observe same with Data Services. Any
>> reason for this ? Is it the expected behaviour ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *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
>> 
>>
>
>
>
> --
> Shazni Nazeer
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>
> Blogs :
>
> https://medium.com/@mshazninazeer
> http://shazninazeer.blogspot.com
>
> 
>
___
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 Vijitha Ekanayake
Hi Senduran,

AFAIK, There is no standard documentation on how to convert JSON to
x-www-form-urlencoded format as key-value pairs. As mentioned by Thusitha,
When the JSON is getting complicated converting it to the
x-www-form-urlencoded will also become complicated and may lead to
inconsistencies over different payloads. Therefore I too think, we should
use multipart/form-data in such situations.


Thanks.

On Thu, Jan 4, 2018 at 11:02 AM, Thusitha Thilina Dayaratne <
thusithathil...@gmail.com> wrote:

> 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 <
> sendu...@wso2.com> 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
>
>


-- 
Vijitha Ekanayake
Senior Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI-DSS] Check backend latency when use local transport

2018-01-03 Thread Godwin Shrimal
Thanks for the response Madhaawa. I guess this is something useful if we
can get this via analytics or JMX.

Thanks
Godwin

On Thu, Jan 4, 2018 at 12:58 PM, Madhawa Gunasekara 
wrote:

> Hi Godwin,
>
> We can use log4jdbc to check the backend latency of DB Calls. [1]
>
> What you have to do is
>
> 1) download the log4jdbc jar and paste into the lib folder.
> 2) modify the log4j.properties file with your preferences :
>
> log4j.logger.jdbc.sqltiming=INFO
>
> 3) change the integrator.sh file to pass the system properties, you have
> to specify the driver class in that property
> *-Dlog4jdbc.drivers=[,...] *
> 4) change the datasource configurations as mentioned in the documentation.
>
>- JDBC Driver from* com.mysql.jdbc.Driver *to
>*net.sf.log4jdbc.DriverSpy *
>- MySQL JDBC Connection string changed from
>*jdbc:mysql://localhost:3306/test* to
>*jdbc:log4jdbc:mysql://localhost:3306/test*
>
> [1] http://kveeresham.blogspot.com/2015/03/logging-jdbc-
> activities-using-log4jdbc.html
>
> Thanks,
> Madhawa
>
> On Wed, Dec 27, 2017 at 11:30 AM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> I have a proxy service which calls the DSS over local transport, I want
>> to check the backend latency of DB calls. Since this is local transport we
>> cannot use JMX (AFAIK Its anyway not giving endpoint wise stats). What is
>> the best way to get this?
>>
>> Thanks
>> Godwin
>>
>> --
>> *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
>> 
>>
>
>
>
> --
> *Madhawa Gunasekara*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 719411002 <+94+719411002>
> blog: *http://madhawa-gunasekara.blogspot.com
> *
> linkedin: *http://lk.linkedin.com/in/mgunasekara
> *
>



-- 
*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] [EI] Data services are not hot deploying

2018-01-03 Thread Godwin Shrimal
Yeah, I also felt the same, It's confusing to have one behaviour for Proxy
and another for DSS. There should be a consistency.

Thanks
Godwin

On Thu, Jan 4, 2018 at 12:22 PM, Gihan Anuruddha  wrote:

> Ideally, we should have a consistent behavior in EI for both proxies and
> data services. But since this is not a recommended way can leave it this
> way for now.
>
> On Thu, Jan 4, 2018 at 10:43 AM, Rajith Vitharana 
> wrote:
>
>> Hi Godwin,
>>
>> AFAIR deployment flows are different for ESB artifacts and DSS artifacts,
>> DSS artifacts are getting deployed via axis2 deployer(that is it will pick
>> up changes from file system and get deployed, so with car files, this won't
>> happen as the actual file does not get changed) whereas when we change ESB
>> artifacts, it will directly invoke the deployment flow. This was the
>> behavior we had and since it is not recommended to update artifacts within
>> a car file, we haven't done any changes to DSS behavior, hence the
>> difference.
>>
>> Thanks,
>>
>> On 4 January 2018 at 05:41, Godwin Shrimal  wrote:
>>
>>> Hi Pubudu,
>>>
>>> Yeah, I know it's not recommending, But when we are doing testing, think
>>> you want to add a small log to the proxy, you simply can add it via UI and
>>> test it.
>>>
>>> My Question is not about the recommendation, it's about why DSS behaving
>>> differently than the proxy services.
>>>
>>> Thanks
>>> Godwin
>>>
>>> On Thu, Jan 4, 2018 at 12:46 AM, Pubudu Gunatilaka 
>>> wrote:
>>>
 Hi Godwin,

 AFAIK, we should not change any artifact which is deployed using a CAR
 file. This is not recommended. I am not sure about the reasons for this
 behavior.

 Thank you!

 On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal 
 wrote:

> Hi Devs,
>
> We can change proxy services (Deployed using CAR) from UI and its
> getting hot deploy after changes. But we can't observe same with Data
> Services. Any reason for this ? Is it the expected behaviour ?
>
> Thanks
> Godwin
>
> --
> *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
> 
>



 --
 *Pubudu Gunatilaka*
 Committer and PMC Member - Apache Stratos
 Senior Software Engineer
 WSO2, Inc.: http://wso2.com
 mobile : +94774078049 <%2B94772207163>


>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Associate Technical Lead,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>> 
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> W.G. Gihan Anuruddha
> Associate Technical Lead | WSO2, Inc.
> M: +94772272595
>



-- 
*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] [IS] How to check whether an OAuth application is already revoked or not

2018-01-03 Thread Omindu Rathnaweera
Hi Maneesha,

You can use 'OAuthAdminService' to check the state of the oauth app.
There's 'getOauthApplicationState' operation which returns the application
state for a given consumer key.

Regards,
Omindu.

On Thu, Jan 4, 2018 at 11:37 AM, Maneesha Wijesekara 
wrote:

> Hi All,
>
> I'm configuring playground as a Service Provider while trying Solution 01
> in [1]. I've configured 'OAuth/OpenID Connect Configuration' under 'Inbound
> Authentication Configuration' with a proper value set. Once adding the
> oAuth app, there's an option to revoke all tokens issued for this
> application.
>
> I'm just curious on how to determine whether an oauth application is
> already revoked or not. The only way I found to check this is by clicking
> the 'revoke' button and it will give a popup of 'Application is already
> revoked.', if it's already revoked. But IMO, that's not a convenient way to
> check the application's status in terms of revoking. Is there any other way
> to accomplish this ?
>
> [1] https://medium.facilelogin.com/thirty-solution-patterns-
> with-the-wso2-identity-server-16f9fd0c0389
>
> Thanks and Regards
> Maneesha
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>



-- 
Omindu Rathnaweera
Senior Software Engineer, WSO2 Inc.
Mobile: +94 771 197 211
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Heshitha Hettihewa
Hi all,

This is fixed with the PR below[1].

[1]. https://github.com/wso2/carbon-mediation/pull/938

Thanks,
Heshitha.

On Wed, Jan 3, 2018 at 12:27 PM, Heshitha Hettihewa 
wrote:

> Hi,
>
> Thanks for the clarification. Since transacted sessions invalidates other
> ack modes and omitting the transport.jms.SessionTransacted parameter will
> omit ambiguous parameter definitions, +1 for using SESSION_TRANSACTED as
> Ack mode only. But since omitting it will cause backward compatibility
> issues shall we set isTransacted flag to true on ack mode as chanika
> suggested and generate a deprecated message for 
> transport.jms.SessionTransacted
> parameter. WDYT?.
>
> Thanks,
> Heshitha.
>



-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] How to check whether an OAuth application is already revoked or not

2018-01-03 Thread Maneesha Wijesekara
Hi All,

I'm configuring playground as a Service Provider while trying Solution 01
in [1]. I've configured 'OAuth/OpenID Connect Configuration' under 'Inbound
Authentication Configuration' with a proper value set. Once adding the
oAuth app, there's an option to revoke all tokens issued for this
application.

I'm just curious on how to determine whether an oauth application is
already revoked or not. The only way I found to check this is by clicking
the 'revoke' button and it will give a popup of 'Application is already
revoked.', if it's already revoked. But IMO, that's not a convenient way to
check the application's status in terms of revoking. Is there any other way
to accomplish this ?

[1] https://medium.facilelogin.com/thirty-solution-patterns-with-the-
wso2-identity-server-16f9fd0c0389

Thanks and Regards
Maneesha

-- 
Maneesha Wijesekara
Software Engineer - QA Team
WSO2 Inc.

Email: manee...@wso2.com
Linkedin: http://linkedin.com/in/maneeshawijesekara
Mobile: +94712443119
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI-DSS] Check backend latency when use local transport

2018-01-03 Thread Madhawa Gunasekara
Hi Godwin,

We can use log4jdbc to check the backend latency of DB Calls. [1]

What you have to do is

1) download the log4jdbc jar and paste into the lib folder.
2) modify the log4j.properties file with your preferences :

log4j.logger.jdbc.sqltiming=INFO

3) change the integrator.sh file to pass the system properties, you have to
specify the driver class in that property
*-Dlog4jdbc.drivers=[,...] *
4) change the datasource configurations as mentioned in the documentation.

   - JDBC Driver from* com.mysql.jdbc.Driver *to
   *net.sf.log4jdbc.DriverSpy *
   - MySQL JDBC Connection string changed from
   *jdbc:mysql://localhost:3306/test* to
   *jdbc:log4jdbc:mysql://localhost:3306/test*

[1]
http://kveeresham.blogspot.com/2015/03/logging-jdbc-activities-using-log4jdbc.html

Thanks,
Madhawa

On Wed, Dec 27, 2017 at 11:30 AM, Godwin Shrimal  wrote:

> Hi Devs,
>
> I have a proxy service which calls the DSS over local transport, I want to
> check the backend latency of DB calls. Since this is local transport we
> cannot use JMX (AFAIK Its anyway not giving endpoint wise stats). What is
> the best way to get this?
>
> Thanks
> Godwin
>
> --
> *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
> 
>



-- 
*Madhawa Gunasekara*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
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


[Dev] Branch feature-OIDC-enh-5.3.x in carbon-identity-framework is renamed as 5.11.x

2018-01-03 Thread Maduranga Siriwardena
Hi Devs,

We have done $subject. This branch contains the AuthenticationContext Class
Reference (ACR) based dynamic authentication flow implementation.

We will be using this branch for Identity Server 5.5.0 development work.

Thanks,

-- 
Maduranga Siriwardena
Senior Software Engineer
WSO2 Inc; http://wso2.com/

Email: madura...@wso2.com
Mobile: +94718990591
Blog: *https://madurangasiriwardena.wordpress.com/
*

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


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Gihan Anuruddha
Ideally, we should have a consistent behavior in EI for both proxies and
data services. But since this is not a recommended way can leave it this
way for now.

On Thu, Jan 4, 2018 at 10:43 AM, Rajith Vitharana  wrote:

> Hi Godwin,
>
> AFAIR deployment flows are different for ESB artifacts and DSS artifacts,
> DSS artifacts are getting deployed via axis2 deployer(that is it will pick
> up changes from file system and get deployed, so with car files, this won't
> happen as the actual file does not get changed) whereas when we change ESB
> artifacts, it will directly invoke the deployment flow. This was the
> behavior we had and since it is not recommended to update artifacts within
> a car file, we haven't done any changes to DSS behavior, hence the
> difference.
>
> Thanks,
>
> On 4 January 2018 at 05:41, Godwin Shrimal  wrote:
>
>> Hi Pubudu,
>>
>> Yeah, I know it's not recommending, But when we are doing testing, think
>> you want to add a small log to the proxy, you simply can add it via UI and
>> test it.
>>
>> My Question is not about the recommendation, it's about why DSS behaving
>> differently than the proxy services.
>>
>> Thanks
>> Godwin
>>
>> On Thu, Jan 4, 2018 at 12:46 AM, Pubudu Gunatilaka 
>> wrote:
>>
>>> Hi Godwin,
>>>
>>> AFAIK, we should not change any artifact which is deployed using a CAR
>>> file. This is not recommended. I am not sure about the reasons for this
>>> behavior.
>>>
>>> Thank you!
>>>
>>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>>>
 Hi Devs,

 We can change proxy services (Deployed using CAR) from UI and its
 getting hot deploy after changes. But we can't observe same with Data
 Services. Any reason for this ? Is it the expected behaviour ?

 Thanks
 Godwin

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

>>>
>>>
>>>
>>> --
>>> *Pubudu Gunatilaka*
>>> Committer and PMC Member - Apache Stratos
>>> Senior Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> mobile : +94774078049 <%2B94772207163>
>>>
>>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
> Rajith Vitharana
>
> Associate Technical Lead,
> WSO2 Inc. : wso2.com
> Mobile : +94715883223
> Blog : http://lankavitharana.blogspot.com/
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
W.G. Gihan Anuruddha
Associate Technical Lead | WSO2, Inc.
M: +94772272595
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-03 Thread Raveen Rathnayake
Hi all,

Sorry for sending the same mail again and again. This was happened due to a
failure in the public mailing lists. All the mails sent to public mailing
lists were blocked(even though directly ccd person got the mail). So I have
sent the same mail multiple times by the request of the infra team so that
they can test the situation. Now they have recovered the system so that all
the sent mails are delivered.

Sorry for the inconvenience caused.

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


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Rajith Vitharana
Hi Godwin,

AFAIR deployment flows are different for ESB artifacts and DSS artifacts,
DSS artifacts are getting deployed via axis2 deployer(that is it will pick
up changes from file system and get deployed, so with car files, this won't
happen as the actual file does not get changed) whereas when we change ESB
artifacts, it will directly invoke the deployment flow. This was the
behavior we had and since it is not recommended to update artifacts within
a car file, we haven't done any changes to DSS behavior, hence the
difference.

Thanks,

On 4 January 2018 at 05:41, Godwin Shrimal  wrote:

> Hi Pubudu,
>
> Yeah, I know it's not recommending, But when we are doing testing, think
> you want to add a small log to the proxy, you simply can add it via UI and
> test it.
>
> My Question is not about the recommendation, it's about why DSS behaving
> differently than the proxy services.
>
> Thanks
> Godwin
>
> On Thu, Jan 4, 2018 at 12:46 AM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Godwin,
>>
>> AFAIK, we should not change any artifact which is deployed using a CAR
>> file. This is not recommended. I am not sure about the reasons for this
>> behavior.
>>
>> Thank you!
>>
>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> We can change proxy services (Deployed using CAR) from UI and its
>>> getting hot deploy after changes. But we can't observe same with Data
>>> Services. Any reason for this ? Is it the expected behaviour ?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *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
>>> 
>>>
>>
>>
>>
>> --
>> *Pubudu Gunatilaka*
>> Committer and PMC Member - Apache Stratos
>> Senior Software Engineer
>> WSO2, Inc.: http://wso2.com
>> mobile : +94774078049 <%2B94772207163>
>>
>>
>
>
> --
> *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
>
>


-- 
Rajith Vitharana

Associate Technical Lead,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/

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


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Godwin Shrimal
Hi Vinod,

If you change anything in Proxy (deployed using CAR) it's getting hot
deploy. Yeah, changes get discard once server restart. Again my problem is
why proxy services changes reflect and not in DSS.


Thanks
Godwin

On Thu, Jan 4, 2018 at 11:57 AM, Vinod Kavinda  wrote:

> Hi Godwin,
> In proxy services also, changes do not get persisted. If you restart the
> server, the changes will be discarded.
>
> Regards,
> Vinod
>
> On Wed, Jan 3, 2018 at 12:58 PM, Godwin Shrimal  wrote:
>
>> Hi Nandika,
>>
>> Thanks for the response. I understand it's not recommending to change the
>> artifact from UI, my problem is if we change proxy service (deployed using
>> CAR) it's getting hot deploy. But it's not working with Data services. Is
>> this intentionally done or is this a bug?
>>
>> Thanks
>> Godwin
>>
>>
>> On Wed, Jan 3, 2018 at 12:35 PM, Nandika Jayawardana 
>> wrote:
>>
>>> HI Godwin,
>>>
>>> It is not recommended to make changes to artefacts deployed using a car
>>> file from the management console. And these changes are not persisted and
>>> server restart will result in the changes being discarded. Hence pls use
>>>  dev studio to make any changes necessary to artefacts contained within a
>>> CAR.
>>>
>>> Regards
>>> Nandika
>>>
>>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>>>
 Hi Devs,

 We can change proxy services (Deployed using CAR) from UI and its
 getting hot deploy after changes. But we can't observe same with Data
 Services. Any reason for this ? Is it the expected behaviour ?

 Thanks
 Godwin

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

>>>
>>>
>>>
>>> --
>>> Nandika Jayawardana
>>> WSO2 Inc ; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>> *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
>>
>>
>
>
> --
> Vinod Kavinda
> Senior Software Engineer
> *WSO2 Inc. - lean . enterprise . middleware .*
> Mobile : +94 (0) 712 415544
> Blog : http://soatechflicks.blogspot.com/
> [image: http://wso2.com/signature]
> 
>
>


-- 
*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] [EI] Data services are not hot deploying

2018-01-03 Thread Vinod Kavinda
Hi Godwin,
Proxy deployers and DSS deployers are different components. Maybe we are
not listening to the unpacked carbon apps folder by the DSS deployer. Yes,
this is useful for testing. Let's report a bug. We can fix if it is
technically feasible.

Regards,
Vinod

On Thu, Jan 4, 2018 at 10:33 AM, Godwin Shrimal  wrote:

> Hi Vinod,
>
> If you change anything in Proxy (deployed using CAR) it's getting hot
> deploy. Yeah, changes get discard once server restart. Again my problem is
> why proxy services changes reflect and not in DSS.
>
>
> Thanks
> Godwin
>
> On Thu, Jan 4, 2018 at 11:57 AM, Vinod Kavinda  wrote:
>
>> Hi Godwin,
>> In proxy services also, changes do not get persisted. If you restart the
>> server, the changes will be discarded.
>>
>> Regards,
>> Vinod
>>
>> On Wed, Jan 3, 2018 at 12:58 PM, Godwin Shrimal  wrote:
>>
>>> Hi Nandika,
>>>
>>> Thanks for the response. I understand it's not recommending to change
>>> the artifact from UI, my problem is if we change proxy service (deployed
>>> using CAR) it's getting hot deploy. But it's not working with Data
>>> services. Is this intentionally done or is this a bug?
>>>
>>> Thanks
>>> Godwin
>>>
>>>
>>> On Wed, Jan 3, 2018 at 12:35 PM, Nandika Jayawardana 
>>> wrote:
>>>
 HI Godwin,

 It is not recommended to make changes to artefacts deployed using a car
 file from the management console. And these changes are not persisted and
 server restart will result in the changes being discarded. Hence pls use
  dev studio to make any changes necessary to artefacts contained within a
 CAR.

 Regards
 Nandika

 On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal 
 wrote:

> Hi Devs,
>
> We can change proxy services (Deployed using CAR) from UI and its
> getting hot deploy after changes. But we can't observe same with Data
> Services. Any reason for this ? Is it the expected behaviour ?
>
> Thanks
> Godwin
>
> --
> *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
> 
>



 --
 Nandika Jayawardana
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware

>>>
>>>
>>>
>>> --
>>> *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
>>>
>>>
>>
>>
>> --
>> Vinod Kavinda
>> Senior Software Engineer
>> *WSO2 Inc. - lean . enterprise . middleware .*
>> Mobile : +94 (0) 712 415544
>> Blog : http://soatechflicks.blogspot.com/
>> [image: http://wso2.com/signature]
>> 
>>
>>
>
>
> --
> *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
> 
>



-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Vinod Kavinda
Hi Godwin,
In proxy services also, changes do not get persisted. If you restart the
server, the changes will be discarded.

Regards,
Vinod

On Wed, Jan 3, 2018 at 12:58 PM, Godwin Shrimal  wrote:

> Hi Nandika,
>
> Thanks for the response. I understand it's not recommending to change the
> artifact from UI, my problem is if we change proxy service (deployed using
> CAR) it's getting hot deploy. But it's not working with Data services. Is
> this intentionally done or is this a bug?
>
> Thanks
> Godwin
>
>
> On Wed, Jan 3, 2018 at 12:35 PM, Nandika Jayawardana 
> wrote:
>
>> HI Godwin,
>>
>> It is not recommended to make changes to artefacts deployed using a car
>> file from the management console. And these changes are not persisted and
>> server restart will result in the changes being discarded. Hence pls use
>>  dev studio to make any changes necessary to artefacts contained within a
>> CAR.
>>
>> Regards
>> Nandika
>>
>> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>>
>>> Hi Devs,
>>>
>>> We can change proxy services (Deployed using CAR) from UI and its
>>> getting hot deploy after changes. But we can't observe same with Data
>>> Services. Any reason for this ? Is it the expected behaviour ?
>>>
>>> Thanks
>>> Godwin
>>>
>>> --
>>> *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
>>> 
>>>
>>
>>
>>
>> --
>> Nandika Jayawardana
>> WSO2 Inc ; http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> *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
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

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


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Madhawa Gunasekara
Yes, It's a bug. Normally If we do a change in CApp, It will reflect the
service. but In this case, It's not working as expected.

Thanks,
Madhawa

On Thu, Jan 4, 2018 at 7:17 AM, Shazni Nazeer  wrote:

> I have noticed the same. This happens in the data services server 3.5.1
> too. Always requires a restart to take effect.
>
> Is this a bug?
>
> On Tue, Jan 2, 2018 at 1:15 AM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> We can change proxy services (Deployed using CAR) from UI and its getting
>> hot deploy after changes. But we can't observe same with Data Services. Any
>> reason for this ? Is it the expected behaviour ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *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
>> 
>>
>
>
>
> --
> Shazni Nazeer
>
> Mob : +94 37331
> LinkedIn : http://lk.linkedin.com/in/shazninazeer
>
> Blogs :
>
> https://medium.com/@mshazninazeer
> http://shazninazeer.blogspot.com
>
> 
>



-- 
*Madhawa Gunasekara*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 719411002 <+94+719411002>
blog: *http://madhawa-gunasekara.blogspot.com
*
linkedin: *http://lk.linkedin.com/in/mgunasekara
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Shazni Nazeer
I have noticed the same. This happens in the data services server 3.5.1
too. Always requires a restart to take effect.

Is this a bug?

On Tue, Jan 2, 2018 at 1:15 AM, Godwin Shrimal  wrote:

> Hi Devs,
>
> We can change proxy services (Deployed using CAR) from UI and its getting
> hot deploy after changes. But we can't observe same with Data Services. Any
> reason for this ? Is it the expected behaviour ?
>
> Thanks
> Godwin
>
> --
> *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
> 
>



-- 
Shazni Nazeer

Mob : +94 37331
LinkedIn : http://lk.linkedin.com/in/shazninazeer

Blogs :

https://medium.com/@mshazninazeer
http://shazninazeer.blogspot.com


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


Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-03 Thread Chandana Napagoda
Hi Raveen,

In Carbon 4.4.x code I could see that, 'sh' command[1] is used to determine
whether the operating system is Windows or not. So based on the code you
have pointed[2],it has changed to 'bash' and now the new 'bash' option is
not working on some of the Windows systems.  I could confirm that old
carbon 4.4.x related 'sh' command still works without any issue and I
haven't noticed anyone faced a similar issue(in Dev list or StackOverflow)
with any of the official WSO2 products up to now.

So I personally believe that, the code you have pointed[2] it is not
working as expected(on the expected use cases)[3] and need to be fixed it
properly.

[1]. https://github.com/wso2/carbon-kernel/blob/4.4.x/core/
org.wso2.carbon.server/src/main/java/org/wso2/carbon/server/Main.java#L170

[2]. https://github.com/wso2/carbon-kernel/blob/
f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/
java/org/wso2/carbon/launcher/Main.java#L209

[3]. *//Ignored. We might be invoking this on a Window platform. Therefore
if an error occurs*

Regards,
Chandana

On 3 January 2018 at 19:01, Raveen Rathnayake  wrote:

> Hi Chandana,
>
> I was able to reproduce your issue. This issue is caused due to an
> uncompleted bash installation in Windows 10.
> With windows 10 (10th year anniversary edition) users were given the
> option to install bash within windows. So once you have installed *Windows
> sub system for Linux(beta)* feature it actually doesn't completely
> install all of its features. This creates a '*bash.exe*' in system32
> folder and it will be installed when the "bash" command runs.
>
> In carbon-kernel [1] we try to write a PPID using a bash command. In
> windows environment we expect an exception when trying to execute this step
> since bash is not available in windows. But in this case bash is available
> in the windows environment and an exception is not generated. So the
> process continues and it try to read a line in [2] but it hangs there
> because once we execute the "*bash*" command it tries to install bash in
> windows(user input is required to install it)
>
> So, to resolve this issue we can install bash completely by running "
> *bash*"  command in command prompt or remove the *Windows sub system for
> Linux(beta) *feature.
>
> I hope this is the same reason for your issue as well. (you can check
> whether you have partially installed bash by typing "bash" in command
> prompt. This will ask you to install it properly.)
>
> Let us know if this helped you to resolve the issue.
>
> PS: Complete tutorial on installing bash in windows 10 is available in [3].
>
> [1] https://github.com/wso2/carbon-kernel/blob/
> f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/
> java/org/wso2/carbon/launcher/Main.java#L209
>
> [2] https://github.com/wso2/carbon-kernel/blob/
> f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/
> java/org/wso2/carbon/launcher/Main.java#L226
>
> [3] https://www.windowscentral.com/how-install-bash-shell-command-
> line-windows-10
>
> Thank you.
> Raveen.
>
> On Mon, Jan 1, 2018 at 3:10 AM, Chandana Napagoda 
> wrote:
>
>> Hi Isuru/Gimantha,
>>
>> For your reference, I have created a video[1] when starting WSO2 SP 4.0.0
>> R3. No character was selected while starting the server.
>>
>> [1]. https://youtu.be/sJpbM9V9rII
>>
>> Chandana
>>
>> On 22 December 2017 at 22:26, Gimantha Bandara  wrote:
>>
>>>
>>>
>>> On Fri, Dec 22, 2017 at 8:14 AM, Chandana Napagoda 
>>> wrote:
>>>
 -1, Unable to start  Stream Processor Studio in the windows
 machine[1][2]. It was hanging on the below step for more than 20 minutes.

>>> I confirmed what Isuru has mentioned.
>>> This is not a bug. If you select a character in command prompt (by*
>>> mark*ing), the current process holds and will not continue. Press
>>> *Enter,* then the process will continue.
>>>
>>> ​
>>>

 Also, it seems "Installing on Windows"[1] doc is outdated, I can't find
 any place to copy snappy-java jar file.


 ​

 [1]. https://docs.wso2.com/display/SP400/Installing+on+Windows
 [2]. https://docs.wso2.com/display/SP400/Running+the+Product

 Regards,
 Chandana

 On 22 December 2017 at 09:59, SajithAR Ariyarathna 
 wrote:

> Hi Devs,
>
> We are pleased to announce the release candidate of WSO2 Stream
> Processor 4.0.0.
>
> This is the Release Candidate version 2 of the WSO2 Stream Processor
> 4.0.0
>
> Please download, test the product and vote. Vote will be open for 72
> hours or as needed.
>
> Known issues: https://github.com/wso2/product-sp/issues
>
> Source and binary distribution files: https://github.com/wso2
> /product-sp/releases/tag/v4.0.0-RC2
>
> The tag to be voted upon: https://github.com/wso2/
> product-sp/tree/v4.0.0-RC2
>
> Please vote as follows.
> [+] 

Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Godwin Shrimal
Hi Pubudu,

Yeah, I know it's not recommending, But when we are doing testing, think
you want to add a small log to the proxy, you simply can add it via UI and
test it.

My Question is not about the recommendation, it's about why DSS behaving
differently than the proxy services.

Thanks
Godwin

On Thu, Jan 4, 2018 at 12:46 AM, Pubudu Gunatilaka  wrote:

> Hi Godwin,
>
> AFAIK, we should not change any artifact which is deployed using a CAR
> file. This is not recommended. I am not sure about the reasons for this
> behavior.
>
> Thank you!
>
> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> We can change proxy services (Deployed using CAR) from UI and its getting
>> hot deploy after changes. But we can't observe same with Data Services. Any
>> reason for this ? Is it the expected behaviour ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *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
>> 
>>
>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Senior Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>


-- 
*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] [EI] Data services are not hot deploying

2018-01-03 Thread Pubudu Gunatilaka
Hi Godwin,

AFAIK, we should not change any artifact which is deployed using a CAR
file. This is not recommended. I am not sure about the reasons for this
behavior.

Thank you!

On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:

> Hi Devs,
>
> We can change proxy services (Deployed using CAR) from UI and its getting
> hot deploy after changes. But we can't observe same with Data Services. Any
> reason for this ? Is it the expected behaviour ?
>
> Thanks
> Godwin
>
> --
> *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
> 
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] APIM Statistics introduce new field to the Analytics events

2018-01-03 Thread Hasitha Hiranya
Hi,

One scenario I faced with a customer is as follows.

1. A Custom HTTP header is coming with each request specifying the region
request was originated.
2. At gateway, this needs to be extracted as an field and published to
Analyser.
3. Analyser summarises the data and put to a DB (hourly/daily/monthly stats)
4. A dashboard can pull that data and show.

As per current implementation, we need to

1. Write a custom handler to extract values
2. Create a new stream to publish new field
3. Learn apache spark queries to perform summarisation
4. Learn Jaggery and create the dashboard

Are we discussing a customisable way to provide above functionality here?
If so, yes, it will be a great value addition.

Thanks

On Tue, Jan 2, 2018 at 9:26 AM, Fazlan Nazeem  wrote:

> +1 to add those extra information. This will strengthen our analytics
> story.
>
> @Rukshan,
>
> 1) Any specific reason to move those attributes from meta to value fields?
> 2) How are we planning to populate the data center ID? Environment
> variable?
>
> Please create a git issue if we haven't done it yet.
>
> On Mon, Dec 25, 2017 at 10:14 AM, Harsha Kumara  wrote:
>
>> Adding Fazlan. Shall we create a JIRA and prioritize this.
>>
>> On Mon, Dec 25, 2017 at 10:14 AM, Harsha Kumara  wrote:
>>
>>> +1 to include this. It's a basic requirement to differentiate the prod
>>> and sandbox traffic in the system. Also, correlation Id will help to track
>>> the request and response if needed.
>>>
>>> On Sat, Dec 23, 2017 at 12:25 PM, Rukshan Premathunga 
>>> wrote:
>>>
 Hi All,

 Can we check the possibility of the $Subject. In the latest
 APIM(wso2am-2.1.0-update4), correlation ID and the key type(sand or prod)
 is include in the event as JSON attribute[1]. I think it is better to moved
 those attributes as a single value attribute and passed to the Analyzer.
 So we can upgrade the stream versioning and do these changes.

 Also it is better to persist key type, data center ID in the STAT_DB
 and we can filter production and Sandbox analytics future. So when
 migrating we need to alter tables with key type. But we can assume that
 existing data are from the production key and insert those key type when
 migrating.

 So Any idea about this?


 [1]  meta_clientType:{"keyType":"PRODUCTION","correlationID",
 "19c4350a-2079-406a-bece-808954b4f2d7"}
 Thanks and Regards

 --
 Rukshan Chathuranga.
 Software Engineer.
 WSO2, Inc.
 +94711822074 <+94%2071%20182%202074>

 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture


>>>
>>>
>>> --
>>> Harsha Kumara
>>> Software Engineer, WSO2 Inc.
>>> Mobile: +94775505618 <+94%2077%20550%205618>
>>> Blog:harshcreationz.blogspot.com
>>>
>>
>>
>>
>> --
>> Harsha Kumara
>> Software Engineer, WSO2 Inc.
>> Mobile: +94775505618 <+94%2077%20550%205618>
>> Blog:harshcreationz.blogspot.com
>>
>
>
>
> --
> Thanks & Regards,
>
> *Fazlan Nazeem*
> Senior Software Engineer
> WSO2 Inc
> Mobile : +94772338839
> <%2B94%20%280%29%20773%20451194>
> fazl...@wso2.com
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
*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] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Hasitha Hiranya
Hi Asanka/Heshitha,

Yes. If we create a transacted session all ACK modes are invalidated.
Only commit() and rollback() is possible in a transacted session.
Hence one flag is enough to denote if it is transactional.

Thanks


On Wed, Jan 3, 2018 at 11:41 AM, Asanka Abeyweera  wrote:

> I think that pattern corresponds to how the 1st method (createSession(boolean
> transacted) type works. That is we ignore the acknowledge mode and use
> the transport.jms.SessionTransacted parameter for creating transacted
> sessions. Maybe to improve the user experience we can omit the
> transport.jms.SessionTransacted parameter and use the acknowledge mode
> for all modes including transacted sessions. WDYT?
>
> On Wed, Jan 3, 2018 at 11:17 AM, Chanika Geeganage 
> wrote:
>
>> According to the spec, if session transacted, the session should be
>> committed/ rollback. But in our code we set isTransacted flag to true only
>> if transport.jms.SessionTransacted is set, but not when the acknowledge
>> mode is set to SESSION_TRANSACTED, and therefore session commit/rollback
>> happens only when transport.jms.SessionTransacted is set [1]. Do we have
>> to change that logic to commit/rollback when the acknowledge mode is set to
>> SESSION_TRANSACTED also?
>>
>> [1] https://github.com/wso2/carbon-mediation/blob/master/compone
>> nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/
>> src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/
>> JMSPollingConsumer.java#L236
>>
>>
>>
>>
>> On Wed, Jan 3, 2018 at 11:00 AM, Asanka Abeyweera 
>> wrote:
>>
>>> Hi Heshitha,
>>>
>>> There are two methods we can use to create a transacted session in JMS,
>>>
>>>1. createSession(boolean transacted, int acknowledgeMode)- you can
>>>set the transacted parameter to true to create a transacted session.
>>>Acknowledge mode is ignored when the transacted parameter is set to true.
>>>2. createSession(int sessionMode) - you can use SESSION_TRANSACTED
>>>as acknowledge mode to create a transacted session. AFAIK this
>>>method is only vailable in JMS 2.
>>>
>>> You can use either of the methods depending on the JMS version used and
>>> the behaviuor should be similar.
>>>
>>> On Wed, Jan 3, 2018 at 10:06 AM, Heshitha Hettihewa 
>>> wrote:
>>>
 Hi,

 Inside JMS inbound endpoint code base there is a ack mode for
 SESSION_TRANSACTED [1] as well as transport.jms.SessionTransacted
 property[2]. In JMS specs(in 1.0, 1.1 and 2.0) SESSION_TRANSACTED ack mode
 is not defined. But this is used in Java JMS api [3]. Are these two methods
 used for the same purpose?. Or is there any difference?.

 [1]. https://github.com/wso2/carbon-mediation/blob/master/compone
 nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/m
 ain/java/org/wso2/carbon/inbound/endpoint/protocol/jms/facto
 ry/JMSConnectionFactory.java#L155
 [2]. https://github.com/wso2/carbon-mediation/blob/master/compone
 nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/m
 ain/java/org/wso2/carbon/inbound/endpoint/protocol/jms/facto
 ry/JMSConnectionFactory.java#L138
 [3]. https://docs.oracle.com/javaee/7/api/javax/jms/Session.html#
 SESSION_TRANSACTED

 Thanks,
 Heshitha.
 --
 Heshitha Hettihewa
 *Software Engineer*
 Mobile : +94716866386
 <%2B94%20%280%29%20773%20451194>
 heshit...@wso2.com

>>>
>>>
>>>
>>> --
>>> Asanka Abeyweera
>>> Associate Technical Lead
>>> WSO2 Inc.
>>>
>>> Phone: +94 712228648 <+94%2071%20222%208648>
>>> Blog: a5anka.github.io
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Best Regards..
>>
>> Chanika Geeganage
>> +94773522586 <+94%2077%20352%202586>
>> WSO2, Inc.; http://wso2.com
>>
>>
>
>
> --
> Asanka Abeyweera
> Associate Technical Lead
> WSO2 Inc.
>
> Phone: +94 712228648
> Blog: a5anka.github.io
>
> 
>



-- 
*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] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-03 Thread Raveen Rathnayake
Hi Chandana,

I was able to reproduce your issue. This issue is caused due to an
uncompleted bash installation in Windows 10.
With windows 10 (10th year anniversary edition) users were given the option
to install bash within windows. So once you have installed *Windows sub
system for Linux(beta)* feature it actually doesn't completely install all
of its features. This creates a '*bash.exe*' in system32 folder and it will
be installed when the "bash" command runs.

In carbon-kernel [1] we try to write a PPID using a bash command. In
windows environment we expect an exception when trying to execute this step
since bash is not available in windows. But in this case bash is available
in the windows environment and an exception is not generated. So the
process continues and it try to read a line in [2] but it hangs there
because once we execute the "*bash*" command it tries to install bash in
windows(user input is required to install it)

So, to resolve this issue we can install bash completely by running "*bash*"
command in command prompt or remove the *Windows sub system for
Linux(beta) *feature.

I hope this is the same reason for your issue as well. (you can check
whether you have partially installed bash by typing "bash" in command
prompt. This will ask you to install it properly.)

Let us know if this helped you to resolve the issue.

PS: Complete tutorial on installing bash in windows 10 is available in [3].

[1] https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c
6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/
wso2/carbon/launcher/Main.java#L209

[2] https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c
6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/
wso2/carbon/launcher/Main.java#L226

[3] https://www.windowscentral.com/how-install-bash-shell-
command-line-windows-10

Thank you.

Raveen Savinda Rathnayake,
Software Engineering Intern,
WSO2 Inc.

*lean. enterprise. middleware  *
Web: www.WSO2.com  Mobile : +94771144549  Blog :
https://blog.raveen.me





Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Godwin Shrimal
Hi Nandika,

Thanks for the response. I understand it's not recommending to change the
artifact from UI, my problem is if we change proxy service (deployed using
CAR) it's getting hot deploy. But it's not working with Data services. Is
this intentionally done or is this a bug?

Thanks
Godwin


On Wed, Jan 3, 2018 at 12:35 PM, Nandika Jayawardana 
wrote:

> HI Godwin,
>
> It is not recommended to make changes to artefacts deployed using a car
> file from the management console. And these changes are not persisted and
> server restart will result in the changes being discarded. Hence pls use
>  dev studio to make any changes necessary to artefacts contained within a
> CAR.
>
> Regards
> Nandika
>
> On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:
>
>> Hi Devs,
>>
>> We can change proxy services (Deployed using CAR) from UI and its getting
>> hot deploy after changes. But we can't observe same with Data Services. Any
>> reason for this ? Is it the expected behaviour ?
>>
>> Thanks
>> Godwin
>>
>> --
>> *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
>> 
>>
>
>
>
> --
> Nandika Jayawardana
> WSO2 Inc ; http://wso2.com
> lean.enterprise.middleware
>



-- 
*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] Outbound provisioning for roles which have permission

2018-01-03 Thread Godwin Shrimal
Hi Nila,

AFAIR it uses SCIM to do outbound provining. SCIM protocol doesn't have a
standard way to provision permissions. I think thats the reason for this.


Thanks
Godwin

On Tue, Jan 2, 2018 at 7:34 PM, Nilasini Thirunavukkarasu  wrote:

> Hi,
>
> In outbound provisioning with two IS, when creating a role(Eg:- role1)
> from one IS, the same role will get created in second IS as well. In that
> scenario, if role1 has permissions then what is the expected behavior?.
>
> According to the current implementation even though role1 has permission
> the provisioned role in second IS doesn't have any permission. Is there any
> specific reason for this behavior?. Can't we provision the permissions
> along with the role?
>
>
>
> Thanks,
> Nila.
>
> --
> Nilasini Thirunavukkarasu
> Software Engineer - WSO2
>
> Email : nilas...@wso2.com
> Mobile : +94775241823
> Web : http://wso2.com/
>
>
> 
>



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


[Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Heshitha Hettihewa
Hi,

Inside JMS inbound endpoint code base there is a ack mode for
SESSION_TRANSACTED [1] as well as transport.jms.SessionTransacted
property[2]. In JMS specs(in 1.0, 1.1 and 2.0) SESSION_TRANSACTED ack mode
is not defined. But this is used in Java JMS api [3]. Are these two methods
used for the same purpose?. Or is there any difference?.

[1].
https://github.com/wso2/carbon-mediation/blob/master/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/factory/JMSConnectionFactory.java#L155
[2].
https://github.com/wso2/carbon-mediation/blob/master/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/factory/JMSConnectionFactory.java#L138
[3].
https://docs.oracle.com/javaee/7/api/javax/jms/Session.html#SESSION_TRANSACTED

Thanks,
Heshitha.
-- 
Heshitha Hettihewa
*Software Engineer*
Mobile : +94716866386
<%2B94%20%280%29%20773%20451194>
heshit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Heshitha Hettihewa
Hi,

Thanks for the clarification. Since transacted sessions invalidates other
ack modes and omitting the transport.jms.SessionTransacted parameter will
omit ambiguous parameter definitions, +1 for using SESSION_TRANSACTED as
Ack mode only. But since omitting it will cause backward compatibility
issues shall we set isTransacted flag to true on ack mode as chanika
suggested and generate a deprecated message for
transport.jms.SessionTransacted parameter. WDYT?.

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


Re: [Dev] [EI] Data services are not hot deploying

2018-01-03 Thread Nandika Jayawardana
HI Godwin,

It is not recommended to make changes to artefacts deployed using a car
file from the management console. And these changes are not persisted and
server restart will result in the changes being discarded. Hence pls use
 dev studio to make any changes necessary to artefacts contained within a
CAR.

Regards
Nandika

On Tue, Jan 2, 2018 at 12:45 PM, Godwin Shrimal  wrote:

> Hi Devs,
>
> We can change proxy services (Deployed using CAR) from UI and its getting
> hot deploy after changes. But we can't observe same with Data Services. Any
> reason for this ? Is it the expected behaviour ?
>
> Thanks
> Godwin
>
> --
> *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
> 
>



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


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

2018-01-03 Thread Senduran Balasubramaniyam
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
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-03 Thread Raveen Rathnayake
Hi Chandana,

I was able to reproduce your issue. This issue is caused due to an
uncompleted bash installation in Windows 10.
With windows 10 (10th year anniversary edition) users were given the option
to install bash within windows. So once you have installed *Windows sub
system for Linux(beta)* feature it actually doesn't completely install all
of its features. This creates a '*bash.exe*' in system32 folder and it will
be installed when the "bash" command runs.

In carbon-kernel [1] we try to write a PPID using a bash command. In
windows environment we expect an exception when trying to execute this step
since bash is not available in windows. But in this case bash is available
in the windows environment and an exception is not generated. So the
process continues and it try to read a line in [2] but it hangs there
because once we execute the "*bash*" command it tries to install bash in
windows(user input is required to install it)

So, to resolve this issue we can install bash completely by running "*bash*"
command in command prompt or remove the *Windows sub system for Linux(beta)
*feature.

I hope this is the same reason for your issue as well. (you can check
whether you have partially installed bash by typing "bash" in command
prompt. This will ask you to install it properly.)

Let us know if this helped you to resolve the issue.

PS: Complete tutorial on installing bash in windows 10 is available in [3].

[1]
https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/wso2/carbon/launcher/Main.java#L209

[2]
https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/wso2/carbon/launcher/Main.java#L226

[3]
https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10

Thank you.
Raveen.

On Mon, Jan 1, 2018 at 3:10 AM, Chandana Napagoda 
wrote:

> Hi Isuru/Gimantha,
>
> For your reference, I have created a video[1] when starting WSO2 SP 4.0.0
> R3. No character was selected while starting the server.
>
> [1]. https://youtu.be/sJpbM9V9rII
>
> Chandana
>
> On 22 December 2017 at 22:26, Gimantha Bandara  wrote:
>
>>
>>
>> On Fri, Dec 22, 2017 at 8:14 AM, Chandana Napagoda 
>> wrote:
>>
>>> -1, Unable to start  Stream Processor Studio in the windows
>>> machine[1][2]. It was hanging on the below step for more than 20 minutes.
>>>
>> I confirmed what Isuru has mentioned.
>> This is not a bug. If you select a character in command prompt (by* 
>> mark*ing),
>> the current process holds and will not continue. Press *Enter,* then the
>> process will continue.
>>
>> ​
>>
>>>
>>> Also, it seems "Installing on Windows"[1] doc is outdated, I can't find
>>> any place to copy snappy-java jar file.
>>>
>>>
>>> ​
>>>
>>> [1]. https://docs.wso2.com/display/SP400/Installing+on+Windows
>>> [2]. https://docs.wso2.com/display/SP400/Running+the+Product
>>>
>>> Regards,
>>> Chandana
>>>
>>> On 22 December 2017 at 09:59, SajithAR Ariyarathna 
>>> wrote:
>>>
 Hi Devs,

 We are pleased to announce the release candidate of WSO2 Stream
 Processor 4.0.0.

 This is the Release Candidate version 2 of the WSO2 Stream Processor
 4.0.0

 Please download, test the product and vote. Vote will be open for 72
 hours or as needed.

 Known issues: https://github.com/wso2/product-sp/issues

 Source and binary distribution files: https://github.com/wso2
 /product-sp/releases/tag/v4.0.0-RC2

 The tag to be voted upon: https://github.com/wso2/
 product-sp/tree/v4.0.0-RC2

 Please vote as follows.
 [+] Stable - go ahead and release
 [-] Broken - do not release (explain why)

 ~ The WSO2 Analytics Team ~
 Thanks.

 --
 Sajith Janaprasad Ariyarathna
 Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
 

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


>>>
>>>
>>> --
>>>
>>> Blog: http://blog.napagoda.com
>>> Linkedin: https://www.linkedin.com/in/chandananapagoda/
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Gimantha Bandara
>> Software Engineer
>> WSO2. Inc : http://wso2.com
>> Mobile : +94714961919 <+94%2071%20496%201919>
>>
>
>
>
> --
>
> Blog: http://blog.napagoda.com
> Linkedin: https://www.linkedin.com/in/chandananapagoda/
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Raveen Savinda Rathnayake,
Software Engineering Intern,
WSO2 Inc.

*lean. enterprise. middleware  *
Web: www.WSO2.com Mobile : +94771144549  Blog : https://blog.raveen.me


Re: [Dev] WSO2 Oxygen Tank > WSO2 Development> ESB > Message Processor > max.delivery.attempts bug

2018-01-03 Thread Himasha Guruge
Hi Marcos,

Thanks for reporting this. I have created an issue at [1] for tracking and
it will be fixed in a future release.

[1] https://github.com/wso2/product-ei/issues/1609

Thanks,
Himasha

On Thu, Dec 21, 2017 at 4:42 PM, Marcos Tarín Esteve <
mta...@alfatecsistemas.es> wrote:

> Hello
>
>
>
> When I change the value of max.delivery.attempts parameter in the message
> processor and save changes. It always return to its default value of 4.
>
>
>
> Ubuntu 16.04 – mysql  5 – wso2 6.1.1 configuration
>
>
>
> Thanks
>
>
>
> Marcos
>
> *Marcos *
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Himasha Guruge
Senior Software Engineer
WS*O2* *Inc.*
Mobile: +94 777459299
himas...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-03 Thread Raveen Rathnayake
Hi Chandana,

I was able to reproduce your issue. This issue is caused due to an
uncompleted bash installation in Windows 10.
With windows 10 (10th year anniversary edition) users were given the option
to install bash within windows. So once you have installed *Windows sub
system for Linux(beta)* feature it actually doesn't completely install all
of its features. This creates a '*bash.exe*' in system32 folder and it will
be installed when the "bash" command runs.

In carbon-kernel [1] we try to write a PPID using a bash command. In
windows environment we expect an exception when trying to execute this step
since bash is not available in windows. But in this case bash is available
in the windows environment and an exception is not generated. So the
process continues and it try to read a line in [2] but it hangs there
because once we execute the "*bash*" command it tries to install bash in
windows(user input is required to install it)

So, to resolve this issue we can install bash completely by running "*bash*"
command in command prompt or remove the *Windows sub system for
Linux(beta) *feature.

I hope this is the same reason for your issue as well. (you can check
whether you have partially installed bash by typing "bash" in command
prompt. This will ask you to install it properly.)

Let us know if this helped you to resolve the issue.

PS: Complete tutorial on installing bash in windows 10 is available in [3].

[1] https://github.com/wso2/carbon-kernel/blob/
f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/
java/org/wso2/carbon/launcher/Main.java#L209

[2] https://github.com/wso2/carbon-kernel/blob/
f1f013f0d513c6234881fa6e8a2496419d6aece7/launcher/src/main/
java/org/wso2/carbon/launcher/Main.java#L226

[3] https://www.windowscentral.com/how-install-bash-shell-command-
line-windows-10

Thank you.
Raveen.

On Mon, Jan 1, 2018 at 3:10 AM, Chandana Napagoda 
> wrote:
>
>> Hi Isuru/Gimantha,
>>
>> For your reference, I have created a video[1] when starting WSO2 SP 4.0.0
>> R3. No character was selected while starting the server.
>>
>> [1]. https://youtu.be/sJpbM9V9rII
>>
>> Chandana
>>
>> On 22 December 2017 at 22:26, Gimantha Bandara  wrote:
>>
>>>
>>>
>>> On Fri, Dec 22, 2017 at 8:14 AM, Chandana Napagoda 
>>> wrote:
>>>
 -1, Unable to start  Stream Processor Studio in the windows
 machine[1][2]. It was hanging on the below step for more than 20 minutes.

>>> I confirmed what Isuru has mentioned.
>>> This is not a bug. If you select a character in command prompt (by*
>>> mark*ing), the current process holds and will not continue. Press
>>> *Enter,* then the process will continue.
>>>
>>> ​
>>>

 Also, it seems "Installing on Windows"[1] doc is outdated, I can't find
 any place to copy snappy-java jar file.


 ​

 [1]. https://docs.wso2.com/display/SP400/Installing+on+Windows
 [2]. https://docs.wso2.com/display/SP400/Running+the+Product

 Regards,
 Chandana

 On 22 December 2017 at 09:59, SajithAR Ariyarathna 
 wrote:

> Hi Devs,
>
> We are pleased to announce the release candidate of WSO2 Stream
> Processor 4.0.0.
>
> This is the Release Candidate version 2 of the WSO2 Stream Processor
> 4.0.0
>
> Please download, test the product and vote. Vote will be open for 72
> hours or as needed.
>
> Known issues: https://github.com/wso2/product-sp/issues
>
> Source and binary distribution files: https://github.com/wso2
> /product-sp/releases/tag/v4.0.0-RC2
>
> The tag to be voted upon: https://github.com/wso2/
> product-sp/tree/v4.0.0-RC2
>
> Please vote as follows.
> [+] Stable - go ahead and release
> [-] Broken - do not release (explain why)
>
> ~ The WSO2 Analytics Team ~
> Thanks.
>
> --
> Sajith Janaprasad Ariyarathna
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> 
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


 --

 Blog: http://blog.napagoda.com
 Linkedin: https://www.linkedin.com/in/chandananapagoda/


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


>>>
>>>
>>> --
>>> Gimantha Bandara
>>> Software Engineer
>>> WSO2. Inc : http://wso2.com
>>> Mobile : +94714961919 <+94%2071%20496%201919>
>>>
>>
>>
>>
>> --
>>
>> Blog: http://blog.napagoda.com
>> Linkedin: https://www.linkedin.com/in/chandananapagoda/
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
-- 
Raveen Savinda Rathnayake,
Software Engineering Intern,
WSO2 Inc.

*lean. 

Re: [Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Chanika Geeganage
According to the spec, if session transacted, the session should be
committed/ rollback. But in our code we set isTransacted flag to true only
if transport.jms.SessionTransacted is set, but not when the acknowledge
mode is set to SESSION_TRANSACTED, and therefore session commit/rollback
happens only when transport.jms.SessionTransacted is set [1]. Do we have to
change that logic to commit/rollback when the acknowledge mode is set to
SESSION_TRANSACTED also?

[1]
https://github.com/wso2/carbon-mediation/blob/master/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/JMSPollingConsumer.java#L236




On Wed, Jan 3, 2018 at 11:00 AM, Asanka Abeyweera  wrote:

> Hi Heshitha,
>
> There are two methods we can use to create a transacted session in JMS,
>
>1. createSession(boolean transacted, int acknowledgeMode)- you can set
>the transacted parameter to true to create a transacted session.
>Acknowledge mode is ignored when the transacted parameter is set to true.
>2. createSession(int sessionMode) - you can use SESSION_TRANSACTED as
>acknowledge mode to create a transacted session. AFAIK this method is
>only vailable in JMS 2.
>
> You can use either of the methods depending on the JMS version used and
> the behaviuor should be similar.
>
> On Wed, Jan 3, 2018 at 10:06 AM, Heshitha Hettihewa 
> wrote:
>
>> Hi,
>>
>> Inside JMS inbound endpoint code base there is a ack mode for
>> SESSION_TRANSACTED [1] as well as transport.jms.SessionTransacted
>> property[2]. In JMS specs(in 1.0, 1.1 and 2.0) SESSION_TRANSACTED ack mode
>> is not defined. But this is used in Java JMS api [3]. Are these two methods
>> used for the same purpose?. Or is there any difference?.
>>
>> [1]. https://github.com/wso2/carbon-mediation/blob/master/compone
>> nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/
>> src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/
>> factory/JMSConnectionFactory.java#L155
>> [2]. https://github.com/wso2/carbon-mediation/blob/master/compone
>> nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/
>> src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/
>> factory/JMSConnectionFactory.java#L138
>> [3]. https://docs.oracle.com/javaee/7/api/javax/jms/Session.html#
>> SESSION_TRANSACTED
>>
>> Thanks,
>> Heshitha.
>> --
>> Heshitha Hettihewa
>> *Software Engineer*
>> Mobile : +94716866386
>> <%2B94%20%280%29%20773%20451194>
>> heshit...@wso2.com
>>
>
>
>
> --
> Asanka Abeyweera
> Associate Technical Lead
> WSO2 Inc.
>
> Phone: +94 712228648 <+94%2071%20222%208648>
> Blog: a5anka.github.io
>
> 
>



-- 
Best Regards..

Chanika Geeganage
+94773522586
WSO2, Inc.; http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [VOTE] Release WSO2 Stream Processor 4.0.0 RC2

2018-01-03 Thread Raveen Rathnayake
+dev  +architecture

Hi Chandana,

I was able to reproduce your issue. This issue is caused due to an
uncompleted bash installation in Windows 10.
With windows 10 (10th year anniversary edition) users were given the option
to install bash within windows. So once you have installed *Windows sub
system for Linux(beta)* feature it actually doesn't completely install all
of its features. This creates a '*bash.exe*' in system32 folder and it will
be installed when the "bash" command runs.

In carbon-kernel [1] we try to write a PPID using a bash command. In
windows environment we expect an exception when trying to execute this step
since bash is not available in windows. But in this case bash is available
in the windows environment and an exception is not generated. So the
process continues and it try to read a line in [2] but it hangs there
because once we execute the "*bash*" command it tries to install bash in
windows(user input is required to install it)

So, to resolve this issue we can install bash completely by running "*bash*"
command in command prompt or remove the *Windows sub system for
Linux(beta) *feature.

I hope this is the same reason for your issue as well. (you can check
whether you have partially installed bash by typing "bash" in command
prompt. This will ask you to install it properly.)

Let us know if this helped you to resolve the issue.

PS: Complete tutorial on installing bash in windows 10 is available in [3].

[1] https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c
6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/wso2/
carbon/launcher/Main.java#L209

[2] https://github.com/wso2/carbon-kernel/blob/f1f013f0d513c
6234881fa6e8a2496419d6aece7/launcher/src/main/java/org/wso2/
carbon/launcher/Main.java#L226

[3] https://www.windowscentral.com/how-install-bash-shell-co
mmand-line-windows-10

Thank you.
Raveen.
Raveen Savinda Rathnayake,
Software Engineering Intern,
WSO2 Inc.

*lean. enterprise. middleware  *
Web: www.WSO2.com  Mobile : +94771144549  Blog :
https://blog.raveen.me






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


Re: [Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Asanka Abeyweera
Hi Heshitha,

There are two methods we can use to create a transacted session in JMS,

   1. createSession(boolean transacted, int acknowledgeMode)- you can set
   the transacted parameter to true to create a transacted session.
   Acknowledge mode is ignored when the transacted parameter is set to true.
   2. createSession(int sessionMode) - you can use SESSION_TRANSACTED as
   acknowledge mode to create a transacted session. AFAIK this method is
   only vailable in JMS 2.

You can use either of the methods depending on the JMS version used and the
behaviuor should be similar.

On Wed, Jan 3, 2018 at 10:06 AM, Heshitha Hettihewa 
wrote:

> Hi,
>
> Inside JMS inbound endpoint code base there is a ack mode for
> SESSION_TRANSACTED [1] as well as transport.jms.SessionTransacted
> property[2]. In JMS specs(in 1.0, 1.1 and 2.0) SESSION_TRANSACTED ack mode
> is not defined. But this is used in Java JMS api [3]. Are these two methods
> used for the same purpose?. Or is there any difference?.
>
> [1]. https://github.com/wso2/carbon-mediation/blob/master/
> components/inbound-endpoints/org.wso2.carbon.inbound.
> endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/
> protocol/jms/factory/JMSConnectionFactory.java#L155
> [2]. https://github.com/wso2/carbon-mediation/blob/master/
> components/inbound-endpoints/org.wso2.carbon.inbound.
> endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/
> protocol/jms/factory/JMSConnectionFactory.java#L138
> [3]. https://docs.oracle.com/javaee/7/api/javax/jms/Session.html#SESSION_
> TRANSACTED
>
> Thanks,
> Heshitha.
> --
> Heshitha Hettihewa
> *Software Engineer*
> Mobile : +94716866386
> <%2B94%20%280%29%20773%20451194>
> heshit...@wso2.com
>



-- 
Asanka Abeyweera
Associate Technical Lead
WSO2 Inc.

Phone: +94 712228648
Blog: a5anka.github.io


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


Re: [Dev] Difference between SESSION_TRANSACTED Ack Mode and transport.jms.SessionTransacted property

2018-01-03 Thread Asanka Abeyweera
I think that pattern corresponds to how the 1st method (createSession(boolean
transacted) type works. That is we ignore the acknowledge mode and use the
transport.jms.SessionTransacted parameter for creating transacted sessions.
Maybe to improve the user experience we can omit the
transport.jms.SessionTransacted
parameter and use the acknowledge mode for all modes including transacted
sessions. WDYT?

On Wed, Jan 3, 2018 at 11:17 AM, Chanika Geeganage  wrote:

> According to the spec, if session transacted, the session should be
> committed/ rollback. But in our code we set isTransacted flag to true only
> if transport.jms.SessionTransacted is set, but not when the acknowledge
> mode is set to SESSION_TRANSACTED, and therefore session commit/rollback
> happens only when transport.jms.SessionTransacted is set [1]. Do we have
> to change that logic to commit/rollback when the acknowledge mode is set to
> SESSION_TRANSACTED also?
>
> [1] https://github.com/wso2/carbon-mediation/blob/master/
> components/inbound-endpoints/org.wso2.carbon.inbound.
> endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/
> JMSPollingConsumer.java#L236
>
>
>
>
> On Wed, Jan 3, 2018 at 11:00 AM, Asanka Abeyweera 
> wrote:
>
>> Hi Heshitha,
>>
>> There are two methods we can use to create a transacted session in JMS,
>>
>>1. createSession(boolean transacted, int acknowledgeMode)- you can
>>set the transacted parameter to true to create a transacted session.
>>Acknowledge mode is ignored when the transacted parameter is set to true.
>>2. createSession(int sessionMode) - you can use SESSION_TRANSACTED as
>>acknowledge mode to create a transacted session. AFAIK this method is
>>only vailable in JMS 2.
>>
>> You can use either of the methods depending on the JMS version used and
>> the behaviuor should be similar.
>>
>> On Wed, Jan 3, 2018 at 10:06 AM, Heshitha Hettihewa 
>> wrote:
>>
>>> Hi,
>>>
>>> Inside JMS inbound endpoint code base there is a ack mode for
>>> SESSION_TRANSACTED [1] as well as transport.jms.SessionTransacted
>>> property[2]. In JMS specs(in 1.0, 1.1 and 2.0) SESSION_TRANSACTED ack mode
>>> is not defined. But this is used in Java JMS api [3]. Are these two methods
>>> used for the same purpose?. Or is there any difference?.
>>>
>>> [1]. https://github.com/wso2/carbon-mediation/blob/master/compone
>>> nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/
>>> main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/fact
>>> ory/JMSConnectionFactory.java#L155
>>> [2]. https://github.com/wso2/carbon-mediation/blob/master/compone
>>> nts/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/
>>> main/java/org/wso2/carbon/inbound/endpoint/protocol/jms/fact
>>> ory/JMSConnectionFactory.java#L138
>>> [3]. https://docs.oracle.com/javaee/7/api/javax/jms/Session.html#
>>> SESSION_TRANSACTED
>>>
>>> Thanks,
>>> Heshitha.
>>> --
>>> Heshitha Hettihewa
>>> *Software Engineer*
>>> Mobile : +94716866386
>>> <%2B94%20%280%29%20773%20451194>
>>> heshit...@wso2.com
>>>
>>
>>
>>
>> --
>> Asanka Abeyweera
>> Associate Technical Lead
>> WSO2 Inc.
>>
>> Phone: +94 712228648 <+94%2071%20222%208648>
>> Blog: a5anka.github.io
>>
>> 
>>
>
>
>
> --
> Best Regards..
>
> Chanika Geeganage
> +94773522586 <+94%2077%20352%202586>
> WSO2, Inc.; http://wso2.com
>
>


-- 
Asanka Abeyweera
Associate Technical Lead
WSO2 Inc.

Phone: +94 712228648
Blog: a5anka.github.io


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