Re: [Architecture] Nominal attributes in Siddhi

2014-09-23 Thread Ginnaliya Gamathige, Lahiru Manananda
Hi Suho, I have modified Attribute class which will keep all the possible values in attribute and can create the numeric value 2 for “rainy”. In the incoming event we can have the possible values for each attribute. I have the code committed to my local github[1] and once I have a working copy

Re: [Architecture] Building WSO2 Products in Java 7 and Java 8

2014-09-23 Thread Aruna Karunarathna
Hi all, Finally I was able to make carbon 4.3.0 to be able to compile with Java 7. However I have to upgrade some Equinox dependencies in order to make it compile against Java 7. So the next step is to taken care of the test failures in Java 7 build. At the mean time I have extracted a java 7

Re: [Architecture] Nominal attributes in Siddhi

2014-09-23 Thread Paul Fremantle
I think this is really useful. I'm not convinced the word nominal is well-known enough to be completely clear in this context. what about define stream weather( outlook options={sunny, overcast, rainy} ) Paul On 21 September 2014 19:45, Ginnaliya Gamathige, Lahiru Manananda

Re: [Architecture] Nominal attributes in Siddhi

2014-09-23 Thread Ginnaliya Gamathige, Lahiru Manananda
Hi Paul, On Sep 23, 2014, at 4:35 AM, Paul Fremantle p...@wso2.commailto:p...@wso2.com wrote: I think this is really useful. I'm not convinced the word nominal is well-known enough to be completely clear in this context. what about define stream weather( outlook options={sunny, overcast,

Re: [Architecture] Libraries for Unit testing

2014-09-23 Thread Chamil Jeewantha
Hi All, TestNG EasyMock, PowerMock are licence compatible. I am not sure about hamcrest which comes under BSD 3-Clause licencing. I have written a code segment as an example for this. Please refer to the code at [1] This code is written using test driven approach. Here are some of the

[Architecture] Support for Auto-Login of fresh registered users with SAML

2014-09-23 Thread Hasintha Indrajee
Hi all, The apporach i used while implementing $subject was implementing a cache within authentication framework. This cache is being shared by few other components including the following components. org.wso2.carbon.identity.oauth.endpoint org.wso2.carbon.identity.sso.saml

Re: [Architecture] Building WSO2 Products in Java 7 and Java 8

2014-09-23 Thread Aruna Karunarathna
Hi all, Here is the latest update on building Carbon 4.3.0 in Java 7. There are several test failures in the following components. 1. org.wso2.carbon.registry.core 2. distribution/integration/tests Can someone from GREG team help me to resolve the registry related test failures. I will

[Architecture] Tomcat virtual host support for tenant users

2014-09-23 Thread Nipuni Perera
Hi, I am working on an improvement for WSO2-AS to enable tomcat virtual host support [1]. With the current improvements we support the creation of additional virtual hosts as required by the users. A user need to modify catalina-server.xml (inside CARBON-HOME/repository/conf/tomcat/) to add an

Re: [Architecture] Tomcat virtual host support for tenant users

2014-09-23 Thread KasunG Gajasinghe
Hi Nipuni, What happens when a tenant uploads a webapp to a virtual host? Can the user invoke it? On Tue, Sep 23, 2014 at 2:39 PM, Nipuni Perera nip...@wso2.com wrote: Hi, I am working on an improvement for WSO2-AS to enable tomcat virtual host support [1]. With the current improvements

Re: [Architecture] Tomcat virtual host support for tenant users

2014-09-23 Thread Afkham Azeez
Since it is very tricky to implement vhost support for normal tenants, we are better off not exposing this for tenants, so, in the UI, the tenant should not see the vhost option, or, to make things simple, only the default host should be shown. On Tue, Sep 23, 2014 at 6:09 PM, Nipuni Perera

Re: [Architecture] Tomcat virtual host support for tenant users

2014-09-23 Thread Sagara Gunathunga
On Tue, Sep 23, 2014 at 6:29 PM, Afkham Azeez az...@wso2.com wrote: Since it is very tricky to implement vhost support for normal tenants, we are better off not exposing this for tenants, so, in the UI, the tenant should not see the vhost option, or, to make things simple, only the default

[Architecture] Decouple artifact deployment from ConfigurationContext creation

2014-09-23 Thread Sagara Gunathunga
According to Axis2 architecture it calls all registered deployers during the ConfigurationContext creation process, this is perfectly ok for both Axis2 standalone server and deploying Axis2 as a web application. But in Carbon servers we use Axis2 as a generic server building framework hence above

Re: [Architecture] Log4j MDC (Mapped Diagnostic Context) in Carbon

2014-09-23 Thread Isuru Perera
Hi all, Any feedback on this? On Thu, Jun 19, 2014 at 10:03 PM, Isuru Perera isu...@wso2.com wrote: Hi, Can we look at $subject for tenant information etc? I think this is better than implementing custom appenders, pattern layouts etc. In Log4j 2, this is part of Thread Context [1].

Re: [Architecture] Tomcat virtual host support for tenant users

2014-09-23 Thread Afkham Azeez
Best option is not to support vhosts for tenants until there is such a need. On Tue, Sep 23, 2014 at 9:29 PM, Nipuni Perera nip...@wso2.com wrote: Hi, @kasun, Yes. if a tenant uploads a webapp to a virtual host, user can invoke it (eg: a super user can invoke via http://www.vhost.com:9763

Re: [Architecture] Log4j MDC (Mapped Diagnostic Context) in Carbon

2014-09-23 Thread Afkham Azeez
If this is something critical, we should get it into the next major release rather than wait for C5. On Thu, Jun 19, 2014 at 10:03 PM, Isuru Perera isu...@wso2.com wrote: Hi, Can we look at $subject for tenant information etc? I think this is better than implementing custom appenders,

Re: [Architecture] Log4j MDC (Mapped Diagnostic Context) in Carbon

2014-09-23 Thread Isuru Perera
This is not critical, but I think it's better if we can upgrade log4j in next major release, i.e. Carbon 4.3.0 As I mentioned, with Log4j 2 [1] Thread Context support, we should be able avoid classes like TenantAwarePatternLayout [2]. [1] http://logging.apache.org/log4j/2.x/ [2]

Re: [Architecture] Deletion of tenant data related to API Manager

2014-09-23 Thread Mahesh Chinthaka
Hi All, After several offline discussions we concluded following. This deletion of tenant related data in tables scenario is pretty much common to several other products as well(eg : IS). Therefore we need to implement this in a way that the method is commonly accessible for each and every

Re: [Architecture] Decouple artifact deployment from ConfigurationContext creation

2014-09-23 Thread Srinath Perera
Look OK for me. --Srinath On Tue, Sep 23, 2014 at 7:51 PM, Sagara Gunathunga sag...@wso2.com wrote: According to Axis2 architecture it calls all registered deployers during the ConfigurationContext creation process, this is perfectly ok for both Axis2 standalone server and deploying Axis2

Re: [Architecture] Deletion of tenant data related to API Manager

2014-09-23 Thread Amila Maha Arachchi
+1 with few suggestions. Always use meaningful names. tenantDataTables - tenantDataDeleter.xml deleteTenantTableData - delete ProductSpecificTenantData On Wed, Sep 24, 2014 at 12:06 AM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi All, After several offline discussions we concluded following.