Re: [Dev] Writing an OSGI Component to Create a Tenant during ESB Startup

2016-08-15 Thread Sanjiva Weerawarana
nbind="unsetTenantBillingService"
>>>>
>>>> TenantMgtListener is available in ESB and therefore set the cardinality
>>>> to 1..n. TenantBillingService is not available in ESB and hence cardinality
>>>> is 0..1.
>>>>
>>>> Following is the implementation in the TenantInitializerComponent’s
>>>> activate method.
>>>>
>>>> TenantMgtAdminService tenantMgtAdminService = new
>>>> TenantMgtAdminService();
>>>>
>>>> TenantInfoBean tenantInfoBean = new TenantInfoBean();
>>>>
>>>> tenantInfoBean.setActive(true);
>>>>
>>>> tenantInfoBean.setAdmin("admin");
>>>>
>>>> tenantInfoBean.setAdminPassword("admin123");
>>>>
>>>> tenantInfoBean.setFirstname("Maheeka");
>>>>
>>>> tenantInfoBean.setLastname("Maheeka");
>>>>
>>>> tenantInfoBean.setEmail("ad...@maheeka.com");
>>>>
>>>> tenantInfoBean.setTenantDomain("maheeka.com");
>>>>
>>>> tenantInfoBean.setSuccessKey("");
>>>>
>>>> tenantInfoBean.setTenantId(250);
>>>>
>>>
>>> This may not work because, the tenant id is generated and returned by
>>> the tenant persister once a new tenant is persisted properly in DB. The
>>> tenant id is basically the row id in the table.
>>>
>>> Did you test this?
>>>
>>>
>>> tenantInfoBean.setUsagePlan("Demo");
>>>>
>>>> try {
>>>>
>>>>   tenantMgtAdminService.addTenant(tenantInfoBean);
>>>>
>>>>   log.info("Tenant added successfully");
>>>>
>>>> } catch (Exception e) {
>>>>
>>>>   log.error(“Error adding tenant", e);
>>>>
>>>> }
>>>>
>>>>
>>>> However, “tenantMgtAdminService.addTenant(tenantInfoBean)” will invoke 
>>>> TenantMgtServiceComponent
>>>> which is not activated by this time and thus throws a NPE.
>>>>
>>>>
>>>>1.
>>>>
>>>>Next thing we tried was using the ServerStartupObserver as
>>>>dependency to TenantInitializerComponent. However even this time
>>>>TenantMgtServiceComponent is not activated by the time
>>>>TenantInitializerComponent tries to activate. According to [1], seems 
>>>> like
>>>>ServerStartupObserver only waits till the transports are started.
>>>>2.
>>>>
>>>>If we write a BundleListener [3], we could wait for the
>>>>TenantMgtServiceComponent to be active and perform addTenant. Since this
>>>>captures all bundle statuses this might not be an effective approach.
>>>>3.
>>>>
>>>>Finally, took a look at StartupFinalizerServiceComponent. This
>>>>seems to register a service after all the components are initialized as
>>>>org.apache.axis2.engine.ListenerManager. I was able to successfully
>>>>create the tenant by adding a reference to this service as below.
>>>>
>>>> * @scr.reference name="listener.manager"
>>>>
>>>> *interface="org.apache.axis2.engin
>>>> e.ListenerManager"
>>>>
>>>> *cardinality="1..1" policy="dynamic"
>>>>
>>>> *bind="setListenerManager"
>>>>
>>>> *unbind="unsetListenerManager"
>>>>
>>>>
>>>> Adding reference to org.apache.axis2.engine.ListenerManager seems to
>>>> solve the problem. However, need to verify whether there are any other
>>>> better ways to solve this problem. Or shall we proceed with this approach?
>>>> Appreciate your feedback on this.
>>>>
>>>>
>>>> Thanks Kalpa and Jayanga for helping out on the details.
>>>>
>>>> [1] https://docs.wso2.com/display/Carbon447/Server+Startup+Observer
>>>>
>>>> [2] https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.ws
>>>> o2.carbon.core/src/main/java/org/wso2/carbon/core/internal/S
>>>> tartupFinalizerServiceComponent.java#L199
>>>>
>>>> [3] http://eclipsesource.com/blogs/2013/01/23/how-to-track-lifec
>>>> ycle-changes-of-osgi-bundles/
>>>>
>>>> Thanks,
>>>>
>>>> Maheeka Jayasuriya
>>>> Senior Software Engineer
>>>> Mobile : +9450661
>>>>
>>>
>>>
>>>
>>> --
>>> *Kishanthan Thangarajah*
>>> Technical Lead,
>>> Platform Technologies Team,
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>>
>>> Mobile - +94773426635
>>> Blog - *http://kishanthan.wordpress.com
>>> <http://kishanthan.wordpress.com>*
>>> Twitter - *http://twitter.com/kishanthan
>>> <http://twitter.com/kishanthan>*
>>>
>>
>>
>>
>> --
>> *Kishanthan Thangarajah*
>> Technical Lead,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - *http://kishanthan.wordpress.com
>> <http://kishanthan.wordpress.com>*
>> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sanjiva Weerawarana, Ph.D.
Founder, CEO & Chief Architect; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; office: (+1 650 745 4499 | +94  11 214 5345)
x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [BPS] [UUF] Developing BPMN Explorer UI using UUF for BPS

2016-05-20 Thread Sanjiva Weerawarana
for BPS which 
>>>>>>> is
>>>>>>> to be released on C5.
>>>>>>>
>>>>>>> We need to implement business logics in backend. For example, I need
>>>>>>> to send request to backend from browser, and from backend to BPS. Is 
>>>>>>> there
>>>>>>> functionality to achieve it in UUF?
>>>>>>>
>>>>>>> Any idea on this is appreciated.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Sudharma
>>>>>>>
>>>>>>> --
>>>>>>> Sudharma Subasinghe,
>>>>>>> Software Engineer,
>>>>>>> WSO2 Inc.
>>>>>>> Email: sudhar...@wso2.com <hasi...@wso2.com>
>>>>>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Sajith Janaprasad Ariyarathna
>>>>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>>>>>
>>>>>> ___
>>>>>> Architecture mailing list
>>>>>> architect...@wso2.org
>>>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> With regards,
>>>> *Manu*ranga Perera.
>>>>
>>>> phone : 071 7 70 20 50
>>>> mail : m...@wso2.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
>>>
>>>
>>
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Software Engineer
>> M: +94 71 680 9060 E: rasi...@wso2.com
>> LinkedIn: http://lk.linkedin.com/in/rasika90
>>
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>>
>> ___
>> 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
>
>


-- 
Sanjiva Weerawarana, Ph.D.
Founder, CEO & Chief Architect; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; office: (+1 650 745 4499 | +94  11 214 5345)
x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Introducing a model generator for DataMapper

2016-03-12 Thread Sanjiva Weerawarana
In the first picture there's something saying "schema generator for XSD"
and "schema generator for XML". I can't figure out what the latter is.

On Fri, Mar 11, 2016 at 1:46 PM, Awanthika Senarath <awanth...@wso2.com>
wrote:

> Please find the component diagram attached,
>
> ​
>  Data Mapper Tool Workflow
> <https://docs.google.com/a/wso2.com/drawings/d/1_MXoaIxswrmYS2E4RWzn6yov4NEfluWMSUtr82J_FAs/edit?usp=drive_web>
> ​
>
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> On Fri, Mar 11, 2016 at 12:09 PM, Awanthika Senarath <awanth...@wso2.com>
> wrote:
>
>>
>> Please find the modified class diagram attached,
>>
>> ​
>>  Schema Generator - Factory Implementation - Cla...
>> <https://docs.google.com/a/wso2.com/drawings/d/1dAC7OMtmnUgsSAPf1Szmiq95vZSkdAI5TYyqwCUm5SY/edit?usp=drive_web>
>> ​
>>
>>>
>>>>>
>>
>
> _______
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sanjiva Weerawarana, Ph.D.
Founder, CEO & Chief Architect; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; office: (+1 650 745 4499 | +94  11 214 5345)
x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Dev, QA, Production

2016-02-19 Thread Sanjiva Weerawarana
http://wso2.com/library/articles/2015/07/article-multi-environment-artifact-management-for-wso2-products-using-wso2-governance-registry/

On Sat, Feb 20, 2016 at 2:31 AM, John Q <johnq3...@gmail.com> wrote:

> Hello,
> Which is the better approach to externalize parameters in esb artifacts,
> for example, a username and password pair used within a sequence. I'm using
> local-entries for this purpose. but the values of these local entries are
> not the same in dev and production environments.
>
> Once these local entries are deployed into the server, I need to make
> future deployments of sequences, proxies, etc, and prevent these local
> entries to be overwritten with the local entries.
>
> Can any body give me some advice or guide in order to face these
> deployment relative issues?
>
> Thanks in advice,
> John
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sanjiva Weerawarana, Ph.D.
Founder, CEO & Chief Architect; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; office: (+1 650 745 4499 | +94  11 214 5345)
x5700; cell: +94 77 787 6880 | +1 408 466 5099; voip: +1 650 265 8311
blog: http://sanjiva.weerawarana.org/; twitter: @sanjiva
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] [C5] WSO2 Carbon Kernel 5.0.0 - M1 Release

2013-12-13 Thread Sanjiva Weerawarana
Congratulations C5 team!

Hmmm ... legacy technologies like Axis2 .. ouch.

Sanjiva.
p.s.: s/GitHup/GitHub/.


On Thu, Dec 12, 2013 at 1:10 PM, Sameera Jayasoma same...@wso2.com wrote:

 Hi All,

 We are happy to inform you that the release of the first milestone of
 Carbon kernel 5.0.0. You can download the release distribution from [1].

 *What is Carbon Kernel 5?*
 Carbon kernel 5 is the next generation of WSO2 Carbon
 kernel, re-architected from the ground up with the latest technologies to
 overcome the existing architectural limitations as well as to get rid of
 the dependencies to the legacy technologies like Apache Axis2.

 This milestone release includes the bare minimum features for an OSGi
 runtime.

 *New Features*

- Equinox Kepler based light-weight OSGi runtime.
- New Carbon launcher implementation
- Centralized logging back-end (based on Log4j) which supports
multiple logging APIs.

 *How to contribute?*
 C5 code is now available in GitHup[2]. You can clone this repository and
 do a maven build from the root. If you have any suggestions or interested
 in C5 discussions, please do so via *dev@wso2.org dev@wso2.org* or 
 *architect...@wso2.org
 architect...@wso2.org* mailing lists.

 Please report bugs, if any here[3]

 *Known Issues*
 https://wso2.org/jira/browse/CARBON-14585?filter=11693

 Thanks,
 *C5 Team.*

 [1]
 http://svn.wso2.org/repos/wso2/people/sameera/work/carbon-5.0.0/milestone-1/wso2carbon-kernel-5.0.0-SNAPSHOT.zip
 [2] https://github.com/wso2/carbon-kernel
 [3] https://wso2.org/jira/browse/CARBON

 --
 Sameera Jayasoma,
 Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; office: +1 650 745 4499 x5700; cell: +94 77 787
6880 | +1 650 265 8311
blog: http://sanjiva.weerawarana.org/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Fwd: [jira] [Created] (STRATOS-95) Build failure on trunk (3.0.0-SNAPSHOT)

2013-10-08 Thread Sanjiva Weerawarana
FYI - please fix in Carbon itself (see thread on
d...@stratos.incubator.apache.org for more info).

-- Forwarded message --
From: Hadrian Zbarcea (JIRA) j...@apache.org
Date: Tue, Oct 8, 2013 at 7:10 AM
Subject: [jira] [Created] (STRATOS-95) Build failure on trunk
(3.0.0-SNAPSHOT)
To: d...@stratos.incubator.apache.org


Hadrian Zbarcea created STRATOS-95:
--

 Summary: Build failure on trunk (3.0.0-SNAPSHOT)
 Key: STRATOS-95
 URL: https://issues.apache.org/jira/browse/STRATOS-95
 Project: Stratos
  Issue Type: Bug
Affects Versions: 3.0.0 RC1
Reporter: Hadrian Zbarcea
 Fix For: 3.0.0 RC1


Builds fail in org.apache.stratos.account.mgt due to a missing dependency
on javax.activation:activation:jar:1.0.2.

A quick mvn -X dependency:tree shows it as being a transitive dependency
coming from org.wso2.carbon:atlassian-jira.

{code}
[DEBUG]org.wso2.carbon:atlassian-jira:jar:1.0.0.wso2v1:compile
[...]
[DEBUG]   javax.xml:jaxrpc-api:jar:1.1:compile
[DEBUG]  javax.xml.soap:saaj-api:jar:1.3:compile
[DEBUG] javax.activation:activation:jar:1.0.2:compile
{code}

A simple excludes of the transitive dependency solves the problem (patch
attached). Ideally this would be done directly in carbon/atlassian-jira in
a future release and removed from here.

Cheers



--
This message was sent by Atlassian JIRA
(v6.1#6144)



-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Introducing the Carbon Platform Release Concept

2013-09-21 Thread Sanjiva Weerawarana
Thanks for the detailed mail Sameera.

However, I think the platform version number we're using is wrong. I
thought we agreed that the first release was release 1 and so the Turing
release is 28 or 29 or whatever the current release iteration is.

That is,

platform = carbon kernel + set of compatible products

So using the Carbon kernel version as the platform version is wrong! The
table has Turing marked as version 4.2.0 of the platform and the kernel
version is 4.2.0. Those are independent and using the same number will
bring back the confusion we've had for years.

If my logic is correct, then shouldn't the P2 repo URL be
http://dist.wso2.org/p2/carbon/releases/turing (or maybe 29-turing)?

Also, the release matrix should link directly to the P2 repo and not to
http://wso2.com/projects/carbon/provisioning-wso2-carbon-with-equinox-p2.
(BTW that page is random and weird .. looks like some leftover from the
.org/.com merger as the URL is random - will sort it out.)

In the table (which looks nice!) shall we separate product name and product
version into two columns? I can imagine multiple versions of the same
product being released for the same platform in different release chunks. I
wish we could come up with a better word than chunk since that's exposed
to the world now.

Sanjiva.


On Sat, Sep 21, 2013 at 4:14 PM, Sameera Jayasoma same...@wso2.com wrote:

 Hi Folks,

 Let me start with a little bit from the WSO2 Carbon release history. From
 2009 to early 2012,  Carbon kernel, Carbon platform and the set of products
 shared the same source repository and they all shared the same version
 except for products. So in all the previous releases, we had to release
 everything even though we needed a new kernel release or a new platform
 release. Also the source repository became somewhat unmanageable at that
 time. We wanted to independently release Carbon kernel and Carbon platform.
 I.e. Carbon platform trunk should be able to depend on a released Carbon
 kernel version.  Therefore we split the source repository into three
 different repositories called Carbon orbit, Carbon kernel and Carbon
 platform. This decision allowed us to work on these projects indipendenly.

 But we did a mistake again by using the same version for the Carbon kernel
 and the platform. Another mistake is to maintain a P2 repository for
 a Carbon kernel version assuming that all the products/features which are
 released on a given kernel version are compatible with each other. In the
 past year or so our assumption has been proven wrong. We have been
 introducing incompatible changes in patch releases of certain products and
 P2 story is broken in the past two major Carbon releases.

 Recently we had a meeting to rectify this issue. Participants are Sanjiva,
 Azeez, Sumedha and bunch of few others. I have explained the solution below
 in point form.

- We need to highlight the Carbon platform release concept more. We
need to introduce two different versions/names for the platform releases
and the kernel releases. There can be multiple platform releases based on
a single kernel release.


- A Carbon platform release consists of a bunch of product releases
which are compatible with each other. I.e features of a AS should work
seamlessly with another product say ESB  given that both these products
belongs to a single platform release. Recent requirements clearly shows the
need of a set of compatible products to build something like WSO2 Cloud.


- We need to maintain a P2 repository for a Carbon platform release
not for a kernel release. Product which belongs to single platform version
should be able connect to this repo and install features and run without
any issues. I.e all the product feature. When ever we do a patch release of
a product, we should not do any incompatible changes to the same platform.
If you need a this sort of a change, you can initiate new platform release.


- Practically we cannot release all the products at once. Therefore we
need to follow a chunk based release model[1] when it comes to releasing
products and patch releases of products.


- We thought of naming Carbon platform releases after the Turing award
winners. We named first platform release(4.2.0) as Turing.


- I have worked with Dassa(Dasun) to update the release matrix page[2]
to illustrate these facts.


 Please share your thoughts on this.

 Thanks,
 Sameera.

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.2.0/product-releases/
 [2] http://wso2.com/products/carbon/release-matrix/

 --
 Sameera Jayasoma,
 Architect,

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://sameera.adahas.org
 twitter: https://twitter.com/sameerajayasoma
 flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
 Mobile: 0094776364456

 Lean . Enterprise . Middleware




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc

Re: [Dev] Red or Blue ?

2013-07-03 Thread Sanjiva Weerawarana
Guys lets stick to the colors that were designed together .. its generally
not a good idea to change color of one bit because it impact other color
choices.

Sanjiva.


On Wed, Jul 3, 2013 at 11:34 AM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi,

 Please give comments. Added screenshots.

 thanks,
 dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] [Carbon 5] Scrap front-end back-end separation?

2013-03-21 Thread Sanjiva Weerawarana
Azeez don't we need the management API in worker nodes? I assume the answer
is yes ..

So in that case the worker contains the runtime container logic plus a
management API (running at a separate port etc. and enabled by request).
The management node contains an admin app that talks to the worker nodes
via the API and other means (such as ADC). Right?

+1 as long as we can still ship a multi-profile distro by default where all
of this is in one JVM and then you give the personalty at boot time.

Sanjiva.


On Thu, Mar 21, 2013 at 6:03 PM, Afkham Azeez az...@wso2.com wrote:



 On Thu, Mar 21, 2013 at 5:56 PM, Samisa Abeysinghe sam...@wso2.comwrote:



 On Thu, Mar 21, 2013 at 3:35 PM, Afkham Azeez az...@wso2.com wrote:

 With the worker-manager concept, we no longer require FE-BE separation.
 There is no need to have FE-BE separation for the management node. So, I
 think we can completely do away with that concept.


 But how do we separate the worker stuff from manager stuff?
 Is that not
 Manger == FE + BE
 Worker == BE



 No, FE is the front end of the management admin client. BE is the
 management service/API. Worker provides the runtime to run services, apps,
 processes, mediation etc. We have made the mistake of calling this runtime
 as BE as well. Management nodes will not ideally require this runtime, but
 we may need to have some parts of it. e.g. validating the Synapse config
 will require Synapse to be in the management node. We will never have a
 case where a FE talks to a BE in a worker node. When it comes to the mgt
 node, there is no need for separating the FE  BE.



 What do you guys think?

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*

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

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



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




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] [Carbon 5] Scrap front-end back-end separation?

2013-03-21 Thread Sanjiva Weerawarana
I agree with all of this *but*, I still don't get why the workers don't
need APIs. How do we:
- ask it to update itself for deployment type stuff
- ask it to change some config
- ask it to send BAM events to a particular place
- do JMX to it
etc. etc..

All of those require that the OC or the mgmt node or ADC be able to talk to
the server. Maybe the communication is cluster-wide (broadcast) or maybe
its point-to-point ... depends on the scenario. I am confused why we don't
need some way to interact with the worker remotely.

Obviously I'm missing some crucial thought here ... what is it?

Sanjiva.


On Fri, Mar 22, 2013 at 12:52 AM, Afkham Azeez az...@wso2.com wrote:



 On Fri, Mar 22, 2013 at 12:47 AM, Sagara Gunathunga sag...@wso2.comwrote:



 On Fri, Mar 22, 2013 at 12:36 AM, Sameera Jayasoma same...@wso2.comwrote:




 On Thu, Mar 21, 2013 at 12:00 PM, Sagara Gunathunga sag...@wso2.comwrote:



 On Fri, Mar 22, 2013 at 12:12 AM, Afkham Azeez az...@wso2.com wrote:



 On Fri, Mar 22, 2013 at 12:05 AM, Sameera Jayasoma 
 same...@wso2.comwrote:

 See my comments inline.


 On Thu, Mar 21, 2013 at 11:25 AM, Afkham Azeez az...@wso2.comwrote:



 On Thu, Mar 21, 2013 at 11:49 PM, Sameera Jayasoma same...@wso2.com
  wrote:

 Hi Azeez,



 On Thu, Mar 21, 2013 at 5:49 AM, Afkham Azeez az...@wso2.comwrote:



 On Thu, Mar 21, 2013 at 6:16 PM, Sanjiva Weerawarana 
 sanj...@wso2.com wrote:

 Azeez don't we need the management API in worker nodes? I assume
 the answer is yes ..


 If you look at the current worker-manager separated setup, we
 don't have a single instance where the management node BE or FE calls 
 into
 the worker node BE.



 I agree that worker nodes do not require administrative services.
 But for Management node, we need to maintain the BE/FE separation. I.e 
 we
 need to keep the administration services as its. This would user to 
 write
 their own UI layer to interact with our server. This exactly what
 AppFactory is doing right? In some of the project I've worked, we 
 developed
 completely different UI to interact with Mgt nodes. So IMV, we still 
 need
 that BE services.


 FE-BE separation means from the UI components we make service calls
 to the BE components. What we need is management APIs. Our UI can simply
 use these management APIs. We don't need FE-BE separation. External apps
 can also call these management APIs.


  Okay. so anyway we need to expose our management APIs as service
 right?.

 I was under the impression that FE-BE separation means a clear
 separation of UI layer from the BE layer. some how we ended up connecting
 FE layer to BE layer via web services communication. But we tried to
 connect FE to BE via Java calls via OSGi services approach. Thats didn't
 work due to some security issues.

 Anyway still we need to clearly separate FE components from the
 management APIs right? But we need to figure out an efficient  and secure
 way to connect the FE to BE.


 I guess where I am getting at is, we have RESTful APIs, which will be
 called by code running in the Web Browser. Yes, I am suggesting that we go
 back to the old AJAX based UI model we had, but without the pain of XSLT
 (in the old model).

 FE = jquery + HTML+ (Jaggery?)
 BE= RESTful APIs (Jaggery?)

 FE  --- JSON -- BE


  One question, what is the transport protocol which carries JSON
 messages from FE to BE ?


 Obviously HTTPS. :)


 Given the fact that both FE and BE run on same JVM do we really need to
 use transport level protocols here ?  isn't it make sense to use Java call
 within the JVM ?


 FE (running on Web Browser)  --- JSON/HTTP -- BE (RESTful API running in
 JVM)

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] User Engagement Server Milestone-5 Released

2013-03-10 Thread Sanjiva Weerawarana
.carbon.context.internal.CarbonContextDataHolder$CarbonInitialJNDIContext.bind(CarbonContextDataHolder.java:1038)
at javax.naming.InitialContext.bind(InitialContext.java:400)
 at
javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:625)
at
javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:412)
 ... 41 more
Caused by: java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:230)
 at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
 at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:120)
 ... 46 more

I know its harmless but please fix for next release .. looks bad.

Sanjiva.


On Thu, Feb 28, 2013 at 8:14 PM, Madhuka Udantha madh...@wso2.com wrote:

 *User Engagement Server Milestone-5 Released*

 The Milestone-5 of WSO2 User Engagement Server can be downloaded at [1].
 Milestone 5 mainly contains,

 *[Task]
 *[UEC-13 https://wso2.org/jira/browse/UEC-13] Make Jaggery based gadget
 deployer to be started up during the app deployment
 [UEC-50 https://wso2.org/jira/browse/UEC-50] Registration and Login
 with using jaggery modules

 *[Bug]
 *[UEC-43 https://wso2.org/jira/browse/UEC-43] Gadget thumbnails aren't
 visible in chrome browser
 [UEC-20 https://wso2.org/jira/browse/UEC-20] Quartz.SchedulerException
 when shutting down the server.
 [UEC-41 https://wso2.org/jira/browse/UEC-41] Store Gadget Icons have
 https://localhost URLS
 [UEC-40 https://wso2.org/jira/browse/UEC-40] Climate Change and Mark
 mail gadgets not working
 [UEC-18 https://wso2.org/jira/browse/UEC-18] Accessing
 https://my-ip:9443/ or https://my-ip:9443/carbon gives 404 error
 [UEC-37 https://wso2.org/jira/browse/UEC-37] jaggery deployer issue
 with host object

 The Milestone-5 of WSO2 User Engagement Server is early middle stage, you
 will encounter some bugs and feature limitations, we are working on
 improving these in future milestones[6].


 *References *

 [1] Product can be downloaded from :
 http://dist.wso2.org/milestone/gs/ues/M5/wso2ues-1.0.0-M5.zip
 [2] Portal is located at : http://{IP}:9763/portal
 [3] Store is located at : http://{IP}:9763/store/assets/gadget/
 [4] Portal dashboard : http://{IP}:9763/portal/dashboard.jag
 [5] Web based editor : http://{IP}:9763/portal/dashboard/new-page.jag
 [6] Issue Tracker: https://wso2.org/jira/browse/UEC


  -- *WSO2 User Engagement Server Team* --
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Carbon kernel refactoring

2013-01-31 Thread Sanjiva Weerawarana
Totally +1 .. wish I could help!


On Thu, Jan 31, 2013 at 3:16 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi all,

 Me and azeez started on the $subject before the Dec break. The latest code
 can be found here [1]


 * Rationale and objectives:

 - there are so many bundles, even within carbon kernel and there seems to
 be unnecessary granularity.
 - In the future we are going to patch carbon kernel intead of kernel minor
 releases.
  - getting rid of not-so-kenel code.
 - this is the stepping stone to C5 efforts.

 * As of now:

 - identified few core modules - user.core, registry.core, caching,
 logging, datasources (but still user.core and registry.core depends on
 kernel..)
 - refactored the kernel, so that it only depends on registry,usercore and
 datasource api s.
 - carbon starts but having issues with admin services


 * to be done:

 - refactor user.core/registry.core to be independent of carbon kernel - we
 might need to change the user.api and registry.api while doing so. Right
 now these modules access tenant info using carbonContext. They don't get
 passed via API.

 - The UserRegistry implementation get used in modules. Not being an
 interface this creates coupling between modules.

 - remove implementation classes of user.core and registry.core and come up
 with simpleImpls. (may be in-memory ones)

 - Right now (after commenting out stuff), datasource components just
 registers datasources against JNDI. we have to think about a proper way of
 incorporating tenant datasources,replicating, etc.



 we need some help to complete above tasks. :)

 [1] https://svn.wso2.org/repos/wso2/carbon/kernel/trunk/

 thanks,
 --Pradeep



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] WSO2 Gadget Server 2.0.0 Milestone-8 Released

2012-12-08 Thread Sanjiva Weerawarana
Guys when do we plan to rename to UEC?

Sanjiva.


On Sat, Dec 8, 2012 at 8:32 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 *WSO2 Gadget Server 2.0.0 Milestone-8 Released*

 Milestone-8 of WSO2 Gadget Server 2.0 can be downloaded at [1]. It is a
 complete rewrite of the Gadget Server 1.0 and is powered by jaggeryjs [2].
 This is the first milestone based on the asset store, which is a generic
 artifact store based on WSO2 API Manager and WSO2 Governance Registry.

 *Usage*

1. Asset store can be found at http://localhost:9763/store
2. Gadgets can be added into store by login into carbon admin console
and navigating to Metadata  Add  Gadget link
3. HTML mockups
- http://localhost:9763/samples/intro.html (HTML5 page
   with embedded gadgets)
   - http://localhost:9763/samples/store.html (New gadget store theme)
   - http://localhost:9763/samples/climate-change.html (HTML5 page
   with embedded gadgets)

 This milestone was basically targeted towards stabilizing asset store
 based GS 2.0 build. You would encounter issues in functionality and UI,
 which we are fixing towards next milestones.

 Thanks  Regards,
 WSO2 Gadget Server Team

 [1] http://dist.wso2.org/milestone/gs/M8/wso2gs-2.0.0-SNAPSHOT.zip
 [2] http://jaggeryjs.org

 --
 *Ruchira Wageesha
 Senior Software Engineer  Member, Management Committee, Development
 Technologies*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile: +94
 77 5493444*

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] GReg-4.5.3-Alpha Released .!!

2012-11-22 Thread Sanjiva Weerawarana
Subash do we normally announce alphas?? :-).

On Fri, Nov 23, 2012 at 3:49 AM, Subash Chaturanga sub...@wso2.com wrote:

 Hi all,
 GReg team pleased to announce the release of GReg-4.5.3-Alpha.

 *Download GReg-4.5.3-Alpha*
 You can download the alpha binary distribution at [1] and the
 documentation at [2].

 *Issues Fixed*
 The fixed issues and the open issues of GReg 4.5.3 can be found at [3].


 [1] -
 https://svn.wso2.org/repos/wso2/people/subash/greg-4.5.3-alpha/wso2greg-4.5.3.zip
 [2] -
 https://svn.wso2.org/repos/wso2/people/subash/greg-4.5.3-alpha/wso2greg-4.5.3-docs.zip

 [3] -
 https://wso2.org/jira/browse/REGISTRY/fixforversion/10716#atl_token=U1iP0lQ-OlselectedTab=com.atlassian.jira.plugin.system.project%3Aversion-issues-panel
  --

 Subash Chaturanga
 Software Engineer
 WSO2 Inc. http://wso2.com

 email - sub...@wso2.com
 phone - 077 2225922


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Improvement to SecureVault API (SecretResolverFactory.create)

2012-10-28 Thread Sanjiva Weerawarana
On Sat, Oct 27, 2012 at 6:39 AM, Afkham Azeez az...@wso2.com wrote:

 On Sat, Oct 27, 2012 at 6:25 AM, Selvaratnam Uthaiyashankar 
 shan...@wso2.com wrote:

 Hi,

 Check the following API (in 3.2.2 branch.. haven't checked in 4.0.0
 branch)
 SecretResolver
 org.wso2.securevault.SecretResolverFactory.create(OMElement configuration,
 boolean isCapLetter)


 why do we need the parameter isCapLetter? If it is true, it is
 searching for an element SecureVault and if false, it is searching for
 secureVault element. However, this is not a userlevel parameter. This API
 does not look good :).


 !!! yes, that is an implementation detail, and should never be part os the
 API!


Not only that .. this is stuff that should not be configurable.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] Shall we move JDBC/AD/LDAP UserStoreManagers out of Carbon Kernel ?

2012-10-19 Thread Sanjiva Weerawarana
On Fri, Oct 19, 2012 at 11:34 AM, Muhammed Shariq sha...@wso2.com wrote:

  What is the advantage? I guess, being able to improve
 them independent of having to release the kernel?


 Yes... This will help IS to be released in point releases with the same
 Carbon kernel..


 Then I guess IS needs to be released before any other product. Or does
 other other products have only the admin user login?


 The model should be;

 1. Release kernel or depend on a released version of the kernel
 2. Release components - may be a selected subset


 In the current component structure isn't it a bit complicated to release a
 subset of components. If we want to do this, we should group the
 components preferably the products. That way we should be able to release a
 set of components and the corresponding product .. WDYT ?!


I'm -1 on doing this. For faster execution (I mean in the engineering sense
not runtime) its critical that Carbon kernel be a totally standalone thing.

Why does the proposed change challenge that? Can't we have a simple default
realm like tomcat-users.xml type thing built into our user-management.xml?

Then if you want more than that you need the components that give you
various capabilities like LDAP, JDBC etc.. If you want full stuff you get
IS.

I'm sure I'm missing some crucial info :).

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] XML schema for RXT LC

2012-10-05 Thread Sanjiva Weerawarana
Samisa if there's a schema then we can use the Eclipse editor to get
content assist etc. to help edit the RXT files.

On Fri, Oct 5, 2012 at 10:13 AM, Samisa Abeysinghe sam...@wso2.com wrote:



 On Fri, Oct 5, 2012 at 10:10 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi Samisa,

 Harshana and the team is already working on getting the tool side of it
 sorted out. Also, we have a road-map item to have a add-RXT page like the
 add-LC page.


 Unfortunately, the story is half baked without provision of these tooling
 and supporting aspects.

 I wonder what the priorities are on the road-map aspects - in the global
 optima, not in the local optima.




 Thanks,
 Senaka.


 On Fri, Oct 5, 2012 at 9:56 AM, Samisa Abeysinghe sam...@wso2.comwrote:



 On Fri, Oct 5, 2012 at 9:43 AM, Senaka Fernando sen...@wso2.com wrote:

 Hi all,

 I think we should improve the docs to have this as a side note or even
 a sample (as to how to use the XSD to generate LC or RXT). I will work on
 getting this done.


 Well, actually, it is neither the doc nor the schema that we should
 have, as that is tech detail. As a user, I would not care as long as I have
 a tool to easily define RXTs.  That would solve lot of problems.




 Thanks,
 Senaka.

 On Fri, Oct 5, 2012 at 9:26 AM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi Samisa

 On Fri, Oct 5, 2012 at 9:19 AM, Samisa Abeysinghe sam...@wso2.comwrote:

 Do we have schema defined for $subject?

 I am trying to see how I could do the least work and generate the RXT
 that I want, plus the LC for that.


 Yes, they are defined. You can find them in
 CARBON_HOME/repository/resource/rxt.xsd
 and  CARBON_HOME/repository/resource/lifecycle-config.xsd.

 thanks
 Eranda
 *
 *


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




 --
 *Senaka Fernando*
 Member - Integration Technologies Management Committee;
 Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware

  Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org





 --
 *Senaka Fernando*
 Member - Integration Technologies Management Committee;
 Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware

  Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Creating A Custom Mediator For XSLT Transfomation : Binary Relay Enabled ESB

2012-09-16 Thread Sanjiva Weerawarana
...@cs.ucsb.edu hira...@wso2.com;  Mobile: +1 (805)
 895-7443
 Blog: http://techfeast-hiranya.blogspot.com



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] WSO2 Gadget Server 2.0 Daily build (21/08/12)

2012-08-22 Thread Sanjiva Weerawarana
I tried this and see one gadget :). I edited
repository/deployment/server/jaggeryapps/portal/index.jag and it works :-).
When do we ship?!

BTW I got an exception at startup (but it booted up anyway):

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[bundleresource://190.fwk1790118163/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/Users/sanjiva/Downloads/wso2gs-2.0/repository/deployment/server/webapps/ROOT/WEB-INF/lib/slf4j-jdk14-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
2012-08-22 18:17:17
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.8-b03-424 mixed
mode):

com.google.inject.internal.util.$Finalizer daemon prio=5 tid=7fec14b2b800
nid=0x1176cf000 in Object.wait() [1176ce000]
   java.lang.Thread.State: WAITING (on object monitor)
 at java.lang.Object.wait(Native Method)
- waiting on 7d3b2e900 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:118)
- locked 7d3b2e900 (a java.lang.ref.ReferenceQueue$Lock)
 at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:134)
at com.google.inject.internal.util.$Finalizer.run(Finalizer.java:114)

What's SLF4J?

Sanjiva.

On Tue, Aug 21, 2012 at 5:27 PM, Nuwan Bandara nu...@wso2.com wrote:

 Hi All,

 Please find the *first daily build* of WSO2 Gadget Server 2.0 [1]. This
 is a complete rewrite of the Gadget Server 1.0 and is powered by jaggeryjs
 [2]

 We are targeting at *GS 2.0 Milestone-1* [3]

 Once the server is started http://localhost:9763/portal will take you to
 the Jaggery powered page which embeds an open social gadget.

 [1] http://people.wso2.com/~nuwan/gs2/21-08-12/wso2gs-2.0.zip
 [2] http://jaggeryjs.org
 [3] https://wso2.org/jira/browse/GS/fixforversion/10611

 --
 *Thanks  Regards,

 Nuwan Bandara
 Associate Technical Lead  Member, MC, Development Technologies
 WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
 blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763
 9629
 *
 http://www.nuwanbando.com/

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] [GReg] Why Retention is not part of Registry API ?

2012-06-24 Thread Sanjiva Weerawarana
What is retention?

On Sun, Jun 24, 2012 at 8:14 PM, Subash Chaturanga sub...@wso2.com wrote:

 Hi Senaka,

 Is there any particular reason $subject ?
 This has implemented directly through an admin service and the retention
 concept is not moved in to registry API.
 AFAIU, it is good to have retention capability to a repository as it is a
 fundamental concept.


 Thanks
 --

 Subash Chaturanga
 Software Engineer
 WSO2 Inc. http://wso2.com

 email - sub...@wso2.com
 phone - 077 2225922


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Dev-Jaggery] JavaScript Caching in Jaggery

2012-06-22 Thread Sanjiva Weerawarana
I can't see the advantages of option 2 ... we have to assume every bit of
JS is different so its not about sharing a .class. If we can have a lazy
loading + unloading scheme in place then option 1 is fine IMO.

We should be able to piggyback off the webapp lazyloading stuff?

Sanjiva.

On Thu, Jun 21, 2012 at 6:28 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi all,

 We are using Rhino's script compilation support in Jaggery product to
 improve the performance of JS execution.

 When we compiled a JS file using Rhino, we can get either

1. An object(Script) of the *.class file
   - This will be kept in memory and executed when ever needed
   - When n webapps of m size in a jaggery server are equally
   accessed, n x m memory will be needed in order keep all webapp objects 
 in
   memory
   - If the server doesn't have enough memory, then we will have to
   recompile the same webapp time to time
2. A *.class file for that script
   - In this way, we can save the *.class file to the disk and load it
   using a custom classloader.
   - In a muti-tenant environment, we can release the memory of unused
   classloaders and load the classes on demand using saved *.class files
   - As per my understanding, it would be able to server n webapps of
   m size using less amount of memory than above 1 by unloading unused
   classloaders and loading *.class on demand

 Currently it has been implemented to work in both modes, but I am not sure
 which one would be ideal for the case.

 Welcome your thoughts 

 regards,
 Ruchira

 --
 *Ruchira Wageesha
 Senior Software Engineer  Member, Management Committee, Development
 Technologies*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: ruch...@wso2.com,   blog: ruchirawageesha.blogspot.com,   mobile: +94
 77 5493444*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Is API Manager in Bamboo?

2012-06-11 Thread Sanjiva Weerawarana
H I don't understand that. Having nightly builds is a hallmark of open
source projects and we are not keeping to that if we don't put it in bamboo.

Sanjiva.

On Wed, Jun 6, 2012 at 6:19 PM, Hiranya Jayathilaka hira...@wso2.comwrote:



 On Wed, Jun 6, 2012 at 6:10 PM, Paul Fremantle p...@wso2.com wrote:

 $subject?


 No, it's not a part of the default build profile yet. We'll add it once
 the alpha is out.

 Thanks,
 Hiranya



 Paul

 --
 Paul Fremantle
 CTO and Co-Founder, WSO2
 OASIS WS-RX TC Co-chair, VP, Apache Synapse

 UK: +44 207 096 0336
 US: +1 646 595 7614

 blog: http://pzf.fremantle.org
 twitter.com/pzfreo
 p...@wso2.com

 wso2.com Lean Enterprise Middleware

 Disclaimer: This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, retransmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.


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




 --
 Hiranya Jayathilaka
 Senior Technical Lead;
 WSO2 Inc.;  http://wso2.org
 E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
 Blog: http://techfeast-hiranya.blogspot.com

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Redesign of JavaScript SOAP services stub

2012-06-11 Thread Sanjiva Weerawarana
Yes but that's the limitation we need to fix! Its not too hard .. its
recursive application of the same rules :).

On Mon, Jun 11, 2012 at 9:04 AM, Ruchira Wageesha ruch...@wso2.com wrote:

 In the old model, it generates functions like [1] for operations. But when
 it is a service with complex types, most probably function signature would
 be [2]. In [2] userInfo is the whole soap body and we need to construct it
 manually. No help from the stub for soap body creation.

 [1] function saveUser(username, birthday, addressLine1, addressLine2,
 city, country)
 [2] function saveUser(userInfo)

 On Sun, Jun 10, 2012 at 10:48 AM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Why do we need to re-invent a solution .. can the JAX-WS style binding
 model not work? What we had was a similar model in the old mashup server.

 W.r.t. complex schemas- I don't understand why the old model doesn't
 support complex types. Note that I'm talking about the model not the XSLT
 based implementation.

 Sanjiva

 On Fri, Jun 1, 2012 at 3:40 PM, Ruchira Wageesha ruch...@wso2.comwrote:

 Hi All,

 We are in the process of refactoring the SOAP web service JavaScript
 stub. Before going through that, I need to highlight few stuff and come up
 with a proper decision/architecture about the JS stub.

 Old Stub of MS
 =
 Old stub was mainly writted thinking about services in MS and it
 generated methods for each operation in a service. This was absolutely
 simple to consume services in Mashup Server as MS didn't allow to write a
 service with complex schemas. i.e. In MS, we have only strings, numbers,
 dates etc. and anytype elements only.

 Following is a set of JS service method signatures that we can write in
 MS and relavent JS stub method signatures of them.

 *scenario1* - every parameter is a string

 Operation signature : function saveUser(username, birthday,
 addressLine1, addressLine2, city, country)
 Stub method signature : function saveUser(username, birthday,
 addressLine1, addressLine2, city, country)

 *scenario2* - address parameter is anytype and rest are strings

 Operation signature : function saveUser(username, birthday, address)
 Stub method signature : function saveUser(username, birthday, address)

 Here address is an anytype and we don't have any schema over that in the
 WSDL. i.e. We had to document about the address schema.
 address
 addressLine1/
  addressLine2/
 city/
  country/
 /address

 *scenario3* - userInfo is an anytype

 Operation signature : function saveUser(userInfo)
 Stub method signature : function saveUser(userInfo)

 Here userInfo is an anytype and WSDL contain nothing about it. i.e. We
 had to document about userInfo schema.
 userInfo
  username/
  birthday/
 address
  addressLine1/
 addressLine2/
  city/
 country/
  /address
 /userInfo

 But when it comes to non-MS services, *scenario3* would be the common
 case and with the old stub, it won't do much as we have to manually
 contruct the userInfo payload string and pass it to the method.


 The current stub
 =

 op = operations[saveUser];
 op(userInfo);

 A Modified version of the old stub, which allows you to pass either the
 payload XML(as in the case of old stub) or payload JSON in Badgerfish
 notation. This doesn't matter how complex the payload is.

 Only practical use of this stub is in it's Badgerfish mode. i.e. There
 is a method to get a sample BF JSON of the payload. Then, user only need to
 replace the relevant values of the BF JSON. After that, BF JSON will be
 converted back to an XML string using a util function and send to the
 endpoint.

 Further, instead of generating top level JS methods as in the old stub,
 those functions are accessed using operation name from the operations
 object. The reason behind that is, we can't have exact same WS operation
 name as the JS method name. i.e. - are valid in WS operation names, but
 invalid for JS variable names.


 When the we consider a Java stub, it makes easier to consume the WS.
 But, in JS case, we need to carefuly design the JS stub. i.e. As JavaScript
 is a dynamically typed langague, we don't have much choices.

 In Java stub, it might generate a UserInfo bean, Address bean etc. But
 in JS case, we won't need to have seperate objects as we can pass whole
 UserInfo element as a JSON. Again mapping a JSON to a highly styped schema
 is very difficult and we will have to find a way to preserve original
 details of the XML payload such as namespaces, sequences etc.

 So without addressing those issues, JS stubs will be useless. I am not
 sure whether there will be a perfect solution. But sometimes, we might have
 the old stub for simple services such as MS, and none for services with
 complex schemas.

 Anyway, we need to come up with a proper design/decision.

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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc

Re: [Dev] Redesign of JavaScript SOAP services stub

2012-06-09 Thread Sanjiva Weerawarana
Why do we need to re-invent a solution .. can the JAX-WS style binding
model not work? What we had was a similar model in the old mashup server.

W.r.t. complex schemas- I don't understand why the old model doesn't
support complex types. Note that I'm talking about the model not the XSLT
based implementation.

Sanjiva

On Fri, Jun 1, 2012 at 3:40 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi All,

 We are in the process of refactoring the SOAP web service JavaScript stub.
 Before going through that, I need to highlight few stuff and come up with a
 proper decision/architecture about the JS stub.

 Old Stub of MS
 =
 Old stub was mainly writted thinking about services in MS and it generated
 methods for each operation in a service. This was absolutely simple to
 consume services in Mashup Server as MS didn't allow to write a service
 with complex schemas. i.e. In MS, we have only strings, numbers, dates etc.
 and anytype elements only.

 Following is a set of JS service method signatures that we can write in MS
 and relavent JS stub method signatures of them.

 *scenario1* - every parameter is a string

 Operation signature : function saveUser(username, birthday, addressLine1,
 addressLine2, city, country)
 Stub method signature : function saveUser(username, birthday,
 addressLine1, addressLine2, city, country)

 *scenario2* - address parameter is anytype and rest are strings

 Operation signature : function saveUser(username, birthday, address)
 Stub method signature : function saveUser(username, birthday, address)

 Here address is an anytype and we don't have any schema over that in the
 WSDL. i.e. We had to document about the address schema.
 address
 addressLine1/
  addressLine2/
 city/
  country/
 /address

 *scenario3* - userInfo is an anytype

 Operation signature : function saveUser(userInfo)
 Stub method signature : function saveUser(userInfo)

 Here userInfo is an anytype and WSDL contain nothing about it. i.e. We had
 to document about userInfo schema.
 userInfo
  username/
  birthday/
 address
  addressLine1/
 addressLine2/
  city/
 country/
  /address
 /userInfo

 But when it comes to non-MS services, *scenario3* would be the common
 case and with the old stub, it won't do much as we have to manually
 contruct the userInfo payload string and pass it to the method.


 The current stub
 =

 op = operations[saveUser];
 op(userInfo);

 A Modified version of the old stub, which allows you to pass either the
 payload XML(as in the case of old stub) or payload JSON in Badgerfish
 notation. This doesn't matter how complex the payload is.

 Only practical use of this stub is in it's Badgerfish mode. i.e. There is
 a method to get a sample BF JSON of the payload. Then, user only need to
 replace the relevant values of the BF JSON. After that, BF JSON will be
 converted back to an XML string using a util function and send to the
 endpoint.

 Further, instead of generating top level JS methods as in the old stub,
 those functions are accessed using operation name from the operations
 object. The reason behind that is, we can't have exact same WS operation
 name as the JS method name. i.e. - are valid in WS operation names, but
 invalid for JS variable names.


 When the we consider a Java stub, it makes easier to consume the WS. But,
 in JS case, we need to carefuly design the JS stub. i.e. As JavaScript is a
 dynamically typed langague, we don't have much choices.

 In Java stub, it might generate a UserInfo bean, Address bean etc. But in
 JS case, we won't need to have seperate objects as we can pass whole
 UserInfo element as a JSON. Again mapping a JSON to a highly styped schema
 is very difficult and we will have to find a way to preserve original
 details of the XML payload such as namespaces, sequences etc.

 So without addressing those issues, JS stubs will be useless. I am not
 sure whether there will be a perfect solution. But sometimes, we might have
 the old stub for simple services such as MS, and none for services with
 complex schemas.

 Anyway, we need to come up with a proper design/decision.

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Setting Javascript Standards/Conventions in WSO2

2012-05-24 Thread Sanjiva Weerawarana
We also need to educate everyone on how to write adapters for services in
Jaggery. We've got it a bit wrong in the API Store code by using Java stubs
via host objects.

The right approach should be to create a Jaggery module for the service
starting with a generated stub. If necessary hand wrap it into a nicer
experience and then push it out as a module so anyone can use it via
require.

I think some *good* samples will help.

Sanjiva.

On Wed, May 23, 2012 at 1:05 PM, Nuwan Bandara nu...@wso2.com wrote:

 Hi All,

 Writing javascript code should not be considered lightly. It is as serious
 as your server code. If you write crappy code and create bugs,
 comparatively they are harder to find and solve; *During code reviews
 please make sure following guidelines are also met for any javascript code
 written by developers. *

 As a general standard for Javascript programming, developers need to
 adhere to the javascript guide *[1]* originally published by Google.

 As for tools,

- For code sanity check - JSLint [2] or Closure Linter [3]
- Javascript documentation - JSDoc-toolkit [4]
- Unit testing - QUnit [5], JSUnit [6]
- Javascript minification - JSMin [7], YUICompressor [8], Closure
Compiler [9]

 *What you MUST do*

- All javascript that are written need to be checked against JSList.
This is something similar to find-bugs for java.
- All scripts that are being used across the platform need to be
minified, from any of the tools mentioned above.
- Create Unit tests for code javascript code you wright, use one of
the tools above. (QUnit proves to be easier)
- Try to do documentation as much as possible and use JSDoc to
generate documentation

 I have documented there guide lines at
 https://sites.google.com/a/wso2.com/engineering/standards-conventions/javascript-standards-tools.
 (for internal reference) If I have missed anything please do update the
 document.

 With increase use of javascript as server-side language, I believe we need
 conventions and guidelines in-place. We will be creating/modifying tools
 such as JSLint, JSMin, JSDoc and QUnit to be compatible with Jaggery as
 well.

 [1] http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
 [2] https://code.google.com/p/jslint4java/
 [3] https://developers.google.com/closure/utilities/
 [4] http://code.google.com/p/jsdoc-toolkit/
 [5] http://docs.jquery.com/QUnit
 [6] http://www.jsunit.net/
 [7] http://code.google.com/p/jsmin-ant-task/
 [8] http://developer.yahoo.com/yui/compressor/
 [9] https://developers.google.com/closure/compiler/


 --
 *Thanks  Regards,

 Nuwan Bandara
 Associate Technical Lead  Member, MC, Development Technologies
 WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
 blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763
 9629
 *
 http://www.nuwanbando.com/




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] [Architecture] First-class Support for C-Apps in G-Reg

2012-05-12 Thread Sanjiva Weerawarana
Exactly Senaka.

I've been thinking more about this and I think we need to make the
application concept a top level G-Reg RXT and make CApp into an
implementation of an application. Its that same application that may be
consuming various APIs etc.. I'm trying to get my thoughts into a slide
deck so we can have a good discussion about it - will share it soon.

Sanjiva.

On Sat, May 12, 2012 at 11:54 PM, Senaka Fernando sen...@wso2.com wrote:

 Hi Subash,

 I believe that you are quoting a POC that we did originally. But, in the
 context of a generic C-App governance implementation,

 1. I wouldn't tie a C-App to a project. This is because a single project
 could produce more than one C-App. What do you call this in Developer
 Studio?
 2. I would move the C-App inside the application folder structure, making
 it possible for the C-App to change/evolve along with the application.
 3. We also have some interest in tying up Application in API Store with
 C-Apps, which we probably need to sort out as well (but as a part of the
 G-Reg and API Store alignment stuff).

 Thanks,
 Senaka.

 On Sat, May 12, 2012 at 5:08 PM, Subash Chaturanga sub...@wso2.comwrote:

 Hi all,
 Following is the screen shot of the $subject. In fact this is the front
 end view.

 Here, please note the newly added 3 governance artifacts.
 - Applications
 - Servers
 - Environments

 In brief,
 - We can add servers by giving a carbon server endpoint with credentials
 along with a suitable name.
 - And environments can be created and  attach multiple servers (which
 were already created) to it.
 - Then we can create our project with multiple such environments. And
 there we should give a car file location from the repository(currently).

 And the car will get deployed in the given carbon server when the project
 created.

 Hi Senaka,
 Following will be some points to be considered if greg gonna ship with
 this functionality.

 - As per your suggestion, already renamed Projecst RXT to
 Applications and the location of the car file storage.

 * The car file is currently added through a remote client. But we can
 make it done through the application RXT.
 * And the car files currently gets stored inside
  /_system/governance/carbonapps. And when the Application evolves through a
 LC, the car file not get migrated.
 But stored in a separate place as mentioned above. If the car file not
 gonna change, it is seems OK to not to migrate it to branches with LC state
 and keep it separate.
 And as it is not likely to happen, I also don't think that's a good idea
 to keep it separate. Shall we put it
 inside/applications/myapplication_1/

 Any ideas ?

 Please add any missing/required facts needs to be considered.



 Thanks
 --

 Subash Chaturanga
 Software Engineer
 WSO2 Inc. http://wso2.com

 email - sub...@wso2.com
 phone - 077 2225922




 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] What would be the WSO2 LB product version?

2012-05-11 Thread Sanjiva Weerawarana
Or maybe we should call it LB2 1.0? ;-)

On Thu, May 10, 2012 at 3:12 PM, Sameera Jayasoma same...@wso2.com wrote:



 On Thu, May 10, 2012 at 3:08 PM, Paul Fremantle p...@wso2.com wrote:

 +1 for 2.0. Or should that be +2?


 Great. We will update the version as 2.0. +2 would be perfect :)

 Thanks,
 Sameera.


 Paul


 On 10 May 2012 10:28, Sameera Jayasoma same...@wso2.com wrote:



 On Tue, May 8, 2012 at 9:17 AM, Nirmal Fernando nir...@wso2.com wrote:



 On Tue, May 8, 2012 at 12:06 AM, Sameera Jayasoma same...@wso2.comwrote:

 Hi Folks,

 At the moment the version is specified as 1.0.0-SNAPSHOT. We need to
 change this.

 We released 1.0.0, 1.0.1, 1.0.2 versions AFAIK. But in this release we
 have many more new features and enhancements.

 Shall we call 2.0? WDYT?


 +1, LB has a totally new look now :)


 Great. Shall we go ahead with 2.0? Or If you have any other concerns,
 please holler..

 Thanks,
 Sameera.


 Thanks,
 Sameera.

 --
 Sameera Jayasoma
 Technical Lead

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/




 --
 Sameera Jayasoma
 Technical Lead

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




 --
 Paul Fremantle
 CTO and Co-Founder, WSO2
 OASIS WS-RX TC Co-chair, VP, Apache Synapse

 UK: +44 207 096 0336
 US: +1 646 595 7614

 blog: http://pzf.fremantle.org
 twitter.com/pzfreo
 p...@wso2.com

 wso2.com Lean Enterprise Middleware

 Disclaimer: This communication may contain privileged or other
 confidential information and is intended exclusively for the addressee/s.
 If you are not the intended recipient/s, or believe that you may have
 received this communication in error, please reply to the sender indicating
 that fact and delete the copy you received and in addition, you should not
 print, copy, retransmit, disseminate, or otherwise use the information
 contained in this communication. Internet communications cannot be
 guaranteed to be timely, secure, error or virus-free. The sender does not
 accept liability for any errors or omissions.




 --
 Sameera Jayasoma
 Technical Lead

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Autoscaling with LXCs demo -2

2012-05-08 Thread Sanjiva Weerawarana
Yeah so Tropos is basically a new kinda IaaS and it has a controller (which
is a Carbon server) which goes in the host machine and an agent (which is
also a Carbon server) which goes inside the LXC itself. We should make a
new commons project or something and have that project take a dependency on
a version of Carbon (even an old version is fine really) from Maven.

Right??

Sanjiva.

On Mon, May 7, 2012 at 5:51 PM, Afkham Azeez az...@wso2.com wrote:

 Currently all the Tropos related code live under components/tropos. May be
 we should move it to a better place in the SVN.

 On Mon, May 7, 2012 at 4:32 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 So is Tropos effectively an IaaS (for autoscaling within a set of worker
 nodes via LXCs) .. if so we should carefully separate Tropos out as a
 separate project. In that case Tropos Controller is fine.

 Sanjiva.


 On Mon, May 7, 2012 at 9:39 AM, Afkham Azeez az...@wso2.com wrote:

 Controller might not be the best term to use, but what we discussed was,
 all this Tropos stuff is related to IaaS, and not PaaS. In PaaS, controller
 has a special meaning as per the Gartner definition  includes
 BAM/BM/IdentityMgt etc. For lack of a better term, I think calling this
 Tropos controller will be OK, and there will be no confusion since this is
 at the IaaS layer.


 On Mon, May 7, 2012 at 9:31 AM, Lahiru Sandaruwan lahi...@wso2.comwrote:



 On Mon, May 7, 2012 at 7:59 AM, Sanjiva Weerawarana 
 sanj...@wso2.comwrote:

 Damitha you guys can't take the name Stratos Controller .. that's
 what we're using for the full group of stuff that controls Stratos:
 manager, IS, G-Reg, BAM, BM etc..

  What we've decided in the last demo meeting was to call this Tropos
 controller since the Stratos controller is given to above.


 Please review the slide deck on Stratos scaling and you'll see the
 terms. We used to call that whole thing the manager but that made no sense
 because we have a thing inside called manager too.

 Sanjiva.

 On Mon, May 7, 2012 at 6:26 AM, Damitha Kumarage dami...@wso2.comwrote:

 And it was discussed that we should have a controller pack as part of
 the release

 Thanks,
 Damitha


 On Sun, May 6, 2012 at 1:43 AM, Sajith Kariyawasam 
 saj...@wso2.comwrote:

 Further, we will need to investigate as to why it takes more than
 expected time for the LB to receive the 'Join' message when an app 
 server
 is started inside a container

 Also, it was suggested that we should test this with multiple
 domains (not only AS, but also ESB.. etc)

 Regarding the introductory presentation, I think its better to add
 Agent registration part and some of the controller's functionalities
 (persistence) so that the overall picture gets more clearer.


 On Fri, May 4, 2012 at 8:52 PM, Nirmal Fernando nir...@wso2.comwrote:

 Hi All,

 Today we had another demo.

 Participants were: Azeez, Srinath, Dimuthu, Damitha, Sameera,
 Pradeep, Ranga, Lahiru, Sajith and myself.

 First we gave a brief overview of the autoscaling architecture.
 Then we started the demo.

 We were able to demo end-end (LB - Controller -- Agent) scenario
 for spawning an instance (through LB sanity check) and termination of 
 an
 instance (through scaling down call) within a LXC container.

 Few suggestions came up:

 1. Create separate carbon instances (rather than using Appservers)
 for controller and agent.
 2. Create a simple UI for controller to show instances spawned in
 each adapter, instances belong to a particular domain etc.
 3. Fixing the domain related issue in AutoscaleInMediator (This
 arose with the changes in loadbalancer.conf to reflect tenant aware 
 load
 balancing).
 4. Fixing the routing issue using Azeez's fix to Axis2.
 5. Make scaling up demonstrable using a back-end service which has
 some processing (or having a Thread.sleep(..) call).

 Please add anything I've missed!

 PS: We'll repeat the demo next week (hopefully with some more
 improvements next week, for Sanjiva, Paul and anyone interested).


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

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




 --
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 __
 Damitha Kumarage
 Technical Leader; WSO2 Inc.
 Oxygenating the Web Service Platform
 http://www.wso2.com/
 blog:
 http://damithakumarage.wordpress.com/
 __

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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc

Re: [Dev] Merging of products services?

2012-05-08 Thread Sanjiva Weerawarana
+1 to this plan .. right move IMO.

Sanjiva.

On Tue, May 8, 2012 at 3:13 PM, Selvaratnam Uthaiyashankar shan...@wso2.com
 wrote:

 Hi Folks,

 Samisa, Azzez and me had a chat about this and decided to go ahead
 with merging.

 So, release managers, please merge the product and services, and move
 the product folder to attic. You might have to check the theme of
 super tenant. It should be same as the product theme.

 Also, we should run the integration tests as tenant mode as well. i.e.
 each integration test should be run in super tenant mode (to test
 product functionality) and tenant mode (to test multi-tenancy).

 Release owners and release managers, please note.

 Regards,
 Shankar

 On Thu, Mar 22, 2012 at 8:05 PM, Afkham Azeez az...@wso2.com wrote:
  Have the respective product teams started looking into this?
 
  --
  Afkham Azeez
  Director of Architecture; WSO2, Inc.; http://wso2.com
  Member; Apache Software Foundation; http://www.apache.org/
 
  email: az...@wso2.com cell: +94 77 3320919
  blog: http://blog.afkham.org
  twitter: http://twitter.com/afkham_azeez
  linked-in: http://lk.linkedin.com/in/afkhamazeez
 
  Lean . Enterprise . Middleware
 
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 



 --
 S.Uthaiyashankar
 Senior Software Architect
 Chair, Management Committee – Cloud Technologies
 WSO2 Inc.
 http://wso2.com/ - lean . enterprise . middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Autoscaling with LXCs demo -2

2012-05-08 Thread Sanjiva Weerawarana
Nirmal that can't be right .. the newly spawned LXC instance can be running
anything, including PHP. That means there has to be something in that
(started by rc.local) that talks back to our controller and allows us to
manage it.

We need to get this terminology straight .. if that's not the agent then
what's that code called? What does the controller outside of the host do?
Where does it run?

Sanjiva.

On Tue, May 8, 2012 at 9:05 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Sanjiva,

 On Tue, May 8, 2012 at 8:40 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Yeah so Tropos is basically a new kinda IaaS and it has a controller
 (which is a Carbon server) which goes in the host machine and an agent
 (which is also a Carbon server) which goes inside the LXC itself.


 Controller resides in a separate machine, and agent resides in the host
 machine. It's the newly spawned Carbon server which resides in the LXC.


 We should make a new commons project or something and have that project
 take a dependency on a version of Carbon (even an old version is fine
 really) from Maven.

 Right??

 Sanjiva.

 On Mon, May 7, 2012 at 5:51 PM, Afkham Azeez az...@wso2.com wrote:

 Currently all the Tropos related code live under components/tropos. May
 be we should move it to a better place in the SVN.

 On Mon, May 7, 2012 at 4:32 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 So is Tropos effectively an IaaS (for autoscaling within a set of
 worker nodes via LXCs) .. if so we should carefully separate Tropos out as
 a separate project. In that case Tropos Controller is fine.

 Sanjiva.


 On Mon, May 7, 2012 at 9:39 AM, Afkham Azeez az...@wso2.com wrote:

 Controller might not be the best term to use, but what we discussed
 was, all this Tropos stuff is related to IaaS, and not PaaS. In PaaS,
 controller has a special meaning as per the Gartner definition  includes
 BAM/BM/IdentityMgt etc. For lack of a better term, I think calling this
 Tropos controller will be OK, and there will be no confusion since this is
 at the IaaS layer.


 On Mon, May 7, 2012 at 9:31 AM, Lahiru Sandaruwan lahi...@wso2.comwrote:



 On Mon, May 7, 2012 at 7:59 AM, Sanjiva Weerawarana sanj...@wso2.com
  wrote:

 Damitha you guys can't take the name Stratos Controller .. that's
 what we're using for the full group of stuff that controls Stratos:
 manager, IS, G-Reg, BAM, BM etc..

  What we've decided in the last demo meeting was to call this Tropos
 controller since the Stratos controller is given to above.


 Please review the slide deck on Stratos scaling and you'll see the
 terms. We used to call that whole thing the manager but that made no 
 sense
 because we have a thing inside called manager too.

 Sanjiva.

 On Mon, May 7, 2012 at 6:26 AM, Damitha Kumarage 
 dami...@wso2.comwrote:

 And it was discussed that we should have a controller pack as part
 of the release

 Thanks,
 Damitha


 On Sun, May 6, 2012 at 1:43 AM, Sajith Kariyawasam saj...@wso2.com
  wrote:

 Further, we will need to investigate as to why it takes more than
 expected time for the LB to receive the 'Join' message when an app 
 server
 is started inside a container

 Also, it was suggested that we should test this with multiple
 domains (not only AS, but also ESB.. etc)

 Regarding the introductory presentation, I think its better to add
 Agent registration part and some of the controller's functionalities
 (persistence) so that the overall picture gets more clearer.


 On Fri, May 4, 2012 at 8:52 PM, Nirmal Fernando 
 nir...@wso2.comwrote:

 Hi All,

 Today we had another demo.

 Participants were: Azeez, Srinath, Dimuthu, Damitha, Sameera,
 Pradeep, Ranga, Lahiru, Sajith and myself.

 First we gave a brief overview of the autoscaling architecture.
 Then we started the demo.

 We were able to demo end-end (LB - Controller -- Agent)
 scenario for spawning an instance (through LB sanity check) and 
 termination
 of an instance (through scaling down call) within a LXC container.

 Few suggestions came up:

 1. Create separate carbon instances (rather than using
 Appservers) for controller and agent.
 2. Create a simple UI for controller to show instances spawned in
 each adapter, instances belong to a particular domain etc.
 3. Fixing the domain related issue in AutoscaleInMediator (This
 arose with the changes in loadbalancer.conf to reflect tenant aware 
 load
 balancing).
 4. Fixing the routing issue using Azeez's fix to Axis2.
 5. Make scaling up demonstrable using a back-end service which
 has some processing (or having a Thread.sleep(..) call).

 Please add anything I've missed!

 PS: We'll repeat the demo next week (hopefully with some more
 improvements next week, for Sanjiva, Paul and anyone interested).


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi

Re: [Dev] Autoscaling with LXCs demo -2

2012-05-08 Thread Sanjiva Weerawarana
Nirmal what you're saying and what Azeez said are not in sync. Can you guys
get together and agree and then I'll try to map it to my mental model :).

BTW WSO2 LB can route and LB anything not just WSO2 stuff. Its just an HTTP
load balancer.

Sanjiva.

On Wed, May 9, 2012 at 5:56 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Sanjiva,

 On Tue, May 8, 2012 at 10:38 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Nirmal that can't be right .. the newly spawned LXC instance can be
 running anything, including PHP.


 True that!

 That means there has to be something in that (started by rc.local) that
 talks back to our controller and allows us to manage it.


 In the case of WSO2 servers it's to the WSO2 LB, that the newly started
 server get joined. In the case of PHP, AFAIK there's a different LB.

 As per now, Controller only manages, from which adapter it should ask to
 spawn the new instance, from which adapter it should ask to terminate an
 existing instance.

 To be more clearer Controller talks only to Agents in each host machine,
 not to the each LXC in a host machine. It's the respective LB talks with
 newly spawned instances.

 Do you prefer Controller to have control over LXCs too?


 We need to get this terminology straight .. if that's not the agent then
 what's that code called? What does the controller outside of the host do?
 Where does it run?

 Sanjiva.

 On Tue, May 8, 2012 at 9:05 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Sanjiva,

 On Tue, May 8, 2012 at 8:40 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Yeah so Tropos is basically a new kinda IaaS and it has a controller
 (which is a Carbon server) which goes in the host machine and an agent
 (which is also a Carbon server) which goes inside the LXC itself.


 Controller resides in a separate machine, and agent resides in the host
 machine. It's the newly spawned Carbon server which resides in the LXC.


 We should make a new commons project or something and have that project
 take a dependency on a version of Carbon (even an old version is fine
 really) from Maven.

 Right??

 Sanjiva.

 On Mon, May 7, 2012 at 5:51 PM, Afkham Azeez az...@wso2.com wrote:

 Currently all the Tropos related code live under components/tropos.
 May be we should move it to a better place in the SVN.

 On Mon, May 7, 2012 at 4:32 PM, Sanjiva Weerawarana 
 sanj...@wso2.comwrote:

 So is Tropos effectively an IaaS (for autoscaling within a set of
 worker nodes via LXCs) .. if so we should carefully separate Tropos out 
 as
 a separate project. In that case Tropos Controller is fine.

 Sanjiva.


 On Mon, May 7, 2012 at 9:39 AM, Afkham Azeez az...@wso2.com wrote:

 Controller might not be the best term to use, but what we discussed
 was, all this Tropos stuff is related to IaaS, and not PaaS. In PaaS,
 controller has a special meaning as per the Gartner definition  
 includes
 BAM/BM/IdentityMgt etc. For lack of a better term, I think calling this
 Tropos controller will be OK, and there will be no confusion since this 
 is
 at the IaaS layer.


 On Mon, May 7, 2012 at 9:31 AM, Lahiru Sandaruwan 
 lahi...@wso2.comwrote:



 On Mon, May 7, 2012 at 7:59 AM, Sanjiva Weerawarana 
 sanj...@wso2.com wrote:

 Damitha you guys can't take the name Stratos Controller ..
 that's what we're using for the full group of stuff that controls
 Stratos: manager, IS, G-Reg, BAM, BM etc..

  What we've decided in the last demo meeting was to call this
 Tropos controller since the Stratos controller is given to above.


 Please review the slide deck on Stratos scaling and you'll see the
 terms. We used to call that whole thing the manager but that made no 
 sense
 because we have a thing inside called manager too.

 Sanjiva.

 On Mon, May 7, 2012 at 6:26 AM, Damitha Kumarage dami...@wso2.com
  wrote:

 And it was discussed that we should have a controller pack as
 part of the release

 Thanks,
 Damitha


 On Sun, May 6, 2012 at 1:43 AM, Sajith Kariyawasam 
 saj...@wso2.com wrote:

 Further, we will need to investigate as to why it takes more
 than expected time for the LB to receive the 'Join' message when an 
 app
 server is started inside a container

 Also, it was suggested that we should test this with multiple
 domains (not only AS, but also ESB.. etc)

 Regarding the introductory presentation, I think its better to
 add Agent registration part and some of the controller's 
 functionalities
 (persistence) so that the overall picture gets more clearer.


 On Fri, May 4, 2012 at 8:52 PM, Nirmal Fernando nir...@wso2.com
  wrote:

 Hi All,

 Today we had another demo.

 Participants were: Azeez, Srinath, Dimuthu, Damitha, Sameera,
 Pradeep, Ranga, Lahiru, Sajith and myself.

 First we gave a brief overview of the autoscaling architecture.
 Then we started the demo.

 We were able to demo end-end (LB - Controller -- Agent)
 scenario for spawning an instance (through LB sanity check) and 
 termination
 of an instance (through scaling down call) within a LXC container

Re: [Dev] Autoscaling with LXCs demo -2

2012-05-07 Thread Sanjiva Weerawarana
So is Tropos effectively an IaaS (for autoscaling within a set of worker
nodes via LXCs) .. if so we should carefully separate Tropos out as a
separate project. In that case Tropos Controller is fine.

Sanjiva.

On Mon, May 7, 2012 at 9:39 AM, Afkham Azeez az...@wso2.com wrote:

 Controller might not be the best term to use, but what we discussed was,
 all this Tropos stuff is related to IaaS, and not PaaS. In PaaS, controller
 has a special meaning as per the Gartner definition  includes
 BAM/BM/IdentityMgt etc. For lack of a better term, I think calling this
 Tropos controller will be OK, and there will be no confusion since this is
 at the IaaS layer.


 On Mon, May 7, 2012 at 9:31 AM, Lahiru Sandaruwan lahi...@wso2.comwrote:



 On Mon, May 7, 2012 at 7:59 AM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Damitha you guys can't take the name Stratos Controller .. that's what
 we're using for the full group of stuff that controls Stratos: manager,
 IS, G-Reg, BAM, BM etc..

  What we've decided in the last demo meeting was to call this Tropos
 controller since the Stratos controller is given to above.


 Please review the slide deck on Stratos scaling and you'll see the
 terms. We used to call that whole thing the manager but that made no sense
 because we have a thing inside called manager too.

 Sanjiva.

 On Mon, May 7, 2012 at 6:26 AM, Damitha Kumarage dami...@wso2.comwrote:

 And it was discussed that we should have a controller pack as part of
 the release

 Thanks,
 Damitha


 On Sun, May 6, 2012 at 1:43 AM, Sajith Kariyawasam saj...@wso2.comwrote:

 Further, we will need to investigate as to why it takes more than
 expected time for the LB to receive the 'Join' message when an app server
 is started inside a container

 Also, it was suggested that we should test this with multiple domains
 (not only AS, but also ESB.. etc)

 Regarding the introductory presentation, I think its better to add
 Agent registration part and some of the controller's functionalities
 (persistence) so that the overall picture gets more clearer.


 On Fri, May 4, 2012 at 8:52 PM, Nirmal Fernando nir...@wso2.comwrote:

 Hi All,

 Today we had another demo.

 Participants were: Azeez, Srinath, Dimuthu, Damitha, Sameera,
 Pradeep, Ranga, Lahiru, Sajith and myself.

 First we gave a brief overview of the autoscaling architecture. Then
 we started the demo.

 We were able to demo end-end (LB - Controller -- Agent) scenario
 for spawning an instance (through LB sanity check) and termination of an
 instance (through scaling down call) within a LXC container.

 Few suggestions came up:

 1. Create separate carbon instances (rather than using Appservers)
 for controller and agent.
 2. Create a simple UI for controller to show instances spawned in
 each adapter, instances belong to a particular domain etc.
 3. Fixing the domain related issue in AutoscaleInMediator (This arose
 with the changes in loadbalancer.conf to reflect tenant aware load
 balancing).
 4. Fixing the routing issue using Azeez's fix to Axis2.
 5. Make scaling up demonstrable using a back-end service which has
 some processing (or having a Thread.sleep(..) call).

 Please add anything I've missed!

 PS: We'll repeat the demo next week (hopefully with some more
 improvements next week, for Sanjiva, Paul and anyone interested).


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

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




 --
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 __
 Damitha Kumarage
 Technical Leader; WSO2 Inc.
 Oxygenating the Web Service Platform
 http://www.wso2.com/
 blog:
 http://damithakumarage.wordpress.com/
 __

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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880| +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/

 Lean . Enterprise . Middleware

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




 --
 --
 Lahiru Sandaruwan
 Software Engineer,
 Cloud Team,
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 email: lahi...@wso2.com cell: (+94) 773 325 954
 blog: http://lahiruwrites.blogspot.com/
 twitter: http://twitter.com/lahirus
 linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: [Dev] Autoscaling with LXCs demo -2

2012-05-06 Thread Sanjiva Weerawarana
Damitha you guys can't take the name Stratos Controller .. that's what
we're using for the full group of stuff that controls Stratos: manager,
IS, G-Reg, BAM, BM etc..

Please review the slide deck on Stratos scaling and you'll see the terms.
We used to call that whole thing the manager but that made no sense because
we have a thing inside called manager too.

Sanjiva.

On Mon, May 7, 2012 at 6:26 AM, Damitha Kumarage dami...@wso2.com wrote:

 And it was discussed that we should have a controller pack as part of the
 release

 Thanks,
 Damitha


 On Sun, May 6, 2012 at 1:43 AM, Sajith Kariyawasam saj...@wso2.comwrote:

 Further, we will need to investigate as to why it takes more than
 expected time for the LB to receive the 'Join' message when an app server
 is started inside a container

 Also, it was suggested that we should test this with multiple domains
 (not only AS, but also ESB.. etc)

 Regarding the introductory presentation, I think its better to add Agent
 registration part and some of the controller's functionalities
 (persistence) so that the overall picture gets more clearer.


 On Fri, May 4, 2012 at 8:52 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi All,

 Today we had another demo.

 Participants were: Azeez, Srinath, Dimuthu, Damitha, Sameera, Pradeep,
 Ranga, Lahiru, Sajith and myself.

 First we gave a brief overview of the autoscaling architecture. Then we
 started the demo.

 We were able to demo end-end (LB - Controller -- Agent) scenario for
 spawning an instance (through LB sanity check) and termination of an
 instance (through scaling down call) within a LXC container.

 Few suggestions came up:

 1. Create separate carbon instances (rather than using Appservers) for
 controller and agent.
 2. Create a simple UI for controller to show instances spawned in each
 adapter, instances belong to a particular domain etc.
 3. Fixing the domain related issue in AutoscaleInMediator (This arose
 with the changes in loadbalancer.conf to reflect tenant aware load
 balancing).
 4. Fixing the routing issue using Azeez's fix to Axis2.
 5. Make scaling up demonstrable using a back-end service which has some
 processing (or having a Thread.sleep(..) call).

 Please add anything I've missed!

 PS: We'll repeat the demo next week (hopefully with some more
 improvements next week, for Sanjiva, Paul and anyone interested).


 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

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




 --
 *Sajith Kariyawasam*
 *Senior Software Engineer; WSO2, Inc.; http://wso2.com*


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




 --
 __
 Damitha Kumarage
 Technical Leader; WSO2 Inc.
 Oxygenating the Web Service Platform
 http://www.wso2.com/
 blog:
 http://damithakumarage.wordpress.com/
 __

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Possible solution for routing messages from the LB into the Carbon processes within the LXCs

2012-05-01 Thread Sanjiva Weerawarana
This is awesome Azeez - much better than adding routes to the LB node!

I've been thinking about the network address problem .. what set of IPs to
use for the LXCs. Using 10.* or 192.168.* requires manual intervention
because anything we pick may be an already used network the organization ..
and those will then become inaccessible to any app running inside an LXC.

I looked at 169.254 and it looks like that's an option. See [1][2][3] ..
its called a link local address and it seems like the right thing for us
to use. So we'd give say 169.254.99.* for the internal boxes and have
iptables forward the ports to those. Looks like we can simply bring up the
LXC, have it pick up whatever IP in the 169.254 range and then add a
default route to the host IP and register itself with the host (host IP
would have to be a boot param).

[1] http://en.wikipedia.org/wiki/Private_network
[2] http://tools.ietf.org/html/rfc5735
[3] http://tools.ietf.org/html/rfc3927

Sanjiva.

On Tue, May 1, 2012 at 11:05 PM, Afkham Azeez az...@wso2.com wrote:

 I have got this working for the well-known membership scheme. Let's test
 it with the LXC setup tomorrow. The route addition to the LB machine is not
 a scalable approach since we will need to do this in all worker node
 machines as well since the members in a cluster should be able to
 communicate with each other.


 On Tue, May 1, 2012 at 9:25 PM, Afkham Azeez az...@wso2.com wrote:

 I just went through the Tribes code and figured out that the local member
 host and bind address can be configured to be different values. It is the
 localMemberHost that is advertised by Tribes while
 the localMemberBindAddress is the IP address used for binding the server
 socket. I will make the necessary changes to Axis2 and inform this list. My
 plan is to add a new optional parameter called localMemberBindAddress to
 the axis2.xml's clustering section, in addition to the already existing
 localMemberHost. If localMemberBindAddress is not specified, we assume that
 it is same as the localMemberHost.

 e.g.
  parameter name=localMemberHost10.100.3.67/parameter

 parameter name=*localMemberBindAddress*192.168.1.121/parameter


 Then we have to setup iptables on the physical machine to do port
 forwarding. In this model, we have to make sure that all Carbon processes
 started within LXCs have unique ports. Otherwise the port forwarding will
 not work.

 Thoughts welcome.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Autoscaling with LXCs - end to end demo

2012-04-25 Thread Sanjiva Weerawarana
Excellent! I look forward to seeing the next iteration ...

On Wed, Apr 25, 2012 at 9:16 PM, Afkham Azeez az...@wso2.com wrote:

 Today we were able to see an end to end demo where the autoscaler talked
 to the Tropos controller, and the controller spawned LXC instances! Tropos
 is the name we've been using for this 'thing' we are doing with
 LXC+autoscaler+LB+agents :) If there is a better name, please come up with
 suggestions :)

 Some stuff were done manually to get the end to end flow working, but the
 team got it working. Good job folks!

 Damitha et. al., please schedule another demo for all interested parties
 next week. It would be ideal if the manual steps are fixed to be done
 automatically with scripts etc.

 Thanks
 Azeez

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] How to configure a LB cluster?

2012-04-15 Thread Sanjiva Weerawarana
You don't set them up that way. If you have 2 LBs, then there are two modes:

1. they'd be mapped to the same IP and one will take over for the other via
Linux HA or some similar mechanism. So as far as the service nodes go
there's only one LB.
2. they'd be running hot-hot and clients will manage routing via (probably)
DNS round robin type scheme


Alternatively, you can set up another LB (maybe hardware one) in front of
our 2 LBs and then the service nodes would have that name/IP as the
endpoint. If you want that to have HA then you have to go to (1) or (2).

Sanjiva.

On Tue, Apr 10, 2012 at 4:39 PM, Nirmal Fernando nir...@wso2.com wrote:

 Hi All,

 Say I have a primary and secondary LBs. How to configure them such that
 LBs know each other's existence?

 PS: I know how to configure a single LB, and cluster of other instances.
 There we map LB's public IP in axis2.xml of other instances. I tried same
 way with 2 LBs, but it failed to build AxisConfig and I think it's not the
 correct way.

 --

 Thanks  regards,
 Nirmal

 Software Engineer- Platform Technologies Team, WSO2 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.com/

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] API Manager Build - 27/03/2012

2012-04-02 Thread Sanjiva Weerawarana
Guys I don't see version labels .. is this M1?

On Tue, Mar 27, 2012 at 9:01 PM, Prabath Siriwardena prab...@wso2.comwrote:

 Hi Sandapa,

 Please find the latest build for testing at [1]...

 --
 Thanks  Regards,
 Prabath

 [1]: http://people.wso2.com/~prabath/api-manager/

 Mobile : +94 71 809 6732

 http://blog.facilelogin.com
 http://RampartFAQ.com


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] API Manager - Pre alpha 1 available for download

2012-04-02 Thread Sanjiva Weerawarana
Sumedha any reason to not call this M1? Not sure what semantic pre alpha
1 means!

On Mon, Apr 2, 2012 at 8:38 AM, Sumedha Rubasinghe sume...@wso2.com wrote:

 Pre alpha 1 pack of WSO2 API Manager can be downloaded from -
 http://people.wso2.com/~sumedha/builds/am/02-04-2012/wso2am-1.0.0-SNAPSHOT.zip

 A README on how to test functionality is available inside
 samples/TwitterSearch (also available @
 http://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/apimgt/modules/samples/TwitterSearch/README.txt
  )

 We welcome feedback in the form of JIRA issues via
 https://wso2.org/jira/browse/APISTORE

 --
 API Team


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Dev] Let's increase default value for session timeout

2012-04-01 Thread Sanjiva Weerawarana
Guys we also ship the product with admin/admin as the password. I'm willing
to bet there are tons of production machines with this unchanged :(.

If the security risk at hand is that someone will leave their machine
unlocked and someone else can come in and access the admin console because
the session didn't time out honestly for me that's a theoretical problem.
Shouldn't the person have a screen saver + lock on their machine?? Any real
admin would.

I'm +1 for changing the default to 30 mins. The session growth scenario is
real but again very unlikely for the console .. many people don't log in at
once to a boring server console, even if its as hot as ours!

Sanjiva.

On Mon, Apr 2, 2012 at 1:18 AM, Amila Jayasekara ami...@wso2.com wrote:

 On Sun, Apr 1, 2012 at 11:51 PM, Tharindu Mathew thari...@wso2.com
 wrote:
 
 
  On Sun, Apr 1, 2012 at 9:26 PM, Amila Jayasekara ami...@wso2.com
 wrote:
 
  On Fri, Mar 30, 2012 at 3:34 PM, Dimuthu Leelarathne dimut...@wso2.com
 
  wrote:
   Hi,
  
   I am - 0 for this. There are some negative effects of increasing
 session
   timeout.
  
   1) Objects we keep in the session can grow. This will be multiplied by
   the
   number of users with active sessions
   2) Security risk is marginally increase.
 
  I agree with Dimuthu. In default implementation we should ship
  products with maximum security. If needed users can change security
  levels by modifying config files.
 
  I disagree. In default implementation we should ship products with
 maximum
  usability. If needed users can change security by modifying config files.

 Hi Tharindu,

 I was not comparing security and usability. Of course the product must
 be usable with maximum security.
 If we ship the product with medium/low security level, most probably,
 users will get to know that, they have to tweak some configurations
 in-order to achieve maximum security, only after facing an attack.
 Therefore it is better to ship default configurations with maximum
 available security. When I say maximum security it doesnt mean user is
 not allowed to login. User will get all available functionalities with
 maximum security. This is the norm followed by most of other software
 products. (Including Operating Systems, such as Windows)
 E.g :-
Shipping product with support for only strong SSL ciphers. If a
 customer want to support for medium/low SSL cipher, he/she have to
 change configurations. But in default configuration, we should only
 support strong SSL ciphers, so that an attacker will be unable to
 carry out a brute force attack.

 For this particular scenario, one vulnerability I see is, some
 UN-authorized user gaining access to management console after keeping
 user's machine unlocked for some time. I am not quite sure about the
 correct value for the session time. But if we are increasing that
 value, we need to reason out the “new value” properly, based on real
 usage.

 Thanks
 AmilaJ

 
  Thanks
  AmilaJ
 
  
   tx,
   dimuthu
  
  
  
   On Fri, Mar 30, 2012 at 3:26 PM, Amila Suriarachchi am...@wso2.com
   wrote:
  
  
  
   On Thu, Mar 29, 2012 at 3:21 PM, Tharindu Mathew thari...@wso2.com
   wrote:
  
   Hi,
  
   Let's do $subject. What we ship by default is a toy value good for
   running samples.
  
   When we are doing some lengthy work it will definitely timeout in
 the
   middle of work and this is really frustrating for users.
  
   It should at least be 30 mins IMO
  
  
   +1
  
   thanks,
   Amila.
  
  
   --
   Regards,
  
   Tharindu
  
   blog: http://mackiemathew.com/
   M: +9459908
  
  
   ___
   Dev mailing list
   Dev@wso2.org
   http://wso2.org/cgi-bin/mailman/listinfo/dev
  
  
  
  
   --
   Amila Suriarachchi
  
   Software Architect
   WSO2 Inc. ; http://wso2.com
   lean . enterprise . middleware
  
   phone : +94 71 3082805
  
  
   ___
   Dev mailing list
   Dev@wso2.org
   http://wso2.org/cgi-bin/mailman/listinfo/dev
  
  
  
  
   --
   Dimuthu Leelarathne
   Technical Lead
  
   WSO2, Inc. (http://wso2.com)
   email: dimut...@wso2.com
  
   Lean . Enterprise . Middleware
  
  
   ___
   Dev mailing list
   Dev@wso2.org
   http://wso2.org/cgi-bin/mailman/listinfo/dev
  
 
 
 
  --
  Mobile : +94773330538
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 
 
 
 
  --
  Regards,
 
  Tharindu
 
  blog: http://mackiemathew.com/
  M: +9459908
 



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware

Re: [Dev] [Architecture] API Manager pre-M1 pack

2012-03-20 Thread Sanjiva Weerawarana
On Wed, Mar 21, 2012 at 8:40 AM, Prabath Siriwardena prab...@wso2.comwrote:

  API Manager : https://localhost:9443/carbon


 Above context name is not consistent given the context names below.  Why
 not call it https://localhost:9443/ https://localhost:9443/carbon
 apimanager


 There is no separate web app for API Manager - its the carbon admin
 console...


Then lets not change the context for that. We will (eventually) have
another role and UI for API managers .. plus calling the admin console
something different is a bad idea because you can (and need to be able to)
admin the normal server stuff.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

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


Re: [Carbon-dev] Orbit, Carbon and Graphite - New Face of Carbon SVN Repository.

2012-02-12 Thread Sanjiva Weerawarana
Great job guys :). This will help tremendously as we go forward with Carbon
becoming more and more of a stable platform!

Sanjiva.

On Mon, Feb 13, 2012 at 12:25 AM, Sameera Jayasoma same...@wso2.com wrote:

 Hi Devs,

 We have now completed the SVN restructure effort. Please checkout
 orbit[1], carbon[2] and graphite[3] svn repositories. Carefully go through
 the following instructions before building.

 1) Take fresh checkouts of the orbit[1], carbon[2] and graphite[3] svn
 repositories. Avoid using the existing local carbon checkout, if any.
 2) Backup your .m2 repository and start the build with a fresh one. This
 step is optional.
 3) Build orbit[1] project.
 4) Build carbon[2] project.
 5) Build graphite[3] project.

 Apart from some test failures, build is stable now.

 I would like to thank Pradeep, Dileepa and Chethiya for their help to get
 this done during the past two days.

 Thanks,
 Sameera.

 [1] https://svn.wso2.org/repos/wso2/trunk/orbit/
 [2] https://svn.wso2.org/repos/wso2/trunk/carbon/
 [3] https://svn.wso2.org/repos/wso2/trunk/graphite/

 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Orbit, Carbon and Graphite - New Face of Carbon SVN Repository.

2012-02-12 Thread Sanjiva Weerawarana
Hmmm is there a future step we need to take to make each of the repos into
separate projects? That is:

/repos/wso2/{orbit,carbon,graphite}/{trunk,branches,tags}

I guess without that we still have to branch etc. all together. I guess
this change is the one which is a lot more dramatic in terms of impact to
support etc..

Sanjiva.

On Mon, Feb 13, 2012 at 5:00 AM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Great job guys :). This will help tremendously as we go forward with
 Carbon becoming more and more of a stable platform!

 Sanjiva.

 On Mon, Feb 13, 2012 at 12:25 AM, Sameera Jayasoma same...@wso2.comwrote:

 Hi Devs,

 We have now completed the SVN restructure effort. Please checkout
 orbit[1], carbon[2] and graphite[3] svn repositories. Carefully go through
 the following instructions before building.

 1) Take fresh checkouts of the orbit[1], carbon[2] and graphite[3] svn
 repositories. Avoid using the existing local carbon checkout, if any.
 2) Backup your .m2 repository and start the build with a fresh one. This
 step is optional.
 3) Build orbit[1] project.
 4) Build carbon[2] project.
 5) Build graphite[3] project.

 Apart from some test failures, build is stable now.

 I would like to thank Pradeep, Dileepa and Chethiya for their help to get
 this done during the past two days.

 Thanks,
 Sameera.

 [1] https://svn.wso2.org/repos/wso2/trunk/orbit/
 [2] https://svn.wso2.org/repos/wso2/trunk/carbon/
 [3] https://svn.wso2.org/repos/wso2/trunk/graphite/

 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/


 Lean . Enterprise . Middleware




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] [Proposal] Restructuring the SVN repository of Carbon

2012-02-06 Thread Sanjiva Weerawarana
+1 for going ahead (without opinion on timing) and to Amila's suggestion of
making the orbit stuff another TLP.

I'm +1 for graphite per Senaka for X.

Sanjiva.

On Mon, Feb 6, 2012 at 4:03 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi all,

 +1.

 When installing other features to different products, it should mention
 the carbon core version. Currently, the carbon core is the intersection of
 products, so there is no problem at all. But if we go ahead with minimizing
 carbon-core it can be tricky to handle. Just had an offline chat with
 Sameera, and according to him P2 handles it nicely.

 thanks,
 dimuthu

 On Mon, Feb 6, 2012 at 8:24 AM, Sumedha Rubasinghe sume...@wso2.comwrote:

 +1 for the idea. B4 doing the actual change, how about running through
 different scenarios (like Amila mentioned) - like how we did for branching
 approach. Figuring out problems later would be costly in terms of time.

 /sumedha

 On Sat, Feb 4, 2012 at 5:14 PM, Sameera Jayasoma same...@wso2.comwrote:

 *Objective*:
 Make Carbon core a top level project in WSO2 trunk. At the moment
 complete Carbon platform code lies under
 https://svn.wso2.org/repos/wso2/trunk/carbon/. This structure has its
 own problems.

 *Motivations*:
 1) Carbon core can be treated as a separate product which has its own
 dependencies, orbit and Carbon core can be released independently of other
 Carbon components, products.
 2) To ensure that the Carbon based products can depend on a stable, well
 tested and released version of Carbon instead of the Carbon trunk.
 3) This will also ensure the stability of the Carbon based products,
 because they are no longer depend on the Carbon trunk which might undergo
 drastic changes time to time.

 *Execution*:
 Here is my proposal.
 1) We need to create two top level directories for Carbon and for
 components, features and Carbon based products. Sample structure is shown
 below.

 carbon
 |--dependencies
 |--orbits
 |--core (core set of bundles.)
 |--features (Carbon core features)
 |--product (Carbon product)

 X (TODO we need to come up with a name. How about silicon. Dr. Sanjiva
 once mentioned this name. :) )
 |--dependencies
 |--orbits
 |--components
 |--features
 |--products

 2) In order to change the existing svn structure to a structure like
 above, we need to hold all the commits, say for two to three days and
 restructure the SVN, test properly and release for commits.

 Please feel free to comment.

 Thanks,
 Sameera.

 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




 --
 /sumedha
 +94 773017743

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




 --
 Dimuthu Leelarathne
 Technical Lead

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com


 Lean . Enterprise . Middleware


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] [Proposal] Restructuring the SVN repository of Carbon

2012-02-06 Thread Sanjiva Weerawarana
Totally absolutely -1 :). If you want to take each FEATURE and make it into
a TLP I'm totally +1, however not a product. That would go against our
recent attempts at (re-)organizing around technology areas. A product for
us is simply a pre-packed and tested set of features and I want to go in
the opposite direction: Automate product creation to the point where
everything from docs to testing is automated. Then the manual work goes
towards features and products are simply distribution vehicles.

Sanjiva.

On Mon, Feb 6, 2012 at 9:37 PM, Tharindu Mathew thari...@wso2.com wrote:

 As per Amila's suggestion, we can also start moving products also similar
 to carbon... have their own trunk and branch...

 IMO, products should own which feature version they want to depend on.
 They should only move to a new feature if they need a fix/ improvement in
 the new version.

 This would mean that Carbon and Feature versions are independent.

 On Mon, Feb 6, 2012 at 9:25 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 +1 for going ahead (without opinion on timing) and to Amila's suggestion
 of making the orbit stuff another TLP.

 I'm +1 for graphite per Senaka for X.

 Sanjiva.

 On Mon, Feb 6, 2012 at 4:03 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

  Hi all,

 +1.

 When installing other features to different products, it should mention
 the carbon core version. Currently, the carbon core is the intersection of
 products, so there is no problem at all. But if we go ahead with minimizing
 carbon-core it can be tricky to handle. Just had an offline chat with
 Sameera, and according to him P2 handles it nicely.

 thanks,
 dimuthu

 On Mon, Feb 6, 2012 at 8:24 AM, Sumedha Rubasinghe sume...@wso2.comwrote:

 +1 for the idea. B4 doing the actual change, how about running through
 different scenarios (like Amila mentioned) - like how we did for branching
 approach. Figuring out problems later would be costly in terms of time.

 /sumedha

 On Sat, Feb 4, 2012 at 5:14 PM, Sameera Jayasoma same...@wso2.comwrote:

 *Objective*:
 Make Carbon core a top level project in WSO2 trunk. At the moment
 complete Carbon platform code lies under
 https://svn.wso2.org/repos/wso2/trunk/carbon/. This structure has its
 own problems.

 *Motivations*:
 1) Carbon core can be treated as a separate product which has its own
 dependencies, orbit and Carbon core can be released independently of other
 Carbon components, products.
 2) To ensure that the Carbon based products can depend on a stable,
 well tested and released version of Carbon instead of the Carbon trunk.
 3) This will also ensure the stability of the Carbon based products,
 because they are no longer depend on the Carbon trunk which might undergo
 drastic changes time to time.

 *Execution*:
 Here is my proposal.
 1) We need to create two top level directories for Carbon and for
 components, features and Carbon based products. Sample structure is shown
 below.

 carbon
 |--dependencies
 |--orbits
 |--core (core set of bundles.)
 |--features (Carbon core features)
 |--product (Carbon product)

 X (TODO we need to come up with a name. How about silicon. Dr. Sanjiva
 once mentioned this name. :) )
 |--dependencies
 |--orbits
 |--components
 |--features
 |--products

 2) In order to change the existing svn structure to a structure like
 above, we need to hold all the commits, say for two to three days and
 restructure the SVN, test properly and release for commits.

 Please feel free to comment.

 Thanks,
 Sameera.

 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




 --
 /sumedha
 +94 773017743

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




 --
 Dimuthu Leelarathne
 Technical Lead

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com


 Lean . Enterprise . Middleware


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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/


 Lean . Enterprise . Middleware

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




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/
 M: +9459908


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

Re: [Carbon-dev] [ANN] Jaggery Milestone-2 Released !

2012-01-31 Thread Sanjiva Weerawarana
Carbon probably :( ...

Once we refactor Carbon to have a true core this should go down
significantly. Carbon base should become Equinox + Tomcat + a few bundles ..

Sanjiva.

On Tue, Jan 31, 2012 at 8:54 PM, Samisa Abeysinghe sam...@wso2.com wrote:

 Downloading to try it out. But why is this 102MB?

 On Tue, Jan 31, 2012 at 7:29 PM, Nuwan Bandara nu...@wso2.com wrote:

 *Introducing Jaggery*

 Jaggery is a framework to write webapps and HTTP-focused web services for
 all aspects of the application: front-end, communication, Server-side logic
 and persistence in pure Javascript. One of the intents of this framework is
 to reduce the gap between writing web apps and web services.

 This Framework uses Mozilla Rhino to process Javascript at the server and
 also contains a powerful caching layer with the support of Rhino compiled
 scripts; so its as fast as the JVM. As few key features, Jaggery has native
 JSON support and also E4X support for XML manipulation.

 M2 can be downloaded at
 http://dist.wso2.org/products/jaggery/dl/jaggery-1.0.0-SNAPSHOT_M2.zip

 *Say Hello to Jaggery*

 html

 body

 h1

 %

var name = 'Jaggery';

print(Hello  + name);

 %

 /h1

 /body

 /html

 *Setting up Jaggery*

1. Extract jaggery-1.0.0-SNAPSHOT_M2.zip
2. This will generate a bin directory with execution scripts.
3. Run sh bin/wso2server.sh (bin/wso2server.bat) command to start the
server.
4. Upon successful startup, {http://localhost:9763/docs} should take
you to the documentation Jaggery App.

 *Key Features*


- Compose server side scripts purely in javascript (.JSS)
- Script caching support
- Command line tool for easy development
- Try-it tool for web based script validation
- Includes support for,
   - HTTP request/response and session
   - JSON send/receive
   - Server side XMLHttpRequest
   - Web Service invocation
   - File I/O
   - Email
   - Atom
   - Read/write feed
   - Relational database
   - WSO2 Registry/Repository
   - Open Social gadgets

 For more information and samples you can refer to Jaggery docs at (
 http://{yourip}:9763/docs/documentation.jsshttp://localhost:9763/docs/documentation.jss
 ) which are shipped with the distribution

 Thanks,
 *Jaggery Development Team*

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Bad API in registry.core HandlerManager

2012-01-29 Thread Sanjiva Weerawarana
No ack .. Azeez maybe you should create an issue .. that way it doesn't get
lost!

On Thu, Jan 26, 2012 at 5:38 PM, Afkham Azeez az...@wso2.com wrote:

 This class in in really bad shape. It has about 20 maps each correspond to
 a method, and in the addHandler methods check for the method doing a String
 comparison  add to the relevant map! Really bad OO design. I guess
 introducing another class which has the Map  method will greatly reduce
 the LOC in this class.


 On Thu, Jan 26, 2012 at 5:31 PM, Afkham Azeez az...@wso2.com wrote:

 See attached screenshot. This type of code should be properly refactored
 to use enums.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Microsft excel adapters

2012-01-17 Thread Sanjiva Weerawarana
Don't we have a feature in DS to support this? We have it for Google docs ..

On Tue, Jan 17, 2012 at 10:06 PM, Hiranya Jayathilaka hira...@wso2.comwrote:



 On Tue, Jan 17, 2012 at 2:20 PM, gnanaguru.sattanat...@wipro.com wrote:

  Hi 

 ** **

 I am in a scenario where I need to extract and push data from Excel
 Sheets. I preferred wso2 for this. In what way WSO2 ESB supports this. You
 have any specific adapter for this?


 You can use VFS transport with a custom message builder to read Excel
 sheets.

 Thanks,
 Hiranya


  

 ** **

 Please help out.

 ** **

 ** **

 Regards

 Guru

 * Please do not print this email unless it is absolutely necessary. *

 The information contained in this electronic message and any attachments
 to this message are intended for the exclusive use of the addressee(s) and
 may contain proprietary, confidential or privileged information. If you are
 not the intended recipient, you should not disseminate, distribute or copy
 this e-mail. Please notify the sender immediately and destroy all copies of
 this message and any attachments.

 WARNING: Computer viruses can be transmitted via email. The recipient
 should check this email and any attachments for the presence of viruses.
 The company accepts no liability for any damage caused by any virus
 transmitted by this email.

 www.wipro.com

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




 --
 Hiranya Jayathilaka
 Associate Technical Lead;
 WSO2 Inc.;  http://wso2.org
 E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
 Blog: http://techfeast-hiranya.blogspot.com

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] AppDev Deployment Model and Gadget Server Redesign

2011-11-27 Thread Sanjiva Weerawarana
/

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




 --
 Ruchira Wageesha
 Software Engineer - WSO2 Inc. www.wso2.com

 Email: ruch...@wso2.com Blog: ruchirawagee...@blogspot.com
 Mobile: +94775493444

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] What is the right place to add AppDev Code

2011-11-23 Thread Sanjiva Weerawarana
+1 for going ahead with Watalappan :). I can see a nice sweet logo out of
it too.

On Thu, Nov 24, 2011 at 9:53 AM, Nuwan Bandara nu...@wso2.com wrote:

 Hi All,

 We are planing to formally create milestone releases for AppDev work.
 In-order to do that we need to finalize on few things.

1. Whats the ideal place we need to put the AppDev code.
   - IMO we can have the code in components, mainly because its
   developed as a library or a framework to create JS Apps. We should make 
 it
   a P2 feature, where users/developers can install, and have the AppDev
   runtime in their own Carbon Server
2. We need to have a proper name for it. (or formalize the current one
aka Watalappan)
3. We need to have this in trunk, but will be releasing against
branched dependencies (?), mainly because there wont be a release happening
soon enough from the trunk.

 In-order to move forward we need to finalize on these items, at the moment
 this code is in the scratch area.

 --
 *Thanks  Regards,

 Nuwan Bandara
 Senior Software Engineer
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

 http://nuwan.bandara.co
 *
 http://www.nuwanbando.com/

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] Status of JavaScript Appdev Project

2011-11-03 Thread Sanjiva Weerawarana
Excellent progress Ruchira.

We need to have a discussion on tooling .. can you please grab me for 5-10
mins today? Lets come up with a plan to build a plan :).

On the JSS model below, what happens to any code that's in the file outside
of any function definitions?

Also, should we consider placing JS files that execute on the server like
this in a separate location rather than use a different extension? That's
the model with servlets - and its useful and necessary when the server side
code starts importing other stuff to use. We could simply use WEB-INF too
as that special directory ..

Sanjiva.

On Thu, Nov 3, 2011 at 2:29 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi,

 I have added all existing hostobjects(except global System HO) of WSO2
 Mashup Server to the Appdev environment. Several hostobjects such as
 WSRequest, was modified to act independently of carbon environment. XHR
 hostobject was also added which allows you to call sync/async HTTP calls
 using httpcore-nio.

 For the *.jss stuff, JSON support was also implemented. In a *.jss, we can
 implement doGet, doPost etc. methods which corresponds to relevant HTTP
 methods. So, when an HTTP request comes to a *.jss file, then request will
 be dispatched to the relavant JavaScript method in the *.jss file. There,
 you have access to the *request*, *response* and *session* objects.

 If the request content type is json, then we can get content as a JSON by
 accessing *request.content* property. Further, you can get any
 parameters posted with the request by calling *request.getParameter()*method.

 When we returning from a *.jss, you can either return directly a JSON
 object which will be serialized and send to the client as a JSON content.
 If you want, you can set custom headers to the response object and put
 content using *response.write()* method. A sample *.jss content can be
 found at the bottom.

 Further, a new Rhino engine was created which allows to keep different top
 level scopes for different envirenments. i.e. now we can allow to plug, any
 product specific, tenant specific Hostobjects without affecting others.
 Later this will be integrated into javax.script API.

 In order to allow database calls, php-mysql api was proposed. But, it
 doesn't seem like it utilizes Object Orientation which can be effectively
 used in JavaScript in order to make it easier for the developer. php-mysql
 api has a functional programming model. Also, we need to allow users to do
 async database calls. i.e. register a function which will get executed once
 the database return the result set. So, it would be better to have an API
 as in XHR.

 I will send a separate mail with a proposed mysql api covering above
 requirements.

 Following is the current request, response, session object APIs which
 corresponds to relavant Java methods.

 *session object API*

 readonly property number created
 readonly property number lastAccessed
 readonly property isNew
 property maxInactive


 void put(string key, object value)
 object get(string key)
 void invalidate()

 *request object API*

 readonly property object content //this will return string content or json
 content depending on the content type
 readonly property string method
 readonly property string protocol
 readonly property string queryString
 readonly property string contentType
 readonly property number contentLength

 string getHeader(string name)
 string getParameter(string name)

 *response object API*

 property string content
 property string contentType
 property number status

 void addHeader(string name, string value)
 void getHeader(string name)
 void write(object content) // JSON objects will be serialized to strings
 void sendError(number code, string message)
 void sendRedirect(string url)


 *A Sample *.jss content*

 function *doGet*(request, response, session) {
 response.write(html);
 response.write(h2 + request.getHeader(User-Agent) + /h2);
 response.write(h2 + request.getParameter(lang) + /h2);
 response.write(/html);
 }

 function *doPost*(request, response, session) {
 var obj = {
 name : ruchira,
 age : 27,
 address : {
 number : 16,
 city : ahangama
 }
 };
 //if the request was JSON, then content property will return that JSON
 object
 //obj = request.content;
 session.put(myObj, obj);
 var o = session.get(myObj);
 return o;
 }


 regards,
 Ruchira
 --
 Ruchira Wageesha
 Software Engineer - WSO2 Inc. www.wso2.com

 Email: ruch...@wso2.com Blog: ruchirawagee...@blogspot.com
 Mobile: +94775493444

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http

Re: [Carbon-dev] [Architecture] Status of JavaScript Appdev Project

2011-11-03 Thread Sanjiva Weerawarana
On Fri, Nov 4, 2011 at 8:31 AM, Ruchira Wageesha ruch...@wso2.com wrote:


 On the JSS model below, what happens to any code that's in the file
 outside of any function definitions?


 Any code or function which are outside of doGet, doPost...etc methods will
 be executed on global scope and can be accessed within doGet(), doPost()...
 methods.

 i.e. The *.jss file is first loaded into Rhino engine, which adds all
 toplevel variables/functions into the top level scope. Then, relevant
 doXXX() function will be executed where we can access those toplevel
 variables/functions.


OK so any code outside these functions will get run at the point the code
is loaded. Do we give any guarantees about that - for example, how often do
we load that code? Under what conditions do we unload etc.?

Maybe for starters we should say that there must not be any code outside of
these functions and if you put anything there and it does something that
your problem/luck and that we do not guarantee how that will hold up in the
future.

Further, request, response, and session objects are passed as args to the
 doXXX() function, so won't be available to the outside of the function.


Yes.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Hector tests are failing on 3.2.0 branch

2011-10-21 Thread Sanjiva Weerawarana
Hector is a Java API for talking to a Cassandra cluster using Thrift.

On Fri, Oct 21, 2011 at 5:24 PM, Samisa Abeysinghe sam...@wso2.com wrote:

 What is hector, and who put it in svn?
 Please make sure that the tests are passing.

 Results :

 Tests in error:

 Tests run: 58, Failures: 0, Errors: 13, Skipped: 1

 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] There are test failures.

 Please refer to
 E:\svn\carbon_320\dependencies\hector\0.7.0-23-wso2v1\core\target\surefire-reports
 for the individual test results.
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 219 minutes 6 seconds
 [INFO] Finished at: Fri Oct 21 16:42:37 IST 2011
 [INFO] Final Memory: 740M/1498M
 [INFO]
 

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] Revamping Message Routing Mediators in ESB

2011-10-10 Thread Sanjiva Weerawarana
.
   (Most of the pointed listed here, were discussed during last
 code-review
   of
   Group-D.)
  
  
   [1] http://wso2.org/project/esb/java/4.0.0/docs/mediator_guide.html
  
   Thanks,
   --
   Kasun Indrasiri
   Associate Technical Lead
   WSO2, Inc.; http://wso2.com
   lean.enterprise.middleware
  
   cell: +94 71 536 4128
   Blog : http://kasunpanorama.blogspot.com/
  
 
 
 
  --
  
  Srinath Perera, Ph.D.
Senior Software Architect, WSO2 Inc.
Visiting Faculty, University of Moratuwa
Member, Apache Software Foundation
Research Scientist, Lanka Software Foundation
Blog: http://srinathsview.blogspot.com/
  ___
  Carbon-dev mailing list
  Carbon-dev@wso2.org
  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
 
 



 --
 
 Srinath Perera, Ph.D.
http://www.cs.indiana.edu/~hperera/
http://srinathsview.blogspot.com/
 ___
 Architecture mailing list
 architect...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture




 --
 Hiranya Jayathilaka
 Associate Technical Lead;
 WSO2 Inc.;  http://wso2.org
 E-mail: hira...@wso2.com;  Mobile: +94 77 633 3491
 Blog: http://techfeast-hiranya.blogspot.com

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] Making Shindig apart of Carbon Core UI

2011-09-26 Thread Sanjiva Weerawarana
On Mon, Sep 19, 2011 at 2:47 PM, Nuwan Bandara nu...@wso2.com wrote:


 I think the problems are really clear and crystal. The biggest is the
 devlopment effort. Then I get this question of why does it need to go though
 a server side component at all for many cases, where the browser can do it
 completely and cleanly with JS. And with the second point, again comes the
 ease of development, all that you want is to Google, and there is enough
 support around on how to write with JQuery. So what does it give me as added
 advantage to use Shinding here and why is it better? Gadget repo? Gadget
 communication? Gadget security?


 I get your point :) but I believe a person who is willing to google a bit
 and find some nice jquery plugins/mechanisms wont find any difference in
 writing a gadget. It is no deference in writing a webpage with javascript
 and writing a gadget. you can simply ignor all the features that a gadget
 offer and simply write the web page as a gadget.

 So IMO a gadget is something that gives more than some web content. It is
 dynamic, portable, and give other benefits as you specified. So I see no
 defferent in using a different dashboard solution for other products when
 you can do the same thing with an equal effort.


+1 - there's no work difference between writing a gadget and a writing a
pure JS UI bit: The gadget code can simply do exactly that.

The advantage is that the gadget is reusable (by design), is a standard, can
be part of a repo of gadgets to be shared in other places etc. etc.. The
main reason we're not seeing those benefits right now is because our gadgets
are not cool enough :). Too much flash will do that to you.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Multi tenanting background tasks

2011-09-25 Thread Sanjiva Weerawarana
Guys do this type of discussion on architecture@ please.

On Sat, Sep 24, 2011 at 12:37 PM, Tharindu Mathew thari...@wso2.com wrote:



 On Sat, Sep 24, 2011 at 12:06 PM, Prabath Abeysekera praba...@wso2.comwrote:

 Hi Tharindu,

 On Fri, Sep 23, 2011 at 3:56 PM, Tharindu Mathew thari...@wso2.comwrote:

 Hi everyone,

 I believe many products have this requirement. How can we do $subject?

 I was thinking of storing task related configurations in the tenant's
 registry. The task engine then executes the task only allowing access to
 resources that the specific tenant has access to.

 WDYT?


 I believe, you're referring to the schedule tasks component (pardon me if
 it's not). So here, If I'm not mistaken, this suggestion can be split into
 two main parts namely,
 1. Multitenanting tasks (This is already available AFAIK)


 How is this achieved? Can you explain?

 2. Storing tasks related configurations in the registry.

 Delving into the second point, which is persisting task configurations in
 the registry, we too have this requirement for DSS and for the moment we
 accomplish this by handling it in DSS side (which might not be the best
 suited solution). A better solution would be to handle it in scheduled-tasks
 component itself. So, +1 for a better way to persist task configurations.

 IMO, we should refactor the carbon tasks.

 But that aside, storing task configurations in a multi tenanted manner, is
 a platform requirement. +1 for this. I will also use the same workaround for
 now.





 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/


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



 Regards,
 --
 Prabath Abeysekara
 Software Engineer
 WSO2 Inc.
 Email: praba...@wso2.com harsha...@wso2.com
 Mobile: +94774171471

 http://harshana05.blogspot.com/


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




 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] Providing the option of having the Carbon-UI in HTTP mode

2011-09-24 Thread Sanjiva Weerawarana
+1. What is the challenge in achieving this? Basically I don't understand
the problem!

Also, I remember a discussion a long time ago about how products like GS and
BAM were different because they have a user view that must be exposed all
the time. The product console is only of interest for admins.

Its fine for the admin console to require HTTPS access but totally not fine
for the user view to require HTTPS. We used to have an anonymous mode for
the user view too IIRC - does does that work??

Sanjiva.

On Fri, Sep 23, 2011 at 11:25 AM, Nuwan Bandara nu...@wso2.com wrote:

 Hi All,

 $Subject is a critical requirement for the Gadget Server. Still we don't
 have a proper mechanism of providing the UI in HTTP mode. For any other
 server product this feature might not be a high priority requirement, but
 for a presentation product like GS, users are willing to have an HTTP mode
 as well (option to switch between HTTP and HTTPS). However IMO we should
 keep our BE to FE communication in HTTPS and like to come up with a
 mechanisms to provide Client to FE communication via HTTP.

 GS team would like to work on this feature, with the help of
 security/carbon-core team, and would like to make this available in our next
 major relase.

 Suggestion and comments welcome.

 --
 *Thanks  Regards,

 Nuwan Bandara
 Senior Software Engineer
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

 http://nuwan.bandara.co
 *
 http://www.nuwanbando.com/

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] Making Shindig apart of Carbon Core UI

2011-09-18 Thread Sanjiva Weerawarana

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




 --
 *Thanks  Regards,

 Nuwan Bandara
 Senior Software Engineer
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

 http://nuwan.bandara.co
 *
 http://www.nuwanbando.com/

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Architecture] Making Shindig apart of Carbon Core UI

2011-09-16 Thread Sanjiva Weerawarana
/
 
  ___
 

 --
 Regards,

 Tharindu

 blog: http://mackiemathew.com/


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




 --
 *Thanks  Regards,

 Nuwan Bandara
 Senior Software Engineer
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

 http://nuwan.bandara.co
 *
 http://www.nuwanbando.com/

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




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] equinox 3.7 migration effort.

2011-09-06 Thread Sanjiva Weerawarana
Very cool indeed :)!

On Mon, Sep 5, 2011 at 7:33 PM, Sameera Jayasoma same...@wso2.com wrote:

 Excellent!!!

 These is one of the features that most of our user have requested. Btw,
 please provide an update on this task.

 Thanks,
 Sameera.

 On Thu, Sep 1, 2011 at 6:14 PM, Pradeep Fernando prad...@wso2.com wrote:

 Hi devs,

 I have completed the $subject. Here is the summary of what I have done.

 1. wrote new p2-plugin goals to materialize products.
 2. removed the p2-agent requirement of carbon-p2-plugin using tycho
 director runtimes.
 3. removed p2-agent from carbon build system
 4. bundled equinox bundles as a feature in carbon-core, so that future
 equinox migrations only involves updating pom.xml in the feature.

 this migration will allow us to,

 1. make use of new p2-api s.
 2. make use of new features such as OSGI remote services
 3. make product specific p2-profiles which will enable things like
 bundle pooling.



 In the coming days I'm going to commit the changes to carbon-trunk
 build. apart from carbon-core, features will get changes in their
 p2.inf file. Products might get affected due to the migration
 (minimal). Lets sort them out, case by case basis.


 thanks,
 --Pradeep
 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] HTTP and Proxy Authenticators for Carbon

2011-09-06 Thread Sanjiva Weerawarana
Senaka please send these types of mails to architecture@ or at least
cross-post.

Thanks,

Sanjiva.

On Tue, Sep 6, 2011 at 1:16 AM, Senaka Fernando sen...@wso2.com wrote:

 FYI,

 We have added $subject to Carbon, and the corresponding configuration (in
 carbon.xml) is as follows:

 Security
 ...
 Authenticators
 !-- configuration for a single authenticator --
 Authenticator
 !--
 the pattern that would match a subset of URLs for which
 this authenticator
 would be used
 --
 Pattern.*/Pattern
 !--
 the type of this authenticator. Allowed values are:
 1. server
 2. proxy
 --
 Typeserver/Type
 !-- the username used to log in to server/proxy --
 Usernamename/Username
 !-- the password used to log in to server/proxy --
 Passwordpassword/Password
 /Authenticator
 Authenticator
 !--
 the pattern that would match a subset of URLs for which
 this authenticator
 would be used
 --
 Pattern.*/Pattern
 !--
 the type of this authenticator. Allowed values are:
 1. server
 2. proxy
 --
 Typeproxy/Type
 !-- the username used to log in to server/proxy --
 Usernamename/Username
 !-- the password used to log in to server/proxy --
 Passwordpassword/Password
 /Authenticator
 /Authenticators
 /Security

 This allows you to define multiple authenticators to log into multiple
 servers/proxies that require authentication. This is also useful for
 situations where Carbon is running behind a proxy (ex:- installing from P2
 repo behind proxy, accessing WSDL file from server that requires
 authentication, importing documents from sharepoint secured by NTLM
 authentication into the registry).

 Thanks,
 Senaka.

 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Make WSO2 LoadBalancer into a proper product

2011-08-08 Thread Sanjiva Weerawarana
On Sun, Aug 7, 2011 at 8:55 PM, Afkham Azeez az...@wso2.com wrote:

  On Sun, Aug 7, 2011 at 6:38 PM, Rajika Kumarasiri raj...@wso2.comwrote:

 Not really. There parsers which convert DSL into Java code. What we need
 is to write a parser which is capable of LB config rules - Java.


 :) yeah, theory again :)


 Yeah it's theory and what people do in practice too -
 http://camel.apache.org/.


 Can you please explain how this magically plugs into Carbon and makes all
 the changes all the configuration etc. with your generated Java code without
 any changes to Carbon, and how it happens simply by writing a parser?  Can
 you do a quick PoC and show how this is done?


Rajika the approach should be not about generating Java code but rather to
build a SynapseConfig object and other runtime artifacts such as AxisService
objects, Transport definitions etc. out of a new DSL. The first challenge is
to DESIGN a good DSL. *That* is the hardest part; implementation (as Azeez
notes) may require code changes (I'll bet in the form of some custom
mediators) but honestly the hard part is creating the right language.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Make WSO2 LoadBalancer into a proper product

2011-08-06 Thread Sanjiva Weerawarana
This is more than just about docs .. its also about looking at creating a
higher level config language which is natural for LB type users. That can
compile (at runtime) into a Synapse config and run with Synapse but the user
must be able to live in the LB land.

Pradeeban take a look at nginx config as an example. Also puppet. There's a
bunch to look at ..

Sanjiva.

On Sun, Aug 7, 2011 at 12:49 AM, Kathiravelu Pradeeban
pradee...@wso2.comwrote:



 On Sun, Aug 7, 2011 at 12:44 AM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 We should start making this into a proper product. What we need is some
 documentation, and some sample LB configurations, which demonstrate how to
 setup the LB for different types of scenarios.


 +1.



 Any volunteers to take ownership of this product?


 I will work on these.

 Thank you.
 Regards,
 Pradeeban.


 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 Kathiravelu Pradeeban.
 Software Engineer.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Stratos-dev] Setting a custom HTTP header for LBs to broadcast the messages

2011-08-01 Thread Sanjiva Weerawarana
The only way we can do this using a standard approach is to use a cookie
that we set that we look for to indicate stuff.

I'm still unclear exactly when we'd want this or how we know when we want
this. If we know it then the cookie technique will work. (If cookies are off
then lots of stuff won't work anyway.)

Sanjiva.

On Sat, Jul 30, 2011 at 11:39 AM, Afkham Azeez az...@wso2.com wrote:



 On Sat, Jul 30, 2011 at 10:28 AM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Azeez who is spsed to send this header? If its the client then its a bad
 idea IMO .. non-standard.


 Yes, that was what I was thinking. But since HTTP does not have such a
 notion, and internally, this may be needed, I was just thinking of having
 something to be used internally by us for special messages.


 Also, any extension headers should be written as X-Broadcast ... minor
 detail!

 Sanjiva.

 On Sun, Jul 17, 2011 at 2:46 PM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 It doesn't look like the HTTP spec has such a notion. However, there are
 some cases where the LB has to send a request to all worker nodes. To
 indicate that such an HTTP request has to be broadcast, I'm planning on
 using a custom HTTP header such as Broadcast: true. Is there a better way
 of doing this? The checking of this header will happen in the LB
 ServiceDynamicLoadbalanceEndpoint.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/

 Lean . Enterprise . Middleware

 ___
 Stratos-dev mailing list
 stratos-...@wso2.org
 https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Setting a custom HTTP header for LBs to broadcast the messages

2011-07-29 Thread Sanjiva Weerawarana
Azeez who is spsed to send this header? If its the client then its a bad
idea IMO .. non-standard.

Also, any extension headers should be written as X-Broadcast ... minor
detail!

Sanjiva.

On Sun, Jul 17, 2011 at 2:46 PM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 It doesn't look like the HTTP spec has such a notion. However, there are
 some cases where the LB has to send a request to all worker nodes. To
 indicate that such an HTTP request has to be broadcast, I'm planning on
 using a custom HTTP header such as Broadcast: true. Is there a better way
 of doing this? The checking of this header will happen in the LB
 ServiceDynamicLoadbalanceEndpoint.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Code freeze on Monday morning

2011-07-08 Thread Sanjiva Weerawarana
On Fri, Jul 8, 2011 at 6:50 PM, Hiranya Jayathilaka hira...@wso2.comwrote:

 Still under development
 - Cassandra security (DimuthuL)
 - NIO transport issues (Hiranya)

 @ Hiranya can we get this done by Monday?


 I believe you are referring to 'not using the NIO transport'. The only
 issue I came across with the servlet transport was that the aggregate
 mediator doesn't work. The mediator is written assuming the non-blocking
 behavior and it is not a trivial task to rewrite it to work with the
 blocking transport :( I think we can mention that as a known issue for this
 release?


+1. I actually would prefer if all of clone/iterate/aggregate were disabled
for Stratos - their threading behavior is quite dangerous.

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] LB sometimes send malformed XML messages to the backends

2011-06-27 Thread Sanjiva Weerawarana
But it is still solved with your fix (wait a bit) right? Yes binary relay is
designed to not store anything :).

Sanjiva.

On Mon, Jun 27, 2011 at 11:30 AM, Afkham Azeez az...@wso2.com wrote:

 As per Supun, this is because BinaryRelay consumes the message stream, so
 there is no way to automatically failover when binary relay is used.


 On Sun, Jun 26, 2011 at 2:06 AM, Afkham Azeez az...@wso2.com wrote:

 The root cause of this issue is as follows.

 As soon as a new worker node joins, and its HTTP/S ports become available,
 the LB tries to send messages to that node. However, that node need a few
 more seconds to warm up, hence a few initial requests fail. The failover
 mechanism kicks in and tries to resends the message to another instance.
 However, an error occurs when it tries to retrieve the original request
 envelope, and ends up sending an empty message to the worker node, which
 shows up as a malformed XML error when the StAX parser tries to parse the
 message.

 One measure I have implemented is allowing some warm up time for newly
 added worker nodes which solved this problem for the moment. However, the
 failover logic is still broken and needs to be fixed.


 On Sun, Jun 12, 2011 at 9:21 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Not very likely dude :) .. its been in HEAVY use in eBay for a long time
 now. There has to be some other combination of events that triggers this.

 Sanjiva.

 On Sun, Jun 12, 2011 at 4:25 PM, Sameera Jayasoma same...@wso2.comwrote:

 Binary relay impl might be failing to handle messages in high
 concurrency.

 Thanks,
 Sameera


 On Fri, Jun 10, 2011 at 3:34 PM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 Please note $subject. This happens rarely. We are using binary relay in
 the LB.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 |
 +1 650 265 8311
 blog: http://sanjiva.weerawarana.org/

 Lean . Enterprise . Middleware




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] securing of admin services (was: Fwd: [esb-java-user] How to subscribe/unsubscribe to a topic using WS call in WSO2ESB 4.0.0)

2011-06-27 Thread Sanjiva Weerawarana
 and is intended exclusively for the addressee/s. If you are not
 the intended recipient/s, or believe that you may have received this
 communication in error, please reply to the sender indicating that fact and
 delete the copy you received and in addition, you should not print, copy,
 retransmit, disseminate, or otherwise use the information contained in this
 communication. Internet communications cannot be guaranteed to be timely,
 secure, error or virus-free. The sender does not accept liability for any
 errors or omissions.


 ___
 Esb-java-user mailing list
 esb-java-u...@wso2.org
 https://mail.wso2.org/cgi-bin/mailman/listinfo/esb-java-user



___
Esb-java-user mailing list
esb-java-u...@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/esb-java-user




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Stratos service aware dynamic LB

2011-06-26 Thread Sanjiva Weerawarana
On Sun, Jun 26, 2011 at 11:45 AM, Afkham Azeez az...@wso2.com wrote:

 It also will be important to see how many worker nodes a single LB can
 provide sufficient thruput for .. in eBay of course they have a hardware LB
 at the highest level. I guess in the new model we can simply add more LBs
 and once we do tenant partitioning we can do what Salesforce does and
 essentially run multiple Stratos systems for the different partitions.


 Yes, we can have a hierarchy of LBs with the new model. The average memory
 footprint is even smaller when we run the LB without failover.


The hierarchy model will not scale because then the high level ones have to
handle the sum of all messages from the lower level ones.  However simply
having many and having the client pick one at random will work. Second, once
we have tenant partitioning implemented, we can give tenants different names
... this is what salesforce does for example (our server is
na9.salesforce.com) and they use that to do updates / downtime etc. at
different times. That address of course can resolve to multiple IPs which
then load balance those set of tenants.

Anyway, we just need lots of users now to test all this stuff out :).

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Stratos service aware dynamic LB

2011-06-25 Thread Sanjiva Weerawarana
; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Stratos-dev] Stratos service aware dynamic LB

2011-06-24 Thread Sanjiva Weerawarana
*


 ___
 Stratos-dev mailing list
 stratos-...@wso2.org
 https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] [Stratos-dev] Stratos service aware dynamic LB

2011-06-24 Thread Sanjiva Weerawarana
Cool .. that'll eliminate the LB being an SPOF as well.

Sanjiva.

On Fri, Jun 24, 2011 at 8:46 PM, Afkham Azeez az...@wso2.com wrote:

 Chamith came up with the excellent idea of having a set of service-aware
 LBs, and then doing DNS round robin amongst those LBs.


 On Fri, Jun 24, 2011 at 8:17 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 +1 .. looks good!

 Sanjiva.

 On Thu, Jun 23, 2011 at 3:39 PM, Afkham Azeez az...@wso2.com wrote:

 Oops, I have made a mistake; the http protocol should not be part of this
 configuration; modified configuration shown below;

 endpoint
 serviceAwareDynamicLoadBalanceEndpoint failover=true

 algorithm=org.apache.synapse.endpoints.algorithms.RoundRobin
 membershipHandler

 class=org.apache.synapse.core.axis2.ServiceAwareLoadBalanceMembershipHandler
 services
 service
 domainas.cloud.wso2.com/domain
 groupwso2as.domain/group
 /service
 service
 domainesb.cloud.wso2.com/domain
 groupwso2esb.domain/group
 /service
 service
 domaingovernance.cloud.wso2.com
 /domain
 groupwso2governance.domain/group
 /service
 service
 domaings.cloud.wso2.com/domain
 groupwso2gs.domain/group
 /service
 /services
 /membershipHandler
 /serviceAwareDynamicLoadBalanceEndpoint
 /endpoint

 On Thu, Jun 23, 2011 at 3:36 PM, Afkham Azeez az...@wso2.com wrote:

 This is how the endpoint configuration in the synapse.xml will look
 like;

 endpoint
 serviceAwareDynamicLoadBalanceEndpoint failover=true

 algorithm=org.apache.synapse.endpoints.algorithms.RoundRobin
 membershipHandler

 class=org.apache.synapse.core.axis2.ServiceAwareLoadBalanceMembershipHandler
 services
 service
 urlhttp://as.cloud.wso2.com/url
 domainwso2as.domain/domain
 /service
 service
 urlhttp://esb.cloud.wso2.com/url
 domainwso2esb.domain/domain
 /service
 service
 urlhttp://governance.cloud.wso2.com
 /url
 domainwso2governance.domain/domain
 /service
 service
 urlhttp://gs.cloud.wso2.com/url
 domainwso2gs.domain/domain
 /service
 /services
 /membershipHandler
 /serviceAwareDynamicLoadBalanceEndpoint
 /endpoint

 On Thu, Jun 23, 2011 at 2:20 PM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 I'm thinking of getting $subject implemented since otherwise we will
 have to have a large number of LBs for our services. The plan is to write 
 a
 new ServiceAwareDynamicLoadBalanceEndpoint, which will do LB based on the
 service.

 Axis2 already has support for handling multiple cluster domains, so we
 will have to write a new Axis2LoadBalanceMembershipHandler which is 
 service
 aware.

 The autoscaling would also need to be modified, but autoscaling is
 actually a separate aspect, and we can even run the autoscaler separately 
 if
 we are going for the CPU load average based one.

 Thoughts please.

 Thanks
 Azeez

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http

Re: [Carbon-dev] Usability Improvements - Forms

2011-06-22 Thread Sanjiva Weerawarana
+1 .. more consistency the better for everyone!

Sanjiva.

On Wed, Jun 22, 2011 at 10:39 AM, Chanaka Jayasena chan...@wso2.com wrote:

 Hi all,

 We are planning to improve the forms generally considering usability
 aspects in all products.

 1 . Look and feeling of the forms.
 We have differences in the layout and look and feeling of forms in
 different UI components. Since this is taking away overall consistency in
 our user interfaces, we need to define standards and stick to those in all
 our UI components.

 2. Validation
 I think we can improve client side validation by following some of the best
 practices listed on the following article.

 http://www.smashingmagazine.com/2009/07/07/web-form-validation-best-practices-and-tutorials/
  In-fact we have a validation framework built in to our UI core, which
 implement some of these concepts. But it's only used for the proxy service
 UI component. Plan is to extend this to all the other components as well.

 3. Autocomplete
 We are using autocomplete feature in registry search UI component. I think
 it will be good if we can reuse this on other components as well, when
 ever suitable.

 4. Inline help and tips.
 Place a helpful icon right next to each field which are not self
 explaining.

 5. Default text for text boxes.

 I prepared several screen shots with Amal using two different UI components
 to present these ideas. But we are not clear about when to start these
 improvements.

 thanks,
 Chanaka

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Access Logs to be available with WSO2 Load Balancer / WSO2 ESB [Carbon - 3.2.1]

2011-06-22 Thread Sanjiva Weerawarana
Excellent .. now this means we can use the ton of available http log stats
tools against these files.

Sanjiva.

On Wed, Jun 22, 2011 at 5:22 PM, Kathiravelu Pradeeban
pradee...@wso2.comwrote:

 Hi,
 We have implemented httpd style logs (that is identical to the access logs
 by Tomcat Access Log Valve and httpd) for synapse, as we have discussed a
 few months ago over this list. This eliminates httpd sitting in front of
 WSO2 Load Balancer - STRATOS-828https://wso2.org/jira/browse/STRATOS-828.
 Tomcat's AccessLogValve code segments were used with thanks, in this
 implementation.

 As discussed with Azeez offline, I will branch wso2's synapse branch
 (2.1.0-wso2v3) and commit the changes along with the changes to the relevant
 3.2.1 components/products to use. I will also create an rfe and attach the
 patch to the Synapse Jira.

 To enable access logging, you will have to uncomment (or place)
 log4j.logger.org.apache.synapse.transport.nhttp.access=DEBUG
 from the log4j.properties of Load Balancer or ESB product.

 I have done considerable testing for performance and compatibility, and
 will keep improving too, if Chamith comes up with further requirements for
 his log analyzer tools.



 10.100.0.15:9443 - - [22/Jun/2011:16:57:14 +0530] GET
 /carbon/statistics/index.jsp?region=region4item=statistics_menu HTTP/1.1
 302 - 
 https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4item=flows_menu;
 Synapse-HttpComponents-NIO
 10.100.0.15:8243 - - [22/Jun/2011:16:57:14 +0530] GET
 /carbon/statistics/index.jsp?region=region4item=statistics_menu HTTP/1.1
 302 - 
 https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4item=flows_menu;
 Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422
 Ubuntu/10.04 (lucid) Firefox/3.6.17
 10.100.0.15:9443 - - [22/Jun/2011:16:57:14 +0530] GET
 /carbon/admin/login.jsp HTTP/1.1 200 - 
 https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4item=flows_menu;
 Synapse-HttpComponents-NIO
 10.100.0.15:8243 - - [22/Jun/2011:16:57:14 +0530] GET
 /carbon/admin/login.jsp HTTP/1.1 200 - 
 https://10.100.0.15:8243/carbon/viewflows/index.jsp?region=region4item=flows_menu;
 Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422
 Ubuntu/10.04 (lucid) Firefox/3.6.17
 10.100.0.15:9443 - - [22/Jun/2011:16:57:28 +0530] POST
 /carbon/admin/login_action.jsp HTTP/1.1 302 - 
 https://10.100.0.15:8243/carbon/admin/login.jsp;
 Synapse-HttpComponents-NIO
 10.100.0.15:8243 - - [22/Jun/2011:16:57:28 +0530] POST
 /carbon/admin/login_action.jsp HTTP/1.1 302 - 
 https://10.100.0.15:8243/carbon/admin/login.jsp; Mozilla/5.0 (X11; U;
 Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.04 (lucid)
 Firefox/3.6.17
 10.100.0.15:9443 - - [22/Jun/2011:16:57:28 +0530] GET
 /carbon/statistics/index.jsp?region=region4item=statistics_menuloginStatus=true
 HTTP/1.1 200 - https://10.100.0.15:8243/carbon/admin/login.jsp;
 Synapse-HttpComponents-NIO
 10.100.0.15:8243 - - [22/Jun/2011:16:57:29 +0530] GET
 /carbon/statistics/index.jsp?region=region4item=statistics_menuloginStatus=true
 HTTP/1.1 200 - https://10.100.0.15:8243/carbon/admin/login.jsp;
 Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422
 Ubuntu/10.04 (lucid) Firefox/3.6.17
 10.100.0.15:9443 - - [22/Jun/2011:16:57:28 +0530] GET
 /carbon/admin/jsp/registry_styles_ajaxprocessor.jsp HTTP/1.1 200 - 
 https://10.100.0.15:8243/carbon/statistics/index.jsp?region=region4item=statistics_menuloginStatus=true;
 Synapse-HttpComponents-NIO
 10.100.0.15:8243 - - [22/Jun/2011:16:57:29 +0530] GET
 /carbon/admin/jsp/registry_styles_ajaxprocessor.jsp HTTP/1.1 200 - 
 https://10.100.0.15:8243/carbon/statistics/index.jsp?region=region4item=statistics_menuloginStatus=true;
 Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422
 Ubuntu/10.04 (lucid) Firefox/3.6.17



 Thank you.
 Regards,
 Pradeeban.
 --
 Kathiravelu Pradeeban.
 Software Engineer.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Introducing a new light weight event component for 3.2.1/ trunk

2011-06-21 Thread Sanjiva Weerawarana
Folks I'm confused.

WHY are we writing a new eventing impl?? If we did that because we have an
old / broken model in BAM servers for how they subscribe to servers to
monitor then that should not be propagated widely as a common service to
all.

If we need this as a stop-gap for BAM then lets keep it inside BAM.

If we have one in-memory broker already then that's enough. We don't need
two.

Sanjiva.

On Tue, Jun 21, 2011 at 8:46 AM, Amila Suriarachchi am...@wso2.com wrote:

 On 6/19/11, Tharindu Mathew thari...@wso2.com wrote:
  I have made some improvements for the service stats publisher for 3.2.1
 and
  one of these is creating a light weight eventing impl that does not use
  qpid.

 I was in the impression that BAM publishers going to remove event
 component and directly publish messages to BAM message receivers.
 Anyway we will add an immemory one so that you can use it.

 thanks,
 Amila.

 
  Since, it is decided to also fix the mediation stats publisher for 3.2.1,
 it
  is required to make this impl into a component. I will be creating a new
  component called lightweightevent,( or lwevent) and reusing this for all
  necessary components. This will go into trunk as well.
 
  Please shout if there are any concerns.
 
  --
  Regards,
 
  Tharindu
 
 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Ability to map a custom context to Stratos applications.

2011-06-17 Thread Sanjiva Weerawarana
Hi Shameera,

I assume you are talking about foo.stratosapps.com map to
appserver.stratoslive.wso2.com/t/tenant.com/app13 right? We also need to
allow users to define their own name and not just have it at foo.
stratosapps.com. Can you expand more on how this works and what exactly you
are storing where?

The most scalable place to store the data persistently is in Cassandra. For
the runtime representation its better to use the distributed cache so that
all nodes have the data handy when you need it on any node.

Thanks,

Sanjiva.

On Fri, Jun 17, 2011 at 10:34 AM, Shameera Rathnayaka shame...@wso2.comwrote:

 Im implementing a feature to map a custom context to Stratos applications,
  which is when a user hosts a service in private cloud, we provide a better
 user-friendly url to that service, based on the username and the service
 name, without exposing the actual long url. At anytime user should be able
 to call that service using that user-friendly url.

 So far i have written a carbontomcatvalve to forward http servlet request
 and response to the real service mapping user-friendly url with actual
 url(which is known as service EndPoint) stored in a static HashTable,

 I'm implementing this feature for WSAS and then it will be extended to all
 other Stratos applications.

 Now i want to store the real endpoints with the user-friendly url which is
 needed to be mapped with the context in future and i want some help for
 this. Where is the best place to do that ? Currently im going through
 service-mgt component source code


 *Best Regards
 ~Shameera~*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Main Contributors to Increased Distribution Size of Carbon 3.2.0 products {was: Re: DS pack is HUGE [was Carbon 3.2.0 RC9 for Testing}

2011-06-12 Thread Sanjiva Weerawarana
 
 sume...@wso2.com wrote:



 On Fri, Jun 10, 2011 at 4:16 AM, Prabath Siriwardena 
 prab...@wso2.com wrote:

 Location : http://10.100.1.43/~carbon/releases/carbon/3.2.0/rc9/

 P2 Repo :
 http://10.100.1.43/~carbon/releases/carbon/3.2.0/rc9/p2-repo/

 Public Location :
 http://builder.wso2.org/~carbon/releases/carbon/3.2.0/rc9/[Please
 give some time to complete copying]

 It seems copying to public location is still underway.
 /sumedha


 Revision : 107602

 --
 Thanks  Regards,
 Prabath

 http://blog.facilelogin.com
 http://RampartFAQ.com
 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev



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

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org




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




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 *Thanks  Regards,

 Nuwan Bandara
 Senior Software Engineer

 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

 http://nuwan.bandara.co
 *
 http://www.nuwanbando.com/

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




 --
 *Anjana Fernando*

 Senior Software Engineer
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 *Anjana Fernando*
 Senior Software Engineer
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware




 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware




 --
 *Senaka Fernando*
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2 Inc.; http://wso2.com*
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
 Linked-In: http://linkedin.com/in/senakafernando

 *Lean . Enterprise . Middleware


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] LB sometimes send malformed XML messages to the backends

2011-06-12 Thread Sanjiva Weerawarana
Not very likely dude :) .. its been in HEAVY use in eBay for a long time
now. There has to be some other combination of events that triggers this.

Sanjiva.

On Sun, Jun 12, 2011 at 4:25 PM, Sameera Jayasoma same...@wso2.com wrote:

 Binary relay impl might be failing to handle messages in high concurrency.

 Thanks,
 Sameera


 On Fri, Jun 10, 2011 at 3:34 PM, Afkham Azeez az...@wso2.com wrote:

 Folks,
 Please note $subject. This happens rarely. We are using binary relay in
 the LB.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 Sameera Jayasoma
 Technical Lead and Product Manager, WSO2 Carbon

 WSO2, Inc. (http://wso2.com)
 email: same...@wso2.com
 blog: http://tech.jayasoma.org

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Carbon Studio 1.0.11 plan

2011-06-10 Thread Sanjiva Weerawarana

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



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Qpid errors on ESB RC4

2011-06-05 Thread Sanjiva Weerawarana
On Fri, Jun 3, 2011 at 10:51 AM, Amila Suriarachchi am...@wso2.com wrote:



 On Fri, Jun 3, 2011 at 10:36 AM, Prabath Siriwardena prab...@wso2.comwrote:

 In this case I had both IS and ESB running with default ports -


 In one machine how that is possible? I guess the problem is your ESB qpid
 has not started due to bind exception and at runtime it has connected to IS
 qpid server which uses a different access key.


This is a serious usability issue. We need to re-think the approach of using
a JMS broker for any type of event distribution :-(.

In the meantime, can you write a KB item for OT on How to run multiple
Carbon 3.2.0 based products on a single machine please? Maybe there are
other issues to sort out too but lets start documenting it so people won't
get hit by an obscure error.

BTW should the startup fail if this port can't be acquired??

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Removing event feature from most products

2011-06-05 Thread Sanjiva Weerawarana
On Sun, Jun 5, 2011 at 5:11 PM, Tharindu Mathew thari...@wso2.com wrote:

 That can be achieved by using a simple non-blocking Axis2 sender type thing
 - which I believe is what Hiranya wrote a while ago.

 The BAM server needs to be set up in a clustered manner with an LB etc. to
 handle the large number of messages it will receive when Stratos is running
 at full tilt (and have additional load balancing things like DNS
 round-robin). We can make that work easily.

 +1, for this model. The publisher that is used in Stratos is already done
 in a non blocking way. I feel it's better to go for the jdbc model.


Tharindu what is the JDBC model?? We don't need persistence for these
messages, so where does JDBC come into the picture?

Sanjiva.
-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Removing event feature from most products

2011-06-04 Thread Sanjiva Weerawarana
  different jms based delivary managers if there are differences with
 those
  brokers.
 
  thanks,
  Amila.
 
 
  Thanks,
  Senaka.
 
 
  We will lose some functionality of subscribing for topics and so
 forth,
  but with some testing we should be able to avoid leaks OOM errors.
 
 
  The lightweight code was a tremendous improvement for high load
  scenarios. But for very high loads even this was failing. We had some
  improvements suggested and integrated(?), based on high and low
 watermarks
  plus a persistent queue as well. IIRC, these improvements were never
  properly load tested and verified.
  Also, are we doing this for this release? This would involve quite a
 bit
  of work, IMO.
 
  --
  Afkham Azeez
  Director of Architecture; WSO2, Inc.; http://wso2.com
  Member; Apache Software Foundation; http://www.apache.org/
 
  email: az...@wso2.com cell: +94 77 3320919
  blog: http://blog.afkham.org
  twitter: http://twitter.com/afkham_azeez
  linked-in: http://lk.linkedin.com/in/afkhamazeez
 
  Lean . Enterprise . Middleware
 
  ___
  Carbon-dev mailing list
  Carbon-dev@wso2.org
  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
 
 
 
 
  --
  Regards,
 
  Tharindu
 
 
  ___
  Carbon-dev mailing list
  Carbon-dev@wso2.org
  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
 
 
 
 
  --
  Senaka Fernando
  Product Manager - WSO2 Governance Registry;
  Associate Technical Lead; WSO2 Inc.; http://wso2.com
  Member; Apache Software Foundation; http://apache.org
 
  E-mail: senaka AT wso2.com
  P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818
  Linked-In: http://linkedin.com/in/senakafernando
 
  Lean . Enterprise . Middleware
 
 
  ___
  Carbon-dev mailing list
  Carbon-dev@wso2.org
  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
 
 
 
  ___
  Carbon-dev mailing list
  Carbon-dev@wso2.org
  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
 
 



 --
 
 Srinath Perera, Ph.D.
   Senior Software Architect, WSO2 Inc.
   Visiting Faculty, University of Moratuwa
   Member, Apache Software Foundation
   Research Scientist, Lanka Software Foundation
   Blog: http://srinathsview.blogspot.com/
 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-27 Thread Sanjiva Weerawarana
 not print, copy,
  retransmit, disseminate, or otherwise use the information contained in
 this
  communication. Internet communications cannot be guaranteed to be timely,
  secure, error or virus-free. The sender does not accept liability for any
  errors or omissions.

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] please fix spelling mistake: Sunccessfully

2011-05-08 Thread Sanjiva Weerawarana
http://www.google.com/search?sourceid=chromeie=UTF-8q=Sunccessfully#hl=enbiw=1440bih=758sa=Xei=3c_GTezIHserrAf50MmzBAved=0CBQQvgUoAAq=Sunccessfully+%2Bsite%3Awso2.orgnfpr=1bav=on.2,or.r_gc.r_pw.fp=263951646445c969

-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Remove multi-instance feature

2011-05-08 Thread Sanjiva Weerawarana
Should we not be using it in Stratos? I've been thinking of trying that as
an alternative to using VMs basically .. take a big machine and run a bunch
of elastically scaling processes rather than VMs.

If its broken of course then that needs to be fixed before such an
experiment can be tried. At least it would be a useful research experiment
to compare VMs vs. not. In our world we control all the VMs so the security
disadvantages of processes is essentially gone IMO.

Sanjiva.

On Sun, May 8, 2011 at 11:33 AM, Afkham Azeez az...@wso2.com wrote:

 This is a feature that never gets tested, nobody seems to know how to use
 it, and it is badly broken. Nobody seems to be using it in the real world
 anyway. Shall we remove it? We can get rid of the confusing ports-config.xml
 file as well.

 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/**
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] jettison upgrade broke the orbit build

2011-04-20 Thread Sanjiva Weerawarana
Folks if you make a change like this do a clean build. With nexus now that's
a pretty fast thing to do.

Sanjiva.

On Wed, Apr 20, 2011 at 9:05 PM, Miyuru Wanninayaka miy...@wso2.com wrote:

 My bad, missed updating carbon orbit parent pom version when copying from
 graduated location.
 Fixed in r92113


 On Wed, Apr 20, 2011 at 8:43 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 Yes, with a fresh repo it does not build


 On Wed, Apr 20, 2011 at 8:39 PM, Miyuru Wanninayaka miy...@wso2.comwrote:

 Hi Samisa,

 Did you got any build error. I just completed an orbit build
 successfully.

 On Wed, Apr 20, 2011 at 8:24 PM, Samisa Abeysinghe sam...@wso2.comwrote:

 r91979 | miyuru | 2011-04-19 11:06:28 + (Tue, 19 Apr 2011) | 1 line

 un-graduated jettison orbit bundle and upgraded version to 1.1

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



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




 --
 Thanks,
 Miyuru

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

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org




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




 --
 Thanks,
 Miyuru

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Which product/services should distribute the CSG components by default?

2011-04-18 Thread Sanjiva Weerawarana
IMO we should ship the CSG agent component in all service hosting products:
ESB (for proxy services), AS, MS, BPS, DS, BRS.

In the Stratos deployment, are we going to put CSG in the ESB instance? I
thought it would be a separate Stratos service. I prefer that at least for
the early stages until this becomes rock solid.

Sanjiva.

On Mon, Apr 18, 2011 at 8:32 AM, Rajika Kumarasiri raj...@wso2.com wrote:

 I need some input to decide which products/services should distribute the
 CSG components by default.

 CSG itself has two components.
 1. CSG - This component will be inside ESB and responsible for deploying
 the proxy for back end service.
 2. CSG agent. - This component is responsible for publishing a service to
 CSG and it can be used with any product where we have service-mgt component
 installed ( AS, BRS, DS etc.. etc..).

 Right now two p2 features are available if anyone is interested in the CSG
 functionality. It seem we only need to ship the CSG component with the ESB
 service by default and others interested parties can install the features.
 WDYT ?

 Rajika



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Why do we use exec in wso2server.sh?

2011-04-15 Thread Sanjiva Weerawarana
Its good to use exec so that the parent shell process doesn't hang around.
That's common practice for shell scripts which set up a bunch of stuff and
run something else right at the end.

But that should not be a problem as the process exit status should be that
of the exec'ed command IIRC (new command is run in the same process).

Here's a small test:

$ cat /tmp/foo.sh
#!/bin/sh

exit 79
$ sh -c exec /tmp/foo.sh
$ echo $?
79

Sanjiva.

On Sat, Apr 16, 2011 at 4:13 AM, Afkham Azeez az...@wso2.com wrote:

 Instead of simply doing; java ... we do exec java  Why have we used
 exec here? I'm trying to solve the restart issue using exit codes, and when
 exec is used, the process exit code cannot be captured.

 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Why do we use exec in wso2server.sh?

2011-04-15 Thread Sanjiva Weerawarana
No saying sh -c .. means you're creating a new shell and then exec'ng in
there. In that case you might as well just say java .. (without the exec
at all).

Doesn't having exec java at the end give the return code of the java
command to the calling shell? That's what's spsed to happen.

Sanjiva.

On Sat, Apr 16, 2011 at 9:53 AM, Afkham Azeez az...@wso2.com wrote:

 Thanks!

 sh -c exec java ...
 worked!

 Earlier the script only had exec java ...


 On Sat, Apr 16, 2011 at 7:15 AM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Its good to use exec so that the parent shell process doesn't hang around.
 That's common practice for shell scripts which set up a bunch of stuff and
 run something else right at the end.

 But that should not be a problem as the process exit status should be that
 of the exec'ed command IIRC (new command is run in the same process).

 Here's a small test:

 $ cat /tmp/foo.sh
 #!/bin/sh

 exit 79
 $ sh -c exec /tmp/foo.sh
 $ echo $?
 79

 Sanjiva.

 On Sat, Apr 16, 2011 at 4:13 AM, Afkham Azeez az...@wso2.com wrote:

 Instead of simply doing; java ... we do exec java  Why have we
 used exec here? I'm trying to solve the restart issue using exit codes, and
 when exec is used, the process exit code cannot be captured.

 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com
 ,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/

 Lean . Enterprise . Middleware




 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Why do we use exec in wso2server.sh?

2011-04-15 Thread Sanjiva Weerawarana
Ah ok now I understood what you want to do .. yep sounds good.

Only change you could do is instead of saying sh -c 'exec java ...' you
could simply say java  Essentially you're creating a shell and
immediately running one command so might as well run that command directly.

Sanjiva.

On Sat, Apr 16, 2011 at 10:53 AM, Afkham Azeez az...@wso2.com wrote:

 This is what I'm doing in the wso2server.sh. When I restart, I issue a
 System.exit(121) command. So the shel will spawn a new Java process once the
 current one exits. This can be done on Windows too with the ERRORLEVEL
 variable. So, we are relying on the original process which spawned the java
 process to spawn a new instance, instead of the dying java process spawning
 a new java process just before it dies. That solution is not working on
 certain Windows environments. The exit code based approach is guaranteed to
 work since we are handing back the control to the original shell that
 spawned the java process.

 Here is the relevant code segment in wso2server.sh

 START_EXIT_STATUS=121;
 status=$START_EXIT_STATUS;

 while [ $status = $START_EXIT_STATUS ]
 do
 sh -c exec $JAVACMD \
 -Xbootclasspath/a:$CARBON_XBOOTCLASSPATH \
 -Xms256m -Xmx512m -XX:MaxPermSize=128m \
 $JAVA_OPTS \
 -Dimpl.prefix=Carbon \
 -Dcom.sun.management.jmxremote \
 -classpath $CARBON_CLASSPATH \
 -Djava.endorsed.dirs=$CARBON_HOME/lib/endorsed:$JAVA_HOME/jre/lib/endorsed:$JAVA_HOME/lib/endorsed
 \
 -Djava.io.tmpdir=$CARBON_HOME/tmp \
 -Dwso2.server.standalone=true \
 -Dcarbon.registry.root=/ \
 -Dcarbon.xbootclasspath=$CARBON_XBOOTCLASSPATH \
 -Djava.command=$JAVACMD \
 -Dcarbon.home=$CARBON_HOME \
 -Dwso2.transports.xml=$CARBON_HOME/repository/conf/mgt-transports.xml \
 -Djava.util.logging.config.file=$CARBON_HOME/lib/log4j.properties \
 -Dcarbon.config.dir.path=$CARBON_HOME/repository/conf \
 -Dcomponents.repo=$CARBON_HOME/repository/components/plugins \
 -Dcom.atomikos.icatch.file=$CARBON_HOME/lib/transactions.properties \
 -Dcom.atomikos.icatch.hide_init_file_path=true \
 org.wso2.carbon.bootstrap.Bootstrap $*

 status=$?

 done

 On Sat, Apr 16, 2011 at 10:41 AM, Afkham Azeez az...@wso2.com wrote:

 If you do;

 $ exec ./foo.sh

 You will simply see the following line;
 [Process completed]

 and the control does not return to the current shell.


 On Sat, Apr 16, 2011 at 10:21 AM, Sanjiva Weerawarana 
 sanj...@wso2.comwrote:

 No saying sh -c .. means you're creating a new shell and then exec'ng
 in there. In that case you might as well just say java .. (without the
 exec at all).

 Doesn't having exec java at the end give the return code of the java
 command to the calling shell? That's what's spsed to happen.

 Sanjiva.


 On Sat, Apr 16, 2011 at 9:53 AM, Afkham Azeez az...@wso2.com wrote:

 Thanks!

 sh -c exec java ...
 worked!

 Earlier the script only had exec java ...


 On Sat, Apr 16, 2011 at 7:15 AM, Sanjiva Weerawarana 
 sanj...@wso2.comwrote:

 Its good to use exec so that the parent shell process doesn't hang
 around. That's common practice for shell scripts which set up a bunch of
 stuff and run something else right at the end.

 But that should not be a problem as the process exit status should be
 that of the exec'ed command IIRC (new command is run in the same process).

 Here's a small test:

 $ cat /tmp/foo.sh
 #!/bin/sh

 exit 79
 $ sh -c exec /tmp/foo.sh
 $ echo $?
 79

 Sanjiva.

 On Sat, Apr 16, 2011 at 4:13 AM, Afkham Azeez az...@wso2.com wrote:

 Instead of simply doing; java ... we do exec java  Why have we
 used exec here? I'm trying to solve the restart issue using exit codes, 
 and
 when exec is used, the process exit code cannot be captured.

 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.;
 http://wso2.com,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880| +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/

 Lean . Enterprise . Middleware




 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com
 ,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http

Re: [Carbon-dev] [Stratos-dev] Internationalization and Localization of WSO2 Products

2011-03-31 Thread Sanjiva Weerawarana
).


 That way, you could add those files to ehe source code and have spanish for
 chile along with the english, chinese, Sinhala versions.

 What is the way that is implemented in Carbon products?

 Here we are reading the properties files, and getting the relevant strings
 for the keys. The change that you propose is doable. I have created a
 jira
 (CARBON-9183) to track this.

 Thanks for your effort in localizing WSO2 Carbon, and thanks a lot for your
 suggestion. I will have a look more.

 Thank you.
 Regards,
 Pradeeban.

 Guillaume Devianne

 On Fri, Mar 25, 2011 at 12:56 AM, Kathiravelu Pradeeban 
 pradee...@wso2.com
 wrote:
 Hi,
 I have been experimenting with WSO2 Stratos Manager for a howto on
 localizing wso2 carbon based products.

 For that, I had to localize the Resources.properties and
 JSResources.properties files in locations like when coming to localize the
 source, even before building.

 But obviously what users choose is to localize the product binaries. So I
 had to localize the .properties files in ui bundle jars in
 repository/components/plugins. For example, attached is the
 Resouces.properties in org.wso2.stratos.tenant.mgt.ui-1.0.0.jar
 (/org.wso2.stratos.tenant.mgt.ui-1.0.0/org/wso2/stratos/tenant/mgt/ui/i18n)
 localized to Spanish (Pls tolerate my poor Spanish knowledge. This is just
 experimental).

 After localizing the relevant .properties files (basically changing the
 value string from English to Spanish, in the key=string pair in the
 relevant
 files), I restarted Stratos Manager.

 The localized interface was shown in Spanish. But there were some issues in
 displaying the Unicode characters. They weren't displayed properly (Pls
 find
 the attached image) .

 Pls note, we were able to experimentally localize WSO2 Appserver (and some
 other products too may be) to unicode only languages before successfully.
 So
 either I must be missing something or some issue from the
 internationalization of the interface of Stratos Manager (Unicode rendering
 issues from the UI).

 Senaka mentioned he had to fix a few ui issues to make the WSO2 GReg to
 globalize properly. Senaka, could you pls provide us the steps to fix this,
 so that we can learn that from you.


 Thank you.
 Regards,
 Pradeeban.

 --
 Kathiravelu Pradeeban.
 Software Engineer.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/

 ___
 Stratos-dev mailing list
 stratos-...@wso2.org
 https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev




 --
 Kathiravelu Pradeeban.
 Software Engineer.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/





 --
 Kathiravelu Pradeeban.
 Software Engineer.
 WSO2 Inc.

 Blog: [Llovizna] http://kkpradeeban.blogspot.com/


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



 --
 Senaka Fernando
 Product Manager - WSO2 Governance Registry;
 Associate Technical Lead; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://apache.org

 E-mail: senaka AT wso2.com
 P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818
 Linked-In: http://www.linkedin.com/in/senakafernando

 Lean . Enterprise . Middleware

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Notes from MB status meeting

2011-03-30 Thread Sanjiva Weerawarana
+1!

On Wed, Mar 30, 2011 at 6:49 PM, Samisa Abeysinghe sam...@wso2.com wrote:



 On Wed, Mar 30, 2011 at 1:48 PM, Rajika Kumarasiri raj...@wso2.comwrote:



 On Tue, Mar 29, 2011 at 4:57 PM, Rajika Kumarasiri raj...@wso2.comwrote:



 On Tue, Mar 22, 2011 at 5:33 PM, Rajika Kumarasiri raj...@wso2.comwrote:



 9) TLS: this is needed by CSG. For MB its obviously important, but if
 we can't fix it by 1.0 then we will go ahead anyway and fix in a 1.01 or 
 1.1
 shortly after. Action: Rajika to look at it.


 I fixed some UI issues in CSG in last couple of days.I'll look into this
 now.


 I have fixed this now.


 FYI.

 Qpid uses the excellent TCP/IP framework based on NIO Apache Mina[0]
 underling for all TCP/IP operations. When comes to SSL, Qpid has registered
 an invalid order of the SSL processor which causes this problem. By fixing
 the order of the SSL filter the issue was fixed. You can find more
 information here[1].


 Good detective work. I hope it is working now!

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] why do we do mvn install instead of mvn package

2011-03-27 Thread Sanjiva Weerawarana
Let me rephrase that .. can we not have a target that installs the
dependencies into the local repo but not the final products?

Sanjiva.

On Sun, Mar 27, 2011 at 9:03 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 The install command triggers the deployment into the local repo- is that a
 necessary step?

 Sanjiva.
 --
 Sanjiva Weerawarana, Ph.D.
 Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
 email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
 650 265 8311
 blog: http://sanjiva.weerawarana.org/

 Lean . Enterprise . Middleware




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Deployment for some wild applications in AppServer

2011-03-26 Thread Sanjiva Weerawarana
Xue-Feng, it should work by unzipping into the app server directory but if
you are asking whether the app server console can support such apps that's
difficult. Not impossible (we'd have to keep track of a lot of stuff) but
difficult. Also given that such apps can modify/replace server.xml even
really the idea of a shared app server deploying such apps makes little
sense. For example, if it has 85 wars then there's a good chance there will
be name conflicts.

It seems to me that Sakai should effectively ship with its own app server as
that's what the deployment requires. If their answer is we can run on any
app server then effectively they're asking for a specific instance of the
server for themselves .. and that is of course supported by AS as well.

Sanjiva.

On Sat, Mar 26, 2011 at 3:50 PM, Afkham Azeez az...@wso2.com wrote:

 Deploying any webapp on the AppServer shouldn't been an issue. There is a
 possibility that data sources defined in the web.xml do not work; which is
 something we are looking at.

 On a side note, why does this single application consist of 85 wars? Isn't
 there a design issue there?


 On Wed, Mar 23, 2011 at 7:12 PM, Xue-Feng Yang just4l...@yahoo.comwrote:

 Forgot to mention that in directory webapp there are 85 wars.

 Thanks,

 Xue-Feng

 --
 *From:* Xue-Feng Yang just4l...@yahoo.com
 *To:* carbon-dev@wso2.org
 *Sent:* Wed, March 23, 2011 9:35:00 AM
 *Subject:* [Carbon-dev] Deployment for some wild applications in
 AppServer


 Hi,

 I know all of you are busy recently and no time to response my early
 questions. However, I have more questions now and would like to leave here
 as is.

 In some cases, the applications are more complicated than the demos in
 WSO2  AppServer. I don't know if there are easy ways to deploy them.

 Here is such an example. Sakai is a LMS and 2011 GSOC. In the attached
 figure, you can see the directory structure of the application, which
 supposes to unzip in $CATALINA_HOME. In components directory, there are 60
 components so that I couldn't show them in one figure. There are also some
 other files such as sakai.properties, which have to be manually copied to a
 directory.

 Is there any approach rule I can follow for such applications? Or simply I
 can't deploy it to WSO2 AppServer w/o Tomcat.

 Another question is: is there a future plan for setting application
 parameters, such as startup Java parameters, in management console?

 Thanks,

 Xue-Feng



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




 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Complex Event Processing Server 1.0.0 - Beta- RC1

2011-03-24 Thread Sanjiva Weerawarana
What is a Beta - RC1?? Its either a beta (meaning feature complete and no
known L1s) or an RC1 (meaning ready to ship if this build holds up).

Which is it?? It can't be both!

Sanjiva.

On Wed, Mar 23, 2011 at 7:38 PM, Shammi Jayasinghe sha...@wso2.com wrote:

 Hi ,

 Please find the RC 1 of WSO2 Complex Event Processing Server 1.0.0- Beta in
 the location[1].

 [1]. http://people.wso2.com/~shammi/


 Thanks
 Shammi


 --
 Best Regards,*

 Shammi Jayasinghe*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com,
 mobile: +94 71 4493085



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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Why are LoginStatisticsAdmin FileDownloadService exposed via HTTP

2011-03-22 Thread Sanjiva Weerawarana
Azeez lets take both of these services off. Looks like neither is being
used??

+1 for the new test!

Sanjiva.

On Tue, Mar 22, 2011 at 11:55 AM, Afkham Azeez az...@wso2.com wrote:

 Now I have added a security test that will fail if any admin service has
 been exposed via non-HTTPS transports.


 On Tue, Mar 22, 2011 at 11:49 AM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi,

 On Tue, Mar 22, 2011 at 10:34 AM, Afkham Azeez az...@wso2.com wrote:

 Hmm no answer!!!

 DimuthuL, you have added LoginStatisticsAdmin on 6/2/2009 928AM with this
 log:
   Exposing a login stat service. This is a hack, as discussed by the
 team. I tried my best to limit the adverse effects done by this bad hack.
 
 HTTP has been explicitly enabled for this service. What is this service?
 What is the risk of having this service, what are these adverse effects you
 are talking about and why did you explicitly expose it via HTTP?


 IIRC, I added this for BAM people. It is a read-only service. It doesn't
 let anyone write/modify server data. However it exposes login stats. I
 should have kept a close eye on it and removed HTTP before release. What
 should be the next steps?

 Thanks,
 Dimuthu



 FileDownloadService has been added on 12/18/08 1115PM by Keith with this
 log:
 Adding a fileDownload Service so that we have a mechanism of accessing
 files via fileDownload when running in a seperate FE BE env
 HTTP has been explicitly enabled for this service as well.


 On Mon, Mar 21, 2011 at 12:12 PM, Afkham Azeez az...@wso2.com wrote:

 Is there a particular reason why these services are exposed via HTTP 
 HTTPS? All other admin services are exposed only via HTTPS.

 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com
 ,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*




 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com
 ,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*





 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.; http://wso2.com,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Notes From Data Services UI Review - Round 2

2011-03-22 Thread Sanjiva Weerawarana
 mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Status of TryIt

2011-03-21 Thread Sanjiva Weerawarana
Sounds excellent :) .. thanks Ruchira!

Sanjiva.

On Mon, Mar 21, 2011 at 1:00 PM, Ruchira Wageesha ruch...@wso2.com wrote:

 Hi,

 New Tryit code was added to the trunk. This version supports recursive
 schema imports/includes and jaxws services. Supports for the recursive WSDL
 imports will be added later which is supported up to one level at the
 moment. You need to update/build

 org.wso2.carbon.ui  core  wsdl2form(component)  tryit(component) 
 tryit(feature)  product

 JavaScript stubs generated by ?stub and Stub generator tool was also
 modified a lot to comply with complex inputs and services with any valid
 NCName character in service/operation names. Further, now you can directly
 pass either a string payload or a Badgerfish JSON payload into the JS stub.
 You can also get the sample payload of Badgerfish JSON for a particular
 operation by simply calling a relavant method in the JS stub.

 BTW, we need to test it properly with the help of QA team and UI team to
 verify the functionalities and cross-browser compatibilities.

 Thanks,
 Ruchira

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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Build

2011-03-20 Thread Sanjiva Weerawarana
/carbon-dev




 --
 *Afkham Azeez*
 Senior Software Architect  Senior Manager; WSO2, Inc.;
 http://wso2.com,
 *
 *
 *Member; Apache Software Foundation; 
 **http://www.apache.org/*http://www.apache.org/
 *
 email: **az...@wso2.com* az...@wso2.com* cell: +94 77 3320919
 blog: **http://blog.afkham.org* http://blog.afkham.org*
 twitter: 
 **http://twitter.com/afkham_azeez*http://twitter.com/afkham_azeez
 *
 linked-in: **http://lk.linkedin.com/in/afkhamazeez*
 *
 *
 *Lean . Enterprise . Middleware*


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




 --
 Thanks,
 Denis
 --
 *Denis Weerasiri*
 Software Engineer; WSO2 Inc.; http://wso2.com,
 *email: denis http://goog_277208233/** [AT] wso2.com*http://wso2.com/
 *
 blog: **http://ddweerasiri.blogspot.com*http://ddweerasiri.blogspot.com/
 *
 twitter: **http://twitter.com/ddweerasiri*http://twitter.com/ddweerasiri
 *
 linked-in: 
 **http://lk.linkedin.com/in/ddweerasiri*http://lk.linkedin.com/in/ddweerasiri


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





 --
 Thanks,
 Denis
 --
 *Denis Weerasiri*
 Software Engineer; WSO2 Inc.; http://wso2.com,
 *email: denis http://goog_277208233/** [AT] wso2.com*http://wso2.com/
 *
 blog: **http://ddweerasiri.blogspot.com*http://ddweerasiri.blogspot.com/
 *
 twitter: **http://twitter.com/ddweerasiri*http://twitter.com/ddweerasiri
 *
 linked-in: 
 **http://lk.linkedin.com/in/ddweerasiri*http://lk.linkedin.com/in/ddweerasiri


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




 --
 Harshana Martin
 Software Engineer
 WSO2 Inc.
 Web:http://wso2.com
   http://wso2.org

 Mobile: +94 716062650
 Blog: http://harshana05.blogspot.com
 Profile: https://www.google.com/profiles/harshana05
 Twitter: http://twitter.com/harshana05


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




-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Build

2011-03-20 Thread Sanjiva Weerawarana
BTW its not clear to me why we are executing both create-h2-database and
create-derby-db.

On Sun, Mar 20, 2011 at 2:15 PM, Sanjiva Weerawarana sanj...@wso2.comwrote:

 Is the trunk supposed to build correctly with a clean m2 and online build
 with tests? It doesn't for me:

 [INFO] [antrun:run {execution: create-h2-database}]
 [INFO] Executing tasks
  [echo] ### Create H2 Database ##
   [sql] Executing file:
 /Users/sanjiva/Projects/carbon/dependencies/ode/dao-jpa-ojpa-derby/target/h2.sql
   [sql] 55 of 55 SQL statements executed successfully
  [echo] # END 
 [INFO] Executed tasks
 [INFO] [sql:execute {execution: create-derby-db}]
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 Exception in thread main

 And it seems to be stuck here.

 Sanjiva.

 On Sun, Mar 20, 2011 at 9:22 AM, Harshana Martin harsh...@wso2.comwrote:



 On Sun, Mar 20, 2011 at 8:37 AM, Denis Weerasiri de...@wso2.com wrote:



 On Sun, Mar 20, 2011 at 8:19 AM, Hasini Gunasinghe has...@wso2.comwrote:



 On Sun, Mar 20, 2011 at 8:04 AM, Denis Weerasiri de...@wso2.comwrote:



 On Sun, Mar 20, 2011 at 7:57 AM, Afkham Azeez az...@wso2.com wrote:



 On Sun, Mar 20, 2011 at 7:39 AM, Samisa Abeysinghe 
 sam...@wso2.comwrote:

 In general, the build is still very unstable :(

 We are yet to see the continuous build running on the
 builder succeed. That is a bad sign. Because, if the build is right, 
 then
 the continuous build got to pass.


 Somehow, I managed to build everything with a clean repo. Now the only
 issue seems to be some products being dependent on test jars. Everything
 else seems to be under control.

 Hi Denis,

  +1,
 But IS is still has a issue with incremental building. So it need to
 clean the project, before mvn install.

 Does this happen even after the fix we did yesterday as discussed in a
 previous thread on build failure?
 According to the mails from builder and our previous discussion, the
 build that was triggered before the fix has been failed, but the last build
 has passed the IS build.
 Did the IS build pass in last build, just because clean was run before
 mvn install?


 Shall we modify the p2-profile-gen poms to run an Ant Task there to clean
 targets?

 Thanks and Regards,
 Harshana

  Yp.


 Thanks,
 Hasini.





 On Fri, Mar 18, 2011 at 4:21 PM, Indika Kumara ind...@wso2.comwrote:

 Sorry... Delayed the changes until someone verify ..Fixed ...

 ~ Indika


 On Fri, Mar 18, 2011 at 4:13 PM, Samisa Abeysinghe sam...@wso2.com
  wrote:

 Now it is in Casendra

 I still have trouble with this :(

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] An Ant BuildException has occured: Execute failed:
 java.io.IOException: Cannot run program ant (in directory
 D:\svn\carbon\dependencies\cass
 andra): CreateProcess error=2, The system cannot find the file
 specified

 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 22 minutes 50 seconds
 [INFO] Finished at: Fri Mar 18 10:03:02 IST 2011
 [INFO] Final Memory: 615M/867M
 [INFO]
 

 D:\svn\carbon\dependenciesecho %ANT_HOME%
 E:\apache-ant-1.8.1

 On Fri, Mar 18, 2011 at 12:31 AM, Danushka Menikkumbura 
 danus...@wso2.com wrote:

 This is now fixed using a java task. Tested on Linux and Windows.
 You need to have the env variable ANT_HOME set in order to get this 
 to work.

 Thanks,
 Danushka

 On Thu, Mar 17, 2011 at 1:20 PM, Danushka Menikkumbura 
 danus...@wso2.com wrote:

 The fix suggested by Shankar did not work for Qpid due to some
 environment variable issue. That is why it uses exec task. Please 
 use
 ant.bat in place of ant until I find a fix.

 Thanks,
 Danushka

 On Thu, Mar 17, 2011 at 1:08 PM, Samisa Abeysinghe 
 sam...@wso2.com wrote:



 On Thu, Mar 17, 2011 at 11:22 AM, Indika Kumara 
 ind...@wso2.com wrote:

 Shankar, thanks you very much . It worked perfectly.  if some
 one in Linux can verify the build, we can commit it.


 Can someone fix this please. I am stuck at qpid even with tests
 skipped on Windows. :(

 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org



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



 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering
 WSO2 Inc.
 http://wso2.com
 http://wso2.org




 Thanks,
 Samisa...

 Samisa Abeysinghe
 VP Engineering

[Carbon-dev] dependencies/cassandra not building

2011-03-20 Thread Sanjiva Weerawarana
Is this POM using ant properly? Yes I have ant on my machine (MacOSX).

(I tried to build this dir manually because the entire build failed here.)

$ mvn install -Dmaven.test.skip=true
[INFO] Scanning for projects...
[INFO]

[INFO] Building Apache Cassandra
[INFO]task-segment: [install]
[INFO]

[INFO] [incremental-build:incremental-build {execution: default}]
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
[INFO] Resources directory does not exist :
/Users/sanjiva/Projects/carbon/dependencies/cassandra/src/main/resources
[INFO] Verifying sources...
[INFO] No sources to check ...
[INFO] [antrun:run {execution: compile}]
[INFO] Executing tasks

main:
 [java] Exception in thread main java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
 [java] Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 [java] at java.security.AccessController.doPrivileged(Native Method)
 [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 [java] Java Result: 1
 [java] Exception in thread main java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher
 [java] Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
 [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 [java] at java.security.AccessController.doPrivileged(Native Method)
 [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 [java] Java Result: 1
[INFO] Executed tasks
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing
/Users/sanjiva/Projects/carbon/dependencies/cassandra/pom.xml to
/Users/sanjiva/.m2/repository/org/apache/cassandra/apache-cassandra/0.7.0-wso2v1/apache-cassandra-0.7.0-wso2v1.pom
[INFO] [install:install-file {execution: install-cassandra jar}]
[INFO] Installing
/Users/sanjiva/Projects/carbon/dependencies/cassandra/build/apache-cassandra-0.7.0.jar
to
/Users/sanjiva/.m2/repository/org/apache/cassandra/apache-cassandra/0.7.0-wso2v1/apache-cassandra-0.7.0-wso2v1.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error installing artifact
'org.apache.cassandra:apache-cassandra:jar': Error installing artifact: File
/Users/sanjiva/Projects/carbon/dependencies/cassandra/build/apache-cassandra-0.7.0.jar
does not exist

[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 5 seconds
[INFO] Finished at: Sun Mar 20 15:21:30 IST 2011
[INFO] Final Memory: 18M/81M
[INFO]



-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman  CEO; WSO2, Inc.;  http://wso2.com/
email: sanj...@wso2.com; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


  1   2   3   4   >