Re: [Dev] [Architecture] [Pet Project] Velocity Template Mediator for ESB

2016-05-02 Thread Asanka Dissanayake
Hi Chanaka,
is this the correct place to put the mediator. Wanted to double check ..
wso2-synapse/modules/core/src/main/java/org/apache/synapse/mediators/builtin

Thanks,
Asanka D

On Wed, Mar 16, 2016 at 10:41 PM, Chanaka Fernando <chana...@wso2.com>
wrote:

> Hi Asanka,
>
> you can send your PR to master branch.
>
> On Thu, Mar 17, 2016 at 8:06 AM, Asanka Dissanayake <asan...@wso2.com>
> wrote:
>
>> Thanks Chanaka, will do.
>> What is the branch I should send the pull request ?
>>
>> Thanks,
>> Asanka D
>>
>> On Wed, Mar 16, 2016 at 12:21 AM, Chanaka Fernando <chana...@wso2.com>
>> wrote:
>>
>>> Hi Asanka,
>>>
>>> I had a look into the feature set and it looks really useful. Please
>>> send us a PR and we will include this in a future ESB release.
>>>
>>> On Wed, Mar 16, 2016 at 9:05 AM, Asanka Dissanayake <asan...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>> I am developing a new Mediator for ESB as a pet project. After noticing
>>>> some draw backs in Payload Factory I thought of writing this one.
>>>>
>>>> Code can be found at :
>>>> https://github.com/asanka88/VelocityTemplateMediator
>>>>
>>>> @ESB Team:
>>>> If this make any sense, I am more than happy to contribute this with
>>>> more improvements. This is still under development. I will upload samples
>>>> soon. Your feedback is highly appreciated.
>>>> Why Velocity Template Mediator ?
>>>>
>>>> Currently synapse comes with built in payloadFactory mediator. But
>>>> there are several drawbacks in it.
>>>>
>>>> 1 Doesn’t support arrays : You cannot iterate though an
>>>> array/collection and add those elements to the payload.
>>>>
>>>> 2 Doesn’t support conditional expressions: In case you want to add
>>>> elements based on conditions payloadFactory doesn’t support it.
>>>>
>>>> 3 Readability is less since numbered placeholders like $1,$2 are used
>>>>
>>>> <https://github.com/asanka88/VelocityTemplateMediator#how-velocity-template-mediator-solve-them>How
>>>> Velocity Template Mediator solve them?
>>>>
>>>> Velocity template mediator uses well known Apache Velocity as the
>>>> template engine. You can do whatever you can do with Velocity in side this.
>>>> Iterate through collections, check conditions etc. In addition to that
>>>> since we are using place holders like $name,$age for the variables ,so it
>>>> improves the readability as well.
>>>>
>>>> On the other hand, there was no such a thing in Synapse to create a
>>>> property out of a template.
>>>>
>>>> For Example: When you call a soap back end, suppose you have to send a
>>>> user name token in SOAP Header. Suppose there are several back end calls
>>>> you need to make and in every call you need to pass the user name token.
>>>>
>>>> With the payload factory , you will have to create that part every
>>>> time. Instead if you can create a property one time using a template and
>>>> save it in the message context , you can reuse it without generating again
>>>> and again.
>>>>
>>>> With the Velocity Template Mediator , it supports body,property,soap
>>>> header,envelope as the targets. You can put the generated output to anyof
>>>> these. And it supports both xml and json formats
>>>>
>>>> Sample Syntax
>>>>
>>>> 
>>>>
>>>>   
>>>>  $name
>>>>  $age
>>>>   
>>>>
>>>>
>>>>   
>>>>   
>>>>
>>>>>>> property-type="string|om" scope="synapse|axis2|operation" />
>>>> 
>>>>
>>>>
>>>> Thanks,
>>>> Asanka D
>>>>
>>>> --
>>>>
>>>>
>>>> *Asanka DissanayakeSoftware Engineer*
>>>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>> <http://wso2.com/>*
>>>>
>>>> *email: asan...@wso2.com <ruch...@wso2.com>,   blog:
>>>> cyberwaadiya.blogspot.com
>>>> <http://cyberwaadiya.blogspot.com>, asankastechtalks.wordpress.com
>>>> <http://asankastechtalks.wordpress.com>  mobile: +94 7

Re: [Dev] [Architecture] [Pet Project] Velocity Template Mediator for ESB

2016-03-19 Thread Asanka Dissanayake
Thanks Chanaka, will do.
What is the branch I should send the pull request ?

Thanks,
Asanka D

On Wed, Mar 16, 2016 at 12:21 AM, Chanaka Fernando <chana...@wso2.com>
wrote:

> Hi Asanka,
>
> I had a look into the feature set and it looks really useful. Please send
> us a PR and we will include this in a future ESB release.
>
> On Wed, Mar 16, 2016 at 9:05 AM, Asanka Dissanayake <asan...@wso2.com>
> wrote:
>
>> Hi All,
>> I am developing a new Mediator for ESB as a pet project. After noticing
>> some draw backs in Payload Factory I thought of writing this one.
>>
>> Code can be found at :
>> https://github.com/asanka88/VelocityTemplateMediator
>>
>> @ESB Team:
>> If this make any sense, I am more than happy to contribute this with more
>> improvements. This is still under development. I will upload samples soon.
>> Your feedback is highly appreciated.
>> Why Velocity Template Mediator ?
>>
>> Currently synapse comes with built in payloadFactory mediator. But there
>> are several drawbacks in it.
>>
>> 1 Doesn’t support arrays : You cannot iterate though an array/collection
>> and add those elements to the payload.
>>
>> 2 Doesn’t support conditional expressions: In case you want to add
>> elements based on conditions payloadFactory doesn’t support it.
>>
>> 3 Readability is less since numbered placeholders like $1,$2 are used
>>
>> <https://github.com/asanka88/VelocityTemplateMediator#how-velocity-template-mediator-solve-them>How
>> Velocity Template Mediator solve them?
>>
>> Velocity template mediator uses well known Apache Velocity as the
>> template engine. You can do whatever you can do with Velocity in side this.
>> Iterate through collections, check conditions etc. In addition to that
>> since we are using place holders like $name,$age for the variables ,so it
>> improves the readability as well.
>>
>> On the other hand, there was no such a thing in Synapse to create a
>> property out of a template.
>>
>> For Example: When you call a soap back end, suppose you have to send a
>> user name token in SOAP Header. Suppose there are several back end calls
>> you need to make and in every call you need to pass the user name token.
>>
>> With the payload factory , you will have to create that part every time.
>> Instead if you can create a property one time using a template and save it
>> in the message context , you can reuse it without generating again and
>> again.
>>
>> With the Velocity Template Mediator , it supports body,property,soap
>> header,envelope as the targets. You can put the generated output to anyof
>> these. And it supports both xml and json formats
>>
>> Sample Syntax
>>
>> 
>>
>>   
>>  $name
>>  $age
>>   
>>
>>
>>   
>>   
>>
>>> property-type="string|om" scope="synapse|axis2|operation" />
>> 
>>
>>
>> Thanks,
>> Asanka D
>>
>> --
>>
>>
>> *Asanka DissanayakeSoftware Engineer*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>> <http://wso2.com/>*
>>
>> *email: asan...@wso2.com <ruch...@wso2.com>,   blog:
>> cyberwaadiya.blogspot.com
>> <http://cyberwaadiya.blogspot.com>, asankastechtalks.wordpress.com
>> <http://asankastechtalks.wordpress.com>  mobile: +94 71 8373821*
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Thank you and Best Regards,
> Chanaka Fernando
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 773337238
> Blog : http://soatutorials.blogspot.com
> LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
> Twitter:https://twitter.com/chanakaudaya
>
>
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com/>*

*email: asan...@wso2.com <ruch...@wso2.com>,   blog:
cyberwaadiya.blogspot.com
<http://cyberwaadiya.blogspot.com>, asankastechtalks.wordpress.com
<http://asankastechtalks.wordpress.com>  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Pet Project] Velocity Template Mediator for ESB

2016-03-15 Thread Asanka Dissanayake
Hi All,
I am developing a new Mediator for ESB as a pet project. After noticing
some draw backs in Payload Factory I thought of writing this one.

Code can be found at : https://github.com/asanka88/VelocityTemplateMediator

@ESB Team:
If this make any sense, I am more than happy to contribute this with more
improvements. This is still under development. I will upload samples soon.
Your feedback is highly appreciated.
Why Velocity Template Mediator ?

Currently synapse comes with built in payloadFactory mediator. But there
are several drawbacks in it.

1 Doesn’t support arrays : You cannot iterate though an array/collection
and add those elements to the payload.

2 Doesn’t support conditional expressions: In case you want to add elements
based on conditions payloadFactory doesn’t support it.

3 Readability is less since numbered placeholders like $1,$2 are used
How
Velocity Template Mediator solve them?

Velocity template mediator uses well known Apache Velocity as the template
engine. You can do whatever you can do with Velocity in side this. Iterate
through collections, check conditions etc. In addition to that since we are
using place holders like $name,$age for the variables ,so it improves the
readability as well.

On the other hand, there was no such a thing in Synapse to create a
property out of a template.

For Example: When you call a soap back end, suppose you have to send a user
name token in SOAP Header. Suppose there are several back end calls you
need to make and in every call you need to pass the user name token.

With the payload factory , you will have to create that part every time.
Instead if you can create a property one time using a template and save it
in the message context , you can reuse it without generating again and
again.

With the Velocity Template Mediator , it supports body,property,soap
header,envelope as the targets. You can put the generated output to anyof
these. And it supports both xml and json formats

Sample Syntax


   
  
 $name
 $age
  
   
   
  
  
   
   



Thanks,
Asanka D

-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: asan...@wso2.com ,   blog:
cyberwaadiya.blogspot.com
, asankastechtalks.wordpress.com
  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] foreach use

2016-01-11 Thread Asanka Dissanayake
Hi John,
Please find my comments inline.

On Tue, Jan 12, 2016 at 12:30 AM, John Q  wrote:

> Hello,
>
> I have a proxy service that looks for a file in a folder (vfs transport)
> the file has the following content
>
> 
>   
>abc
>
> 
> 
>   
>def
>   
> 
> I need to call a webservice that register the name, so I need to iterate
> over the b elements, create custom payload and make a call to the endpoint,
> but I need to make it sequentially, that's why I cannot use iterate
> mediator, I have read that I have to use foreach mediator instead, but I'm
> having some issues with the foreach, can any body give me some basic
> configuration for this example?
>

ForEach mediator is basically about message Transformations. *You cannot
call a web service inside a foreach mediator*. For your use case i think
the ideal solution is using an iterator mediator with sequential parameter
set to true.

By using an aggregate mediator
 you can aggregate
the responses from the back end.

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


-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com *

*email: asan...@wso2.com ,   blog:
cyberwaadiya.blogspot.com
, asankastechtalks.wordpress.com
  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService

2015-03-28 Thread Asanka Dissanayake
On Sat, Mar 28, 2015 at 11:54 AM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi Asanka,

 This is not reverting back what was done early. These methods will be
 called via OSGI calls in future too.
 Only change will be these methods will be moved from
 ApplicationManagementService to ApplicationInfoService.
 So no osgi methods will be available in ApplicationManagementService.
 Instead all application related osgi methods will be in
 ApplicationInfoService.

 Did I clear your doubt ?

yes ,got it :)
ApplicationManagementService will no longer be a osgi service and it will
only be a soap service.
What is the purpose of doing this?


 On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com
 wrote:

 Hi Mahesh,
 Please find my comments inline.

 On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi all,
 Im working on [a]

 At the moment we have
 1. ApplicationManagementService
 2. ApplicationInfoService
 3. ApplicationUserMgtService

 All the tasks/methods that UI needs to do related with users will be in
 ApplicationUserMgtService (IMO ideally this service should be renamed as
 UserManagementService).
 All the tasks/methods that UI needs to related with applications will be
 in ApplicationInfoService.

 +1 for refactoring the names


 At the moment ApplicationManagementService has both user related tasks
 as well as application related tasks.
 What I'm going to do is identify those methods and move accordingly to
 either ApplicationUserMgtService or ApplicationInfoService. In that way
 ApplicationManagementService will no longer be a osgi service and it will
 only be a soap service.

 Could you please explain the rationale behind the decision of removing
 the OSGInes ? AFAIK, these services are called by Jaggery App and some
 other components too.
  AFAIR, we did a refactoring once in Jaggery App , removing all the web
 service calls and made them OSGI service calls .Reason behind that was,
 when there is a web service call it consumes a 1 thread in the connection
 pool just to call to a service in the same server. So we did that to save
 some connections and call something that is available during the runtime.

 What is the reason to revert that back ? Is that something related to
 clustering?


 Here are the methods that I have identified,

 [1] - getApplication(applicationKey)

 [2] - deleteApplication(applicationKey)

 [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain);

 [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain);

 [5] -
 getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey,
 userName);

 [6] - getAllVersionsOfApplication(tenantDomain, applicationKey);

 [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version);

 [8] -
 updateRxtWithPromoteState(appKey,nextStage,version,Promote,state);

 [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version,
 isBuild);

 [10] - publishSetApplicationAutoDeploy(applicationKey, stageName,
 version, isDeploy);


 IMO all above methods should be moved to ApplicationInfoService. WDYT ?


 [a] - https://wso2.org/jira/browse/APPFAC-3011

 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService

2015-03-28 Thread Asanka Dissanayake
Hi Mahesh,
Please find my comments inline.

On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi all,
 Im working on [a]

 At the moment we have
 1. ApplicationManagementService
 2. ApplicationInfoService
 3. ApplicationUserMgtService

 All the tasks/methods that UI needs to do related with users will be in
 ApplicationUserMgtService (IMO ideally this service should be renamed as
 UserManagementService).
 All the tasks/methods that UI needs to related with applications will be
 in ApplicationInfoService.

+1 for refactoring the names


 At the moment ApplicationManagementService has both user related tasks as
 well as application related tasks.
 What I'm going to do is identify those methods and move accordingly to
 either ApplicationUserMgtService or ApplicationInfoService. In that way
 ApplicationManagementService will no longer be a osgi service and it will
 only be a soap service.

Could you please explain the rationale behind the decision of removing the
OSGInes ? AFAIK, these services are called by Jaggery App and some other
components too.
 AFAIR, we did a refactoring once in Jaggery App , removing all the web
service calls and made them OSGI service calls .Reason behind that was,
when there is a web service call it consumes a 1 thread in the connection
pool just to call to a service in the same server. So we did that to save
some connections and call something that is available during the runtime.

What is the reason to revert that back ? Is that something related to
clustering?


 Here are the methods that I have identified,

 [1] - getApplication(applicationKey)

 [2] - deleteApplication(applicationKey)

 [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain);

 [4] - getApplicationStatus(applicationKey, version, stage, tenantDomain);

 [5] -
 getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey,
 userName);

 [6] - getAllVersionsOfApplication(tenantDomain, applicationKey);

 [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version);

 [8] - updateRxtWithPromoteState(appKey,nextStage,version,Promote,state);

 [9] - publishSetApplicationAutoBuild(applicationKey, stageName, version,
 isBuild);

 [10] - publishSetApplicationAutoDeploy(applicationKey, stageName, version,
 isDeploy);


 IMO all above methods should be moved to ApplicationInfoService. WDYT ?


 [a] - https://wso2.org/jira/browse/APPFAC-3011

 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService

2015-03-28 Thread Asanka Dissanayake
Yes ,Punnadi. I get the point that all the methods are moved to
ApplicationInfoService.Given that all the methods are moved to
ApplicationInfoService and whoever wants to consume those methods can use
ApplicationInfoService.
But why ApplicationManagementService is going to be a SOAP service, if all
the methods were in this class moved to another class why can't it cannot
just deprecated ? What is the goal trying to achieve by making it only a
SOAP service.




On Sat, Mar 28, 2015 at 1:27 PM, Punnadi Gunarathna punn...@wso2.com
wrote:

 Hi Asanka,

 Yes, ApplicationManagementService will become a simple axis2 device and
 it's osginess will be removed. Why we needed this refactoring is, currently
 it contains large number of the methods despite their actual place. We have
 a separate class called ApplicationInfoService, which should contain all
 the application specific methods and  ApplicationUserMgtService which
 should contain the user specific methods. Those classes are OSGi services.
 On Mar 28, 2015 9:25 PM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi Asanka,

 This is not reverting back what was done early. These methods will be
 called via OSGI calls in future too.
 Only change will be these methods will be moved from
 ApplicationManagementService to ApplicationInfoService.
 So no osgi methods will be available in ApplicationManagementService.
 Instead all application related osgi methods will be in
 ApplicationInfoService.

 Did I clear your doubt ?

 On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com
 wrote:

 Hi Mahesh,
 Please find my comments inline.

 On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi all,
 Im working on [a]

 At the moment we have
 1. ApplicationManagementService
 2. ApplicationInfoService
 3. ApplicationUserMgtService

 All the tasks/methods that UI needs to do related with users will be in
 ApplicationUserMgtService (IMO ideally this service should be renamed as
 UserManagementService).
 All the tasks/methods that UI needs to related with applications will
 be in ApplicationInfoService.

 +1 for refactoring the names


 At the moment ApplicationManagementService has both user related tasks
 as well as application related tasks.
 What I'm going to do is identify those methods and move accordingly to
 either ApplicationUserMgtService or ApplicationInfoService. In that way
 ApplicationManagementService will no longer be a osgi service and it will
 only be a soap service.

 Could you please explain the rationale behind the decision of removing
 the OSGInes ? AFAIK, these services are called by Jaggery App and some
 other components too.
  AFAIR, we did a refactoring once in Jaggery App , removing all the web
 service calls and made them OSGI service calls .Reason behind that was,
 when there is a web service call it consumes a 1 thread in the connection
 pool just to call to a service in the same server. So we did that to save
 some connections and call something that is available during the runtime.

 What is the reason to revert that back ? Is that something related to
 clustering?


 Here are the methods that I have identified,

 [1] - getApplication(applicationKey)

 [2] - deleteApplication(applicationKey)

 [3] - getApplicationUrl(applicationKey, version, stage, tenantDomain);

 [4] - getApplicationStatus(applicationKey, version, stage,
 tenantDomain);

 [5] -
 getAllVersionsOfApplicationPerUser(modManager.getTenantDomain(),applicationKey,
 userName);

 [6] - getAllVersionsOfApplication(tenantDomain, applicationKey);

 [7] - getBuildandDelpoyedStatus(applicationKey,tenantDomain,version);

 [8] -
 updateRxtWithPromoteState(appKey,nextStage,version,Promote,state);

 [9] - publishSetApplicationAutoBuild(applicationKey, stageName,
 version, isBuild);

 [10] - publishSetApplicationAutoDeploy(applicationKey, stageName,
 version, isDeploy);


 IMO all above methods should be moved to ApplicationInfoService. WDYT ?


 [a] - https://wso2.org/jira/browse/APPFAC-3011

 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*




 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

Re: [Dev] Converting JSON to SOAP and vise versa in ESB

2015-02-04 Thread Asanka Dissanayake
Hi Uvindra,
Seems message failing during the building. And it picks the wrong formatter
it seems. Set the content header in the curl as follows.

curl -i -POST -H 'Accept: application/json' -H
'Content-Type:application/json' -d '{celsius:12}' http://IP
Address:8280/api context

Thanks,
Asanka D

On Wed, Feb 4, 2015 at 9:03 PM, Uvindra Dias Jayasinha uvin...@wso2.com
wrote:

 Im trying out Payload and Script mediator functionality to call this SOAP
 service,


 http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit


 by simulating a REST API using ESB 4.8.1, here is the synapse
 configuration I have defined


 api xmlns=http://ws.apache.org/ns/synapse; name=tempAPI
 context=/temp
resource methods=POST GET
   inSequence
  log level=custom
 property name=IN_MESSAGE
 value=IN_MESSAGE/property
  /log
  property name=messageType value=application/xml
 scope=axis2/property
  payloadFactory media-type=xml
 format
soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:web=
 http://www.w3schools.com/webservices/;
   soapenv:Header/soapenv:Header
   soapenv:Body
  web:CelsiusToFahrenheit
 web:Celsius$1/web:Celsius
  /web:CelsiusToFahrenheit
   /soapenv:Body
/soapenv:Envelope
 /format
 args
arg evaluator=json expression=$.celsius/arg
 /args
  /payloadFactory
  send
 endpoint
address uri=
 http://www.w3schools.com/webservices/tempconvert.asmx?op=CelsiusToFahrenheit;
 format=soap11/address
 /endpoint
  /send
   /inSequence
   outSequence
  log level=custom
 property name=OUT_MESSAGE
 value=OUT_MESSAGE/property
  /log
  property name=messageType value=application/json
 scope=axis2/property
  script language=jsvar temp =
 mc.getPayloadXML()..*::CelsiusToFahrenheitResponse.CelsiusToFahrenheitResult.toString();
 mc.setPayloadJSON({
 Temp : {Faran :
 temp} });/script
  send/send
   /outSequence
/resource
 /api


 When I invoke the above using,

 curl -i -POST -H 'Accept: application/json' -d '{celsius:12}' http://IP
 Address:8280/api context

 I get the following exception,

 6:53:00,577 RelayUtils  Error while building Passthrough stream
 java.lang.StringIndexOutOfBoundsException: String index out of range: -1
 at java.lang.String.substring(String.java:1937)
 at
 org.apache.axis2.builder.XFormURLEncodedBuilder.extractParametersFromRequest(XFormURLEncodedBuilder.java:174)
 at
 org.apache.axis2.builder.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:112)
 at
 org.apache.synapse.commons.builders.XFormURLEncodedBuilder.processDocument(XFormURLEncodedBuilder.java:36)
 at
 org.apache.synapse.transport.passthru.util.DeferredMessageBuilder.getDocument(DeferredMessageBuilder.java:118)
 at
 org.apache.synapse.transport.passthru.util.RelayUtils.builldMessage(RelayUtils.java:107)
 at
 org.apache.synapse.transport.passthru.util.RelayUtils.buildMessage(RelayUtils.java:82)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:68)
 at
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47)
 at
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131)
 at org.apache.synapse.rest.Resource.process(Resource.java:297)
 at org.apache.synapse.rest.API.process(API.java:341)
 at
 org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76)
 at
 org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63)
 at
 org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:220)
 at
 org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processNonEntityEnclosingRESTHandler(ServerWorker.java:344)
 at
 org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:385)
 at
 org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
 at
 org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
 at 

Re: [Dev] [AF][SS] RSSAdminService method 'isDatabaseUserExist' requires the full database username with

2015-01-08 Thread Asanka Dissanayake
Hi Danushka,
Please find my comments inline.

On Thu, Jan 8, 2015 at 3:56 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi All

 @Bhathiya : This is about usability. We cannot let user do something and
 let it fail and then let know the user that you cannot do this. We need to
 inform that to user when he try to do it. That's what we are trying to
 achieve here.


How are you going to verify this. After user clicks Submit ? you gonna pass
the user name to back end and check whether it is valid. In that case
trying to add the user and handle the exception has same weight I think. Or
else if you want to improve the usability what you can do is, get the
database user names from backned without hashed tenant domain prefix
during the page loading  and verify it within there . You can write
validate logic in the onblur event of the input field.

Just my two cents .



 @Anuruddha :
 However there are few notes. In [1] what Dimuthu mentioned is to use af
 runtime database data for this.

 When we use that you need to have full name. One way is to use same logic
 used by SS in our code to generate the code in our side as well. Downside
 of this is if SS change this we need to change it in our code as well. Or
 else we can search using some pattern like this in db.
 given_db_user_name_%. However in the latter case the regular expression
 should be carefully selected.

 @Dimuthu :
 WDYT?

 [1] https://wso2.org/jira/browse/APPFAC-2723

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Thu, Jan 8, 2015 at 11:55 PM, Bhathiya Jayasekara bhath...@wso2.com
 wrote:

 Hi Anurudhdha,

 In this use case, why are you trying to check the user existence? Are you
 trying to do it before user creation? In that case, you don't have to check
 it yourself because create user service will do it internally, and throw an
 exception if the user exists. So your try-catch approach is fine.

 Thanks,
 Bhathiya

 On Tue, Jan 6, 2015 at 7:19 PM, Anuruddha Premalal anurud...@wso2.com
 wrote:

 Hi,

 I'm working on APPFAC-2723 and there is a requirement to check whether
 a user is already created in storage server.

 In RssAdminService there is a method to check whether a database user
 exists.

 Issue with this method is, there has a hashed tenant domain value
 appended to the username once we create  a databaseuser, and it requires
 the full name (with the appended value) to check the user existence.

 Isn't it the RSSAdmin service responsibility to append the hashed value
 and perform the search?.

 For now I can use a try catch block in the jaggery layer and handle the
 duplicate user creation exception.

 AppFactory_Resource_DB has this full user name and perform
 isDataBaseuserExist operation. However this method always resurns false
 because we haven't passed the appended hashed value with the username.

 Shall we remove this isDataBaseUserExist method from the ResourceManger
 and use try catch approach to check the user existence?

 Regards,
 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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



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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] getPayloadJSON returning an empty object

2015-01-08 Thread Asanka Dissanayake
Hi Maz,
What is the JSON builder and formatter you are using? You can find them in
Carbon_Home/repository/conf/axis2/axis2.xml under Formatters and Builders.

Thanks,
Asanka

On Thu, Jan 8, 2015 at 8:14 PM, Bhathiya Jayasekara bhath...@wso2.com
wrote:

 Hi Maz,

 I quickly tried out your config and it worked fine for me. I'm copying my
 full config here for your reference.

 api xmlns=http://ws.apache.org/ns/synapse; name=jsonTest
 context=/json
resource methods=POST
   inSequence
  loopback/loopback
   /inSequence
   outSequence
  *script language=jsvar older = mc.getPayloadJSON(); var
 newer=older; mc.setPayloadJSON(newer);/script*
  send/send
   /outSequence
/resource
 /api


 *Request:*
 curl -X POST -d {\origin\:\202.37.75.130\} -H Content-Type:
 application/json http://10.113.56.222:8281/json

 *Response:*
 {origin:202.37.75.130}

 Hope this helps.

 Thanks,
 Bhathiya

 On Fri, Jan 9, 2015 at 3:55 AM, Maz Lakadia mlaka...@hotmail.com wrote:

 I am doing some very simple script mediation as a test to see if I can
 change the payload being returned by my server.

 My unmediated payload comes out as:

 {origin:202.37.75.130}

 Then I try doing a very simple check to see whether get and set work for
 payloads:

 script language=js
 var older = mc.getPayloadJSON();
 var newer=older;
 mc.setPayloadJSON(newer);
 /script

 My result from this is:

 {jsonObject:}

 I have done testing that shows that setPayloadJSON() works, which means
 that my getPayloadJSON must be returning an empty object.

 Looking at the log file shows this:

 ERROR {org.apache.synapse.mediators.bsf.ScriptMessageContext} -  JSON object 
 is null. {org.apache.synapse.mediators.bsf.ScriptMessageContext}

 Is there anyone else having this error? Is this happening because the
 Payload is actually a Java object rather than a JSON object?


 Thanks,
 Maz

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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax https://twitter.com/bhathiyax*
 *Blog: http://movingaheadblog.blogspot.com
 http://movingaheadblog.blogspot.com/*

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Build WSO2 Carbon

2014-10-07 Thread Asanka Dissanayake
On Tue, Oct 7, 2014 at 1:51 PM, Chamin Nalinda cha...@wso2.com wrote:

 link that I followed. (i.e. 1)

 [1]
 http://arunasujith.blogspot.com/2013/12/how-to-build-wso2-carbon-420-tutorial.html

 On Tue, Oct 7, 2014 at 1:50 PM, Chamin Nalinda cha...@wso2.com wrote:

 Hi All,

 I followed the  steps in [1] in building the Carbon.

 When I run the following command I get build failure.

 command: mvn clean install -Dmaven.test.skip=true

  start ---

 [INFO] Scanning for projects...
 [INFO]
 
 [INFO] BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 0.134s
 [INFO] Finished at: Tue Oct 07 13:47:18 IST 2014
 [INFO] Final Memory: 5M/490M
 [INFO]
 
 [ERROR] The goal you specified requires a project to execute but there is
 no POM in this directory (/home/coolck/Carbon/CarbonBuild/orbit). Please
 verify you invoked Maven from the correct directory. - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException


 - end ---

 Appreciate your help.


Seems there is no pom file in the /home/coolck/Carbon/CarbonBuild/orbit.
Checkout https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.2.0 and
build the orbit.

Thanks.



 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com
 Blog: http://techspiro.blogspot.com/




 --
 *Chamin Nalinda*

 Intern - Engineering
 WSO2 Inc. http://www.wso2.com
 lean.enterprise.middleware

 Mobile: (+94) 77 241 66 04
 Linkedin: https://www.linkedin.com/in/chaminnalinda
 Web: http://www.ckreativity.com
 Blog: http://techspiro.blogspot.com/


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Tenant creation admin password

2014-09-25 Thread Asanka Dissanayake
Hi All,
IMHO password validation should be customizable,
I think the properties
Property name=PasswordJavaRegEx^[\S]{5,30}$/Property
Property name=PasswordJavaScriptRegEx^[\S]{5,30}$/Property
 in user-mgt.xml should be used to validate the password. property names
implies the places that particular regular expression should be used. So
when it comes to BE, *PasswordJavaRegEx* should be used.


Thanks,
Asanka D



On Thu, Sep 25, 2014 at 11:33 AM, Godwin Amila Shrimal god...@wso2.com
wrote:

 Hi Dhanushka,

 +1, Yes. In both scenario currently it checked the length in front end and
 I think its not reliable.

 On Thu, Sep 25, 2014 at 11:09 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Goodwin
 +1 for same validation. IMHO it should be in back end. So whole platform
 will eventually use it. WDYT?
 On Sep 25, 2014 10:52 AM, Godwin Amila Shrimal god...@wso2.com wrote:

 Hi,

 In all WSO2 Carbon product it validates admin password length as at
 least 6 characters long when add *Tenant*, But in AppFactory admin
 password minimum character length is 5. Any reason for this ? I think we
 have to perform same validation on this as well.


 Thanks
 Godwin



 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila

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




 --
 *Godwin Amila Shrimal*
 Senior Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: *+94772264165*
 linkedin: *http://lnkd.in/KUum6D http://lnkd.in/KUum6D*
 twitter: https://twitter.com/godwinamila

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Updating ApplicationInfoService

2014-09-14 Thread Asanka Dissanayake
On Mon, Sep 15, 2014 at 10:39 AM, Anuruddha Premalal anurud...@wso2.com
wrote:

 Hi All,

 There was a previous discussion to improve AF home page load time by
 caching userhome information. But there was an issue in caching since
 *userHomeInfo* includes a dynamic data element,
 *applicationCreationStatus.*

 Currently we are getting all the userapps info (which are in pending and
 complete state)  from a single end-point this blocks us from caching the
 user home. This user application list is a frequently accessed data and
 caching this could help to improve the homepage load time.

 IMO we should implement a separate api-end point[1] to get these
 separately. WDYT?

Earlier parameter  ApplicationCreationStatus applicationCreationStatus
wasn't passed to this method. Can some one explain the reason for passing
this parameter?, +1 for a separate method which takes only the userName as
the input argument.


 [1] getApplicationsOfTheUser(String userName, ApplicationCreationStatus
 applicationCreationStatus)

 Regards,
 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Updating ApplicationInfoService

2014-09-14 Thread Asanka Dissanayake
On Mon, Sep 15, 2014 at 10:43 AM, Asanka Dissanayake asan...@wso2.com
wrote:



 On Mon, Sep 15, 2014 at 10:39 AM, Anuruddha Premalal anurud...@wso2.com
 wrote:

 Hi All,

 There was a previous discussion to improve AF home page load time by
 caching userhome information. But there was an issue in caching since
 *userHomeInfo* includes a dynamic data element,
 *applicationCreationStatus.*

 Currently we are getting all the userapps info (which are in pending and
 complete state)  from a single end-point this blocks us from caching the
 user home. This user application list is a frequently accessed data and
 caching this could help to improve the homepage load time.

 IMO we should implement a separate api-end point[1] to get these
 separately. WDYT?

 Earlier parameter  ApplicationCreationStatus applicationCreationStatus
 wasn't passed to this method. Can some one explain the reason for passing
 this parameter?, +1 for a separate method which takes only the userName as
 the input argument.

Sorry for the confusion, I misinterpreted the mail. I had an offline chat
with Anuruddha,

Now , when the user starts the application creation and loads the user
home, then user can see all applications including partially created
applications as well. So this will solve that problem as well. +1 for
implementing this.


 [1] getApplicationsOfTheUser(String userName, ApplicationCreationStatus
 applicationCreationStatus)

 Regards,
 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] implementing delete all application for tenant

2014-09-11 Thread Asanka Dissanayake
Hi Laksman,
Please find the code segment in-line.

On Thu, Sep 11, 2014 at 2:40 PM, Lakshman Udayakantha lakshm...@wso2.com
wrote:

 Hi,

 I’m implementing below method in *ApplicationManagementService.java* in
 *org.wso2.carbon.appfactory.application.mgt* to delete all the
 applications related to a tenant in APP Factory

 public void deleteAllApplicationsOfTenant(String domainName){

RealmService realmService = Util.getRealmService();
TenantManager tenantManager = realmService.getTenantManager();
try {
Tenant tenant =
tenantManager.getTenant(tenantManager.getTenantId(domainName));
String adminName = tenant.getAdminName();
} catch (UserStoreException e) {
e.printStackTrace();
}

 }

 there is a method in same class to delete an application

 public boolean deleteApplication(Application application, String
 userName, String domainName) throws AppFactoryException {

 }

 we need userName to delete the application here. we need to get the tenant
 admin as a user. how do we get the tenant admin user?

 Thanks

 --
 Lakshman Udayakantha
 Software Engineer, WSO2
 Mobile: *0711241005*

 *lakshm...@wso2.com lakshm...@wso2.com*


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Kavith Lokuhewage

2014-08-04 Thread Asanka Dissanayake
Congratzz Kavith!!


On Mon, Aug 4, 2014 at 11:53 AM, Harsha Kumara hars...@wso2.com wrote:

 Congratulations Kavith!


 On Mon, Aug 4, 2014 at 11:50 AM, Jayanga Dissanayake jaya...@wso2.com
 wrote:

 Congratulations Kavith

 *Jayanga Dissanayake*
 Senior Software Engineer
 WSO2 Inc. - http://wso2.com/

 lean . enterprise . middleware
 email: jaya...@wso2.com
 mobile: +94772207259


 On Mon, Aug 4, 2014 at 11:49 AM, Dakshika Jayathilaka daksh...@wso2.com
 wrote:

 Congratulations..!

 *Dakshika Jayathilaka*
 Software Engineer
 WSO2, Inc.
 lean.enterprise.middleware
 0771100911


 On Mon, Aug 4, 2014 at 6:18 AM, Waruna Jayaweera waru...@wso2.com
 wrote:

 Congratulations..!


 On Mon, Aug 4, 2014 at 11:43 AM, Shani Ranasinghe sh...@wso2.com
 wrote:

 Congratulations Kavith.


 On Mon, Aug 4, 2014 at 11:41 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome kavith Lokuhewage as a WSO2
 Committer.

 Kavith has  been a valuable contributor for WSO2 Developer Studio
 since he joined WSO2. In recognition of his contributions to WSO2, he has
 been voted as a WSO2 Committer.

 Kavith, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha

 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118*

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




 --
 Thanks and Regards
 *,Shani Ranasinghe*

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




 --
 Regards,

 Waruna Lakshitha Jayaweera
 Software Engineer
 WSO2 Inc; http://wso2.com
 phone: +94713255198

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



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



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




 --
 Harsha Kumara
 Software Engineer, WSO2 Inc.
 Mobile: +94775505618
 Blog:harshcreationz.blogspot.com

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Waruna Perera

2014-08-01 Thread Asanka Dissanayake
Congratz Waruna !!


On Fri, Aug 1, 2014 at 1:22 PM, Krishantha Samaraweera krishan...@wso2.com
wrote:

 Hi all,

 It's my distinct pleasure to welcome Waruna Perera as a WSO2 Committer. He
 has been a valuable contributor for test automation and WSO2 product
 platform. In acknowledgement of his contributions, he's been voted as a
 WSO2 Committer. Welcome aboard and keep up the good work!

 Thanks,
 Krishantha.

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Performance improvement

2014-07-23 Thread Asanka Dissanayake
On Wed, Jul 23, 2014 at 11:40 AM, Danushka Fernando danush...@wso2.com
wrote:

 Good job Smaitha. BTW in the jira you mentioned there are two points to
 solve. You have addressed first issue. What happened to the second point.
 (Permission Loading)

IIRC permissions are already cached. You can find the implementation in the
permission cache in the permission module.


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729


 On Wed, Jul 23, 2014 at 10:50 AM, Samith Dassanayake sam...@wso2.com
 wrote:

 Hi Asanka

 Previously it calls ProjectUtils each and every time when the application
 requires type of the application. Since the application type is highly
 unlikely to change I cached the results(app types) based on the tenant
 domain in the session.


 On Wed, Jul 23, 2014 at 10:40 AM, Asanka Dissanayake asan...@wso2.com
 wrote:




 On Wed, Jul 23, 2014 at 10:32 AM, Samith Dassanayake sam...@wso2.com
 wrote:

 Hi,

 As suggested in [1], Instead of calling ProjectUtils(which is a java
 class) directly from jaggery layer, I have exposed those methods as OSGI
 services and cached the results. This improvement reduced the page load
 time of the most of the pages by approximately 100ms.

 Good Work Samith, What kind of results you store cache. Can you mention
 some examples . Caching means those results are stored in session right?


 [1] - https://wso2.org/jira/browse/A
 https://wso2.org/jira/browse/APPFAC-2296*I h*PPFAC-2296
 https://wso2.org/jira/browse/APPFAC-2296

 Thanks.

 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*




 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


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





-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] What is the reason for no action specified jaggery error

2014-07-23 Thread Asanka Dissanayake
On Tue, Jul 22, 2014 at 10:19 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi Amila
 This is how it works. There is the template level in jaggery app (in our
 case appmgt) calling the block level in ajax method. In this specific
 location its calling, can be called with various actions. What this block
 level file would do is just call module level and bring data back and
 return it to the template level. But In this block level it's requires an
 action to call. This is sent as a request parameter. Somehow when we front
 with ELB we get it lost sometimes. My main suspect is ELB since we also saw
 this issue when load testing when we had ELB in local setups. Now we don't
 have ELB there and we don't get the error. Can you enable wire logs in ELB
 and check when this happens?

I could reproduce this issue when doing a rest call from a rest client
without Content-Type header. IMHO that could be the reason. Is there a
possibility of dropping Content-Type header at the ELB intermittently?



 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729


 On Tue, Jul 22, 2014 at 8:22 PM, Amila Maha Arachchi ami...@wso2.com
 wrote:

 Can someone tell me $Subject.

 TID: [0] [AF] [2014-07-22 07:05:35,925] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error: No action specifiednull
 (/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}

 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.JavaScriptException: Error: No action specifiednull
 (/appmgt/site/blocks/buildandrepo/list/ajax/list.jag#299)

 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)

 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)

 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)

 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)

 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)

 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)

 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)

 at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)

 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)

 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)

 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)

 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)

 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)

 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)

 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)

 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)

 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)

 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

 at java.lang.Thread.run(Thread.java:744)

 Caused by: org.mozilla.javascript.JavaScriptException: Error: No 

Re: [Dev] Get the tenant ID from a web app, deployed in a carbon server

2014-07-22 Thread Asanka Dissanayake
On Tue, Jul 22, 2014 at 3:29 PM, Dilini Muthumala dil...@wso2.com wrote:

 Hi,

 Would like to know, how to $subject.

 I tired with,
 PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();

Try with
CarbonContext.getThreadLocalCarbonContext().getTenantId();


 which returned -1, as the tenant id.

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get the tenant ID from a web app, deployed in a carbon server

2014-07-22 Thread Asanka Dissanayake
i


On Tue, Jul 22, 2014 at 3:37 PM, Malintha Adikari malin...@wso2.com wrote:

 Hi Dilini,

 AFAIK, this is a bug. It returns -1 ( which is not a valid tenant Id)
 because we haven't set the tenant id property while we deploy/undeploy the
 web app. There is a reported jira [1] for this issue and I think the issue
 is been fixed now.

I just tried this in AppCloud, and it works .


 [1]https://wso2.org/jira/browse/CARBON-14807

 Regards,
 Malintha Adikari


 On Tue, Jul 22, 2014 at 3:29 PM, Dilini Muthumala dil...@wso2.com wrote:

 Hi,

 Would like to know, how to $subject.

 I tired with,
 PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();

 which returned -1, as the tenant id.

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 Mobile: +94 71 2312958
 Blog:http://malinthas.blogspot.com
 Page:   http://about.me/malintha

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get the tenant ID from a web app, deployed in a carbon server

2014-07-22 Thread Asanka Dissanayake
On Tue, Jul 22, 2014 at 5:03 PM, Gayashan Amarasinghe gayas...@wso2.com
wrote:

 Hi Dilini,

 Did you deploy the web app as super tenant or a tenant? What are the
 server versions you used?

 Method you have used is the proper way to access the tenant Id.

AFAIK you shouldn't use PrivilegedCarbonContext to read information. It is
used to write stuffs to the carbon context.

 However as Malintha has mentioned, there are some bugs when certain
 super-tenant related tasks are logged, which has not been observed for
 tenant-wise tasks. This bug will be fixed with 4.3 release.

 Thanks.

 /Gayashan


 On Tue, Jul 22, 2014 at 3:29 PM, Dilini Muthumala dil...@wso2.com wrote:

  Hi,

 Would like to know, how to $subject.

 I tired with,
 PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();

 which returned -1, as the tenant id.

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get the tenant ID from a web app, deployed in a carbon server

2014-07-22 Thread Asanka Dissanayake
On Tue, Jul 22, 2014 at 5:23 PM, Asanka Dissanayake asan...@wso2.com
wrote:




 On Tue, Jul 22, 2014 at 5:03 PM, Gayashan Amarasinghe gayas...@wso2.com
 wrote:

 Hi Dilini,

 Did you deploy the web app as super tenant or a tenant? What are the
 server versions you used?

 Method you have used is the proper way to access the tenant Id.

 AFAIK you shouldn't use PrivilegedCarbonContext to read information. It is
 used to write stuffs to the carbon context.

For more information:

PrivilegedCarbonContext

PrivilegedCarbonContext is a special subclass of CarbonContext, which
allows you to perform privileged operations such as, setting the tenant ID
and domain, starting or ending tenant flows and more. This class can only
be used by Carbon components that have the permission to get hold of an
instance of the PrivilegedCarbonContext.


CarbonContext
The CarbonContext is designed for normal tenants to retrieve information
from the Carbon runtime. In the super tenant mode, for this to work the
relevant data has to be set so that tenants can retrieve information using
the CarbonContext.

 However as Malintha has mentioned, there are some bugs when certain
 super-tenant related tasks are logged, which has not been observed for
 tenant-wise tasks. This bug will be fixed with 4.3 release.

 Thanks.

 /Gayashan


 On Tue, Jul 22, 2014 at 3:29 PM, Dilini Muthumala dil...@wso2.com
 wrote:

  Hi,

 Would like to know, how to $subject.

 I tired with,
 PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();

 which returned -1, as the tenant id.

 Thanks,
 Dilini

 --
 *Dilini Muthumala*
 Software Engineer,
 WSO2 Inc.

 *E-mail :* dil...@wso2.com
 *Mobile: *+94713 400 029

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




 --
 *Gayashan Amarasinghe*
 Software Engineer | Platform TG
 WSO2, Inc. | http://wso2.com
 lean. enterprise. middleware

 Mobile : +94718314517
 Blog : gayashan-a.blogspot.com

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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Performance improvement

2014-07-22 Thread Asanka Dissanayake
On Wed, Jul 23, 2014 at 10:32 AM, Samith Dassanayake sam...@wso2.com
wrote:

 Hi,

 As suggested in [1], Instead of calling ProjectUtils(which is a java
 class) directly from jaggery layer, I have exposed those methods as OSGI
 services and cached the results. This improvement reduced the page load
 time of the most of the pages by approximately 100ms.

Good Work Samith, What kind of results you store cache. Can you mention
some examples . Caching means those results are stored in session right?


 [1] - https://wso2.org/jira/browse/A
 https://wso2.org/jira/browse/APPFAC-2296*I h*PPFAC-2296
 https://wso2.org/jira/browse/APPFAC-2296

 Thanks.

 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 App Factory start-up error

2014-07-08 Thread Asanka Dissanayake
Hi,
Could you please share user-mgt.xml , which can be found in
APPFAC_HOME/repository/conf

Thanks,
Asanka D


On Tue, Jul 8, 2014 at 2:31 PM, Sabashan Baladevan sabashan...@gmail.com
wrote:

 Hi all,

 We try to start the *wso2appfactory-2.0.0* but, while the server start we
 got error like that


 [2014-07-08 14:19:13,583] ERROR
 {org.wso2.carbon.user.core.common.DefaultRealm} -  Cannot create
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:329)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:195)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:104)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:223)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:101)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:114)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:69)
 at
 org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
 at
 org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 Caused by: org.wso2.carbon.user.core.UserStoreException: Admin user has
 not been created. Error occurs while creating Admin user in primary user
 store.
 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3180)
 at
 org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.init(ReadOnlyLDAPUserStoreManager.java:166)
 at
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager.init(ReadWriteLDAPUserStoreManager.java:102)
 ... 27 more
 Caused by: org.wso2.carbon.user.core.UserStoreException: User name not
 valid. User name must be a non null string with following format,
 [a-zA-Z0-9._-|//]{3,30}$
 at
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager.doAddUserValidityChecks(ReadWriteLDAPUserStoreManager.java:295)
 at
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager.doAddUser(ReadWriteLDAPUserStoreManager.java:236)
 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3174)
 ... 29 more



 Thanks  Regards
 Sabashan

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 App Factory start-up error

2014-07-08 Thread Asanka Dissanayake
Hi,
Admin user name should not be like ad...@admin.com. change it to admin and
try again.

AdminUser
UserNameadmin/UserName
Passwordadmin/Password
/AdminUser

Thanks,
Asanka D


On Tue, Jul 8, 2014 at 3:15 PM, Sabashan Baladevan sabashan...@gmail.com
wrote:

 Hi Asanka,
 I attached the conf. file, Please find the attachment

 Thank You  Regards,
 sabashan


 On Tue, Jul 8, 2014 at 3:06 PM, Asanka Dissanayake asan...@wso2.com
 wrote:

 Hi,
 Could you please share user-mgt.xml , which can be found in
 APPFAC_HOME/repository/conf

 Thanks,
 Asanka D


  On Tue, Jul 8, 2014 at 2:31 PM, Sabashan Baladevan 
 sabashan...@gmail.com wrote:

  Hi all,

 We try to start the *wso2appfactory-2.0.0* but, while the server start
 we got error like that


 [2014-07-08 14:19:13,583] ERROR
 {org.wso2.carbon.user.core.common.DefaultRealm} -  Cannot create
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.createObjectWithOptions(DefaultRealm.java:329)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.initializeObjects(DefaultRealm.java:195)
 at
 org.wso2.carbon.user.core.common.DefaultRealm.init(DefaultRealm.java:104)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.initializeRealm(DefaultRealmService.java:223)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:101)
 at
 org.wso2.carbon.user.core.common.DefaultRealmService.init(DefaultRealmService.java:114)
 at
 org.wso2.carbon.user.core.internal.Activator.startDeploy(Activator.java:69)
 at
 org.wso2.carbon.user.core.internal.BundleCheckActivator.start(BundleCheckActivator.java:61)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
 at
 org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
 Caused by: org.wso2.carbon.user.core.UserStoreException: Admin user has
 not been created. Error occurs while creating Admin user in primary user
 store.
 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3180)
 at
 org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager.init(ReadOnlyLDAPUserStoreManager.java:166)
 at
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager.init(ReadWriteLDAPUserStoreManager.java:102)
 ... 27 more
 Caused by: org.wso2.carbon.user.core.UserStoreException: User name not
 valid. User name must be a non null string with following format,
 [a-zA-Z0-9._-|//]{3,30}$
 at
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager.doAddUserValidityChecks(ReadWriteLDAPUserStoreManager.java:295)
 at
 org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager.doAddUser(ReadWriteLDAPUserStoreManager.java:236)
 at
 org.wso2.carbon.user.core.common.AbstractUserStoreManager.addInitialAdminData(AbstractUserStoreManager.java:3174)
 ... 29 more



 Thanks  Regards
 Sabashan

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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 http://wso2

[Dev] Tenant Lazy loading issue

2014-06-09 Thread Asanka Dissanayake
Hi All,
Issue [1] came across during the testing of Appfacory. It will make the
cloud unstable. Any idea how to fix this?


[1] https://wso2.org/jira/browse/WSAS-1729

Thanks,
Asanka D
-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Lali Devamanthri

2014-05-30 Thread Asanka Dissanayake
Congratz Lali!!!


On Fri, May 30, 2014 at 11:35 AM, Srisunmugaraja Paraparan 
parapa...@wso2.com wrote:

 Congratulations!!!


 On Fri, May 30, 2014 at 11:33 AM, Dunith Dhanushka dun...@wso2.com
 wrote:

 Congratulations!

 Regards,
 Dunith


 On Fri, May 30, 2014 at 11:22 AM, Shazni Nazeer sha...@wso2.com wrote:

 Congratulations!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Fri, May 30, 2014 at 11:19 AM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!


 On Fri, May 30, 2014 at 11:18 AM, Pubudu Dissanayake pubu...@wso2.com
 wrote:

 Congratulations !


 On Fri, May 30, 2014 at 11:16 AM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations..!!!


 On Fri, May 30, 2014 at 11:10 AM, Sohani Weerasinghe soh...@wso2.com
  wrote:

 Congratulations 

 Sohani Weerasinghe
 Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine


 On Fri, May 30, 2014 at 11:08 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Lali as a WSO2 Committer.

 Lali has  been a valuable contributor for WSO2 Developer Studio
 since he joined WSO2. In recognition of his contributions to WSO2, he 
 has
 been voted as a WSO2 Committer.

 Lali, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha

 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118 0711368118 *

 ___
 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




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Pubudu Dissanayake*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware
 Mobile: 0775503304

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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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



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




 --
 Regards,

 Dunith Dhanushka,
 Senior Software Engineer - BAM,
 WSO2 Inc,

 Mobile - +94 71 8615744
 Blog - dunithd.wordpress.com http://blog.dunith.com
 Twitter - @dunithd http://twitter.com/dunithd

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




 --
 Thanks  Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Sohani Weerasinghe

2014-05-30 Thread Asanka Dissanayake
Congratz Sohani !!


On Fri, May 30, 2014 at 11:39 AM, Shani Ranasinghe sh...@wso2.com wrote:

 Congrats Sohani


 On Thu, May 29, 2014 at 11:05 PM, Srisunmugaraja Paraparan 
 parapa...@wso2.com wrote:

 Congratulations!!!


 On Fri, May 30, 2014 at 11:35 AM, Dunith Dhanushka dun...@wso2.com
 wrote:

 Congratulations!

 Regards,
 Dunith


 On Fri, May 30, 2014 at 11:23 AM, Shazni Nazeer sha...@wso2.com wrote:

 Congratulations!!!

 Shazni Nazeer

 Senior Software Engineer

 Mob : +94 715 440 607
 LinkedIn : http://lk.linkedin.com/in/shazninazeer
 Blog : http://shazninazeer.blogspot.com


 On Fri, May 30, 2014 at 11:19 AM, Melan Nimesh me...@wso2.com wrote:

 Congratulations!


 On Fri, May 30, 2014 at 11:17 AM, Aruna Karunarathna ar...@wso2.com
 wrote:

 Congratulations...!!!


 On Fri, May 30, 2014 at 11:14 AM, Susankha Nirmala susan...@wso2.com
  wrote:

 Congratulations!!!


  On Fri, May 30, 2014 at 11:06 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:

 Hi All,

 It's my distinct pleasure to welcome Sohani as a WSO2 Committer.

 Sohani has  been a valuable contributor for WSO2 Developer Studio
 since she joined WSO2. In recognition of her contributions to WSO2, 
 she has
 been voted as a WSO2 Committer.

 Sohani, Congratulations and Keep up the good work!

 Thanks and Regards,
 /Jasintha


 --

 *Jasintha Dasanayake *

 *Senior Software EngineerWSO2 Inc. | http://wso2.com
 http://wso2.com/ lean . enterprise . middleware*


 *mobile :- 0711368118*

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




 --
 Susankha Nirmala
 Software Engineer
  WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware
 Mobile : +94 77 593 2146

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




 --

 * Aruna Sujith Karunarathna* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 9040362 | Work: +94 112145345
 Email: ar...@wso2.com | Web: www.wso2.com


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




 --
 *Melan Nimesh*
 Software Engineer;
 WSO2 Inc.;  http://wso2.org
 E-mail: melan AT wso2.com;
 Mobile: +94 77 631 6759


 ___
 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




 --
 Regards,

 Dunith Dhanushka,
 Senior Software Engineer - BAM,
 WSO2 Inc,

 Mobile - +94 71 8615744
 Blog - dunithd.wordpress.com http://blog.dunith.com
 Twitter - @dunithd http://twitter.com/dunithd

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




 --
 Thanks  Regards
 --
 Srisunmugaraja Paraparan
 Software Engineer,
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 email : parapa...@wso2.com, mobile : +94 77 0362151

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




 --
 Thanks and Regards
 *,Shani Ranasinghe*

 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get rid of this log in AF

2014-05-27 Thread Asanka Dissanayake
Hi,
This is already removed.

Thanks,
Asanka D


On Wed, May 28, 2014 at 10:31 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 TID: [0] [AF] [2014-05-27 22:00:15,707]  INFO
 {org.wso2.carbon.appfactory.tenant.mgt.service.TenantManagementService} -
 ==new get user info bean
 {org.wso2.carbon.appfactory.tenant.mgt.service.TenantManagementService}


 This does not provide any useful info. Please get rid of this.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AppFactory app listing page (home page) takes a long time to load when there are about 20 apps

2014-03-08 Thread Asanka Dissanayake
Hi Amila,
What is the pack in the in the cloud preview ? is it the latest one ?

Regards,
Asanka D


On Fri, Mar 7, 2014 at 9:44 AM, Amila Maha Arachchi ami...@wso2.com wrote:

 Jira: APPFAC-1760 - AppFactory app listing page (home page) takes a long
 time to load when there are about 20 
 appshttps://wso2.org/jira/browse/APPFAC-1760


 On Fri, Mar 7, 2014 at 8:06 PM, Harsha Thirimanna hars...@wso2.comwrote:

 We will check this out amila.
 Thanks
 On Mar 7, 2014 7:43 PM, Amila Maha Arachchi ami...@wso2.com wrote:

 After I sign in, I am taken to this page (index.jag). Then I experience
 this. But, when I try with a tenant with 4-5 apps, page loads in a
 considerable time.


 On Fri, Mar 7, 2014 at 7:40 PM, Harsha Thirimanna hars...@wso2.comwrote:

 This happen when you directly go to that page or when you refresh it,
 amila ?
 On Mar 7, 2014 7:36 PM, Amila Maha Arachchi ami...@wso2.com wrote:

 Hi AF team,

 $Subject. Because of this, sometimes ELB times out and suspends the
 endpoint when trying to view this page. Then it keeps loading the page
 forever coz every time the endpoint get suspended.

 Have you done any improvements to avoid this? I believe this is due to
 the retrieving data from registry?

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dunith

2013-12-06 Thread Asanka Dissanayake
Congratz Dunith!!


On Fri, Dec 6, 2013 at 3:25 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi everyone,

 It's my pleasure to announce Dunith as a WSO2 committer. Dunith has done
 many contributions to the BAM product, and has proven to be an expert in
 related technologies. I'm sure he will continue to be a valuable asset to
 the BAM team. Dunith, welcome board, and keep it up! ..

 Cheers,
 Anjana.

 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] User directs to an error page when login to the appfactory.cloudpreview.wso2.com

2013-11-26 Thread Asanka Dissanayake
Hi,
I think this is not login related issue.This occurs when click OK on the
successfully registered message. Will check with cloud team on that.

cheers,
Asanka D


On Wed, Nov 27, 2013 at 11:12 AM, Ushani Balasooriya ush...@wso2.comwrote:

 This was occurred during the first login after tenant registration.


 On Wed, Nov 27, 2013 at 11:10 AM, Ushani Balasooriya ush...@wso2.comwrote:

 Hi,

 Pls note the $subject and user has to click on Please try to login back
 to server at here https://cloudpreview.wso2.com to login to the cloud
 preview. http://appfactory.cloudpreview.wso2.com Directs to the [1].
 Issue is created [2]. Pls have a look.

 [1] https://cloudmgt.cloudpreview.wso2.com/cloudmgt/error.jag
 [2] https://wso2.org/jira/browse/APPFAC-1669

 http://appfactory.cloudpreview.wso2.com
 Regards,
 --
 *Ushani Balasooriya*
 Software Engineer - QA;
 WSO2 Inc; http://www.wso2.com/.
 Mobile; +94772636796




 --
 *Ushani Balasooriya*
 Software Engineer - QA;
 WSO2 Inc; http://www.wso2.com/.
 Mobile; +94772636796


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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Dimuthu De Lanerolle

2013-11-25 Thread Asanka Dissanayake
congratzz Dimuthu ...!!!


On Mon, Nov 25, 2013 at 10:08 PM, Inosh Goonewardena in...@wso2.com wrote:

 Congratz dimuthu



 On Mon, Nov 25, 2013 at 8:57 PM, Malintha Adikari malin...@wso2.comwrote:

 Congratulations Dimuthu.


 Malintha Adikari,


 On Mon, Nov 25, 2013 at 8:22 PM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations !!!


 On Mon, Nov 25, 2013 at 8:18 PM, Asanka Vithanage asan...@wso2.comwrote:

 Congrats!!!


 On Mon, Nov 25, 2013 at 8:08 PM, Nuwan Silva nuw...@wso2.com wrote:

 Congrats!!!


 On Mon, Nov 25, 2013 at 7:49 PM, Pulasthi Supun pulas...@wso2.comwrote:

 Congrats !


 On Mon, Nov 25, 2013 at 7:42 PM, Harsha Thirimanna 
 hars...@wso2.comwrote:

 Congrad :)



 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 * email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770*
 * twitter: **http://twitter.com/ http://twitter.com/afkham_azeez*
 *harshathirimann linked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

  *Lean . Enterprise . Middleware*



 On Mon, Nov 25, 2013 at 7:40 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi All,

 It's my pleasure to welcome Dimuthu De Lanerolle to WSO2 developer
 community by granting WSO2 commitership. DimuthuD has been contributing
 greatly to product integration tests and test automation framework 
 related
 developments over the last couple of months. In acknowledgement of his
 contributions, he's been voted as a WSO2 Committer. Welcome aboard and 
 keep
 up the good work!


 Thanks,

 --
 Krishantha Samaraweera
 Senior Technical Lead - Test Automation
 Mobile: +94 77 7759918
 WSO2, Inc.; http://wso2.com/
 lean . enterprise . middlewear.

 ___
 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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




 --


 *Nuwan Silva*
 *Senior Software Engineer - QA*
 Mobile: +94779804543

 WSO2 Inc.

 lean . enterprise . middlewear.
 http://www.wso2.com

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




 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com


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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




 --
 Software Engineer,
 WSO2 Inc.  http://wso2.com
 (M) +94(71) 2312958

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




 --
 Regards,

 Inosh Goonewardena
 Associate Technical Lead- WSO2 Inc.
 Mobile: +94779966317

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




-- 


*Asanka DissanayakeSoftware Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

*email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com
http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: Responsive UI - User home #2009 Redmine @ Thu Nov 21, 2013 3pm - 4pm (asan...@wso2.com)

2013-11-21 Thread Asanka Dissanayake
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20131121T093000Z
DTEND:20131121T103000Z
DTSTAMP:20131121T091505Z
ORGANIZER;CN=Asanka Dissanayake:mailto:asan...@wso2.com
UID:49bua8fidj74cdcct8nh8oo...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manjula Rathnayake;X-NUM-GUESTS=0:mailto:manju...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Danushka Fernando;X-NUM-GUESTS=0:mailto:danush...@wso2.com
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK 6th Floor Meeting Room - Dijkstra;X-NUM-GUESTS=0:mailto:wso2.com_3
 7373634303139362d333...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Harsha Thirimanna;X-NUM-GUESTS=0:mailto:hars...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ajanthan Balachandran;X-NUM-GUESTS=0:mailto:ajant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Gayan Dhanushka;X-NUM-GUESTS=0:mailto:gay...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=asan...@wso2.com;X-NUM-GUESTS=0:mailto:asan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
CREATED:20131121T091347Z
DESCRIPTION:View your event at http://www.google.com/calendar/event?action=
 VIEWeid=NDlidWE4Zmlkajc0Y2RjY3Q4bmg4b29wa2MgZGV2QHdzbzIub3Jntok=MTYjYXNhb
 mthZEB3c28yLmNvbTEzMTRlOTc5ZDlmMmMxMmY0NWQzNTA4Mzc2NGMxNDUzMTVhNWM0YzEctz=
 Asia/Colombohl=en.
LAST-MODIFIED:20131121T091504Z
LOCATION:LK 6th Floor Meeting Room - Dijkstra
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Responsive UI - User home #2009 Redmine
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] [Appfactory] common object in the seesion to hold data related to an applicaiton

2013-10-21 Thread Asanka Dissanayake
Hi All,
In case you need tenant domain and tenant Id in jaggery level ,you can
simply use following way to get'em rather than making back end calls.

var tenantInfo= %=session.get(TENANT_INFO)%;

tenantInfo.tenantDomain
tenantInfo.tenantId

for now, I have stored these two properties only. If you feel anything
worth saving here you can find the creation method of this object

*createTenantInfoObject() *in *appmgt/jagg/jaggery_acs.jag  *file.

I hope to include *isOTtenant* property here too.

cheers!!

Asanka D


On Tue, Oct 8, 2013 at 12:08 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 In case you want to get application info in the front end, you can simply
 use the following way.

 var application = %=session.get(APP_INFO);

 Following detail can be found ,
 application.key
 application.name
 application.owner --- this is the creator of the application
 application.description
 application.type
 application.typeDisplayName
 application.repositoryType
 application.repositoryTypeDisplayName

 cheers!
 Asanka D




 On Wed, Sep 4, 2013 at 10:16 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi Chris,
 Yes, It can be done in Java Level. But here we are talking about front
 end, Jaggery level. Since there is no carbon context in the jaggery level
 we can't go with this option I think.

 cheers!!
 Asanka D


 On Wed, Sep 4, 2013 at 9:56 AM, Chris Haddad chad...@cobia.net wrote:

 Tenant Id and tenant domain are already readily accessible from the
 carboncontext.   Why woudl you replicate the information?

 Username is also in carboncontext, but for some reason not working for
 me and may need to be fixed

 /Chris


 On Sep 3, 2013, at 1:35, Asanka Dissanayake asan...@wso2.com wrote:

 Hi,
 What is the best place to create this? IMHO,  we should create this and
 put to the session when the application home is loaded.
 Any comments?




 On Fri, Aug 30, 2013 at 12:04 PM, Asanka Dissanayake 
 asan...@wso2.comwrote:

 Hi,
 I think it is better to have $subject in appfactory. ATM there is no
 common place to get info of the application.Now it is bit hard to keep
 tracks on where are the details we want , for example Logged in user,
 tenant id, tenant domain.
 I will start implementing it with a object called APPLICATION_INFO
 which is in the session , and have planned to store following information.

 -Logged in User
 -Application Owners
 -Tenant domain
 -Tenant Id

 Please add if I have missed anything.

 cheers!!
 Asanka D

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

 ___

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




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-10-15 Thread Asanka Dissanayake
Hi,

When tenant admin import users to the tenant , should we use email address
and derive user name from email address?
For example,
User imports the user as *asan...@wso2.com*, then the user name is *asankad.
*
Then notification email can be sent to the given email. In the notification
mail , we can mention the user name and the given default password to the
user.

Otherwise, if we take only a user name how can we send the notification
mail to the user.



On Wed, Sep 4, 2013 at 2:22 PM, Amila Maha Arachchi ami...@wso2.com wrote:

 IMO following should be the behaviour.


1. Tenant admin adds users (one by one or bulk user import). At this
moment only username and password should be provided by the tenant admin
(no need to worry about fname, lname etc.).
2. There should be a account mgt (or profile mgt) page for the users
to edit their profile information. Using this, they can fill in their
fname, lname etc.
3. Under profile mgt, we can provide a change pwd option too.

 Above is also behaviour of SLive. And, we are never going to expose the
 mgt console to any user :)


 On Wed, Sep 4, 2013 at 1:47 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 This is the present situation of $subject.

 1. users are added via bulk user import which takes a csv or xlsx file
 which contains the user names of the users to be added.And a default
 password can be set for the set users.
 2. users are not allowed to register themselves.

 above 1 and 2 causes following problems and can be overcome with
 solutions mentioned next to the problem.

 *Problem*
 ATM csv file takes only the user name of the user to be added. no Fname
 Lname or email.

 *Solution*
 introduce a new method to carbon user mgt, to accept Fname,Lname,email
 from the csv file.

 *Problem*
 ATM , users are not allowed to change their passwords or reset there
 passwords in case of forgetting it.So how can they change default password.

 *Solution*
 Provide a simple UI, to change their password.

 *Problem*
 where to perform bulk importing of the users by the tenant admin.

 *Solution*
 ?? please suggest one... IMHO, can we use management console for this
 ?

 So in the team management page, what we are going to do is actually not
 adding a user to the tenant, it is adding a role (dev,qa) to an existing
 user in the tenant.




 On Wed, Sep 4, 2013 at 11:24 AM, Sameera Perera samee...@wso2.comwrote:


 On Wed, Sep 4, 2013 at 10:33 AM, Asanka Dissanayake asan...@wso2.comwrote:

 We have another option to change the bulkuserimport method to take
 Fname and Lname and other required details in the csv file. WDYT?


 I believe this is a good enough solution, given that most likely sources
 of a users.csv would be LDAP and Google Apps. Are there any other likely
 sources?
 I'll let Dimuthu / Amila make the final call :)


 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Appfactory] Role strategy plugin version update in jenkins

2013-10-15 Thread Asanka Dissanayake
Hi,

Currently we are using the 1.1.3-wso2v1 of role-strategy-plugin in the
jenkins.
This causes some errors when unassigning roles from users.
The reason is *doUnAssignRoleSubmit *method ,doesn't exist in
the role-strategy-plugin  1.1.3-wso2v1 .

So I upgraded it to the latest version 1.1.3-wso2v2 which contains above
mentioned method,it is packed in the war. and commited it to [1],

@Amila,
Please find the jenkins.war in [1] with the latest plugins.

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactory/tags/apaas_af_m7/vmware/appfactory_deployment/resources/packs

cheers!
Asanka D
-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] Role strategy plugin version update in jenkins

2013-10-15 Thread Asanka Dissanayake
On Tue, Oct 15, 2013 at 10:33 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Asanka,

 Do we have to do any customizations to the plugin? If not we need not make
 it an orbit.

No, We don't want to do any customization . Earlier we had used
  1.1.3-wso2v1 of role-strategy-plugin which was available in 4.0.0.
1.1.3-wso2v2 is already available in 4.1.0.

thanks,
 dimuthu



 On Tue, Oct 15, 2013 at 10:28 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,

 Currently we are using the 1.1.3-wso2v1 of role-strategy-plugin in the
 jenkins.
 This causes some errors when unassigning roles from users.
 The reason is *doUnAssignRoleSubmit *method ,doesn't exist in
 the role-strategy-plugin  1.1.3-wso2v1 .

 So I upgraded it to the latest version 1.1.3-wso2v2 which contains above
 mentioned method,it is packed in the war. and commited it to [1],

 @Amila,
 Please find the jenkins.war in [1] with the latest plugins.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/appfactory/tags/apaas_af_m7/vmware/appfactory_deployment/resources/packs

 cheers!
 Asanka D
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

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

 Lean . Enterprise . Middleware




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaaS]Change imported user password on first login

2013-10-13 Thread Asanka Dissanayake
On Mon, Oct 14, 2013 at 9:24 AM, Chamath Gunawardana chama...@wso2.comwrote:

 Hi

 Yes, we could write an extension and also we can use claims to identify
 the first login by adding a new read only claim. Are you specifically use
 ReadOnly Ldap?

+1 for extenetions. we use ReadWrite LDAP.




 Thanks,


 On Fri, Oct 11, 2013 at 7:02 PM, Asela Pathberiya as...@wso2.com wrote:


 I think we can do this using password policy extensions that we have
 introduced for 4.2.0 release.  We may need to write new extension for
 this... This would be a good use case... I guess, Chamath can help you on
 this

 Thanks,
 Asela.

 On Fri, Oct 11, 2013 at 6:52 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 Is there a way to do $subject. Because the user story as below.

 Tenant admin imports users to the tenant with a default password.
 Users are asked to change their passwords on the first login.

 How can we identify the first login of the user?

 We are using a LDAP as the user store.
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --
 Thanks  Regards,
 Asela

 ATL
 Mobile : +94 777 625 933




 --
 Best Regards,
 Chamath Gunawardana
 Technical Lead; WSO2 Inc.
 Mobile : +94776322240




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Kernal Commit Required

2013-10-12 Thread Asanka Dissanayake
Hi ,
Please commit [1] to carbon kernal 4.2.0

[1] https://wso2.org/jira/browse/CARBON-14515

cheers,
Asanka D
-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Authorization handler in the outflow of osgi service call

2013-10-12 Thread Asanka Dissanayake
Hi Kishanthan,
Thanks for the quick resposne.Please find answers inline.

cheers,
Asanka D

On Fri, Oct 11, 2013 at 7:25 PM, Kishanthan Thangarajah kishant...@wso2.com
 wrote:

 HI AsankaD,


 On Fri, Oct 11, 2013 at 5:15 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 I came across a some weird  behavior . The scenario is mentioned below.

 There is a service , and it has been exposed as OSGI service and a Axis2
 service.
 in the service xml,


 Why this is exposed both ways?

In the jaggery level this service is directly called as a osgi service, but
this is called as web sevice in a non-carbon servers like Git. So we need
to expose this as both osgi and web service.



 Authorization action parameter is set to /permission/admin.

 This is called as an osgi service in the jaggery , using

 server.osgiservice(Service class).operation();

 When the call is made , first it hits the BE method, and on the return
 flow it hits a Authorization Handler. and if a non-admin user makes the
 calll, then call fails with the following exception [1].

 *When a service is exposed as OSGi and axis2 service, how does it hit
 the Authorization Handler in the outflow?*


 What do mean by OutFlow here? Are you referring to OutFlow of axis2?

Yes, it hits the back end first and then comes to Authorization Handler, I
debugged this and verified the fact.


 The below error is simply at axis2 layer. Some one is doing a web service
 call here. That is why it is going through the axis2 handler chain. This
 does not have to anything with having a service exposed as an OSGI service.


 [1] [2013-10-11 17:10:11,390]  INFO 
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
 -  'punn...@puva2.com [3]' logged in at [2013-10-11 17:10:11,389+0530]
 [2013-10-11 17:10:11,412] ERROR {java.lang.Class} -  Access Denied.
 Failed authorization attempt to access service '
 ApplicationUserManagementService' operation 'getUsersOftheApplication'
 by 'punnadi'
 [2013-10-11 17:10:11,413] ERROR {org.apache.axis2.engine.AxisEngine} -
 Access Denied.
 org.apache.axis2.AxisFault: Access Denied.
 at org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.
 doAuthorization(AuthorizationHandler.java:124)
 at org.wso2.carbon.server.admin.module.handler.
 AuthorizationHandler.invoke(AuthorizationHandler.java:88)
 at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at org.apache.axis2.transport.http.HTTPTransportUtils.
 processHTTPPostRequest(HTTPTransportUtils.java:172)
 at org.apache.axis2.transport.http.AxisServlet.doPost(
 AxisServlet.java:146)
 at org.wso2.carbon.core.transports.CarbonServlet.
 doPost(CarbonServlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)



 Based on this error trace, there is a service request to 
 ApplicationUserManagementService. When it is received by the axis2
 engine and when it passes through the InFlow phase handlers, one of the
 handler (AuthorizationHandler) is throwing the above error as
 unauthorized. You may have check on who is doing that unauthorized call?

This occurred due to a permission issue,Now this is fixed.



 Thanks,
 Kishanthan.



 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

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




 --
 *Kishanthan Thangarajah*
 Senior Software Engineer,
 Platform Technologies Team,
 WSO2, Inc.
 lean.enterprise.middleware

 Mobile - +94773426635
 Blog - *http://kishanthan.wordpress.com*
 Twitter - *http://twitter.com/kishanthan*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821Hi*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Authorization handler in the outflow of osgi service call

2013-10-11 Thread Asanka Dissanayake
Hi,
I came across a some weird  behavior . The scenario is mentioned below.

There is a service , and it has been exposed as OSGI service and a Axis2
service.
in the service xml,
Authorization action parameter is set to /permission/admin.

This is called as an osgi service in the jaggery , using

server.osgiservice(Service class).operation();

When the call is made , first it hits the BE method, and on the return flow
it hits a Authorization Handler. and if a non-admin user makes the calll,
then call fails with the following exception [1].

*When a service is exposed as OSGi and axis2 service, how does it hit the
Authorization Handler in the outflow?*

[1] [2013-10-11 17:10:11,390]  INFO
{org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
-  'punn...@puva2.com [3]' logged in at [2013-10-11 17:10:11,389+0530]
[2013-10-11 17:10:11,412] ERROR {java.lang.Class} -  Access Denied. Failed
authorization attempt to access service 'ApplicationUserManagementService'
operation 'getUsersOftheApplication' by 'punnadi'
[2013-10-11 17:10:11,413] ERROR {org.apache.axis2.engine.AxisEngine} -
Access Denied.
org.apache.axis2.AxisFault: Access Denied.
at org.wso2.carbon.server.admin.module.handler.AuthorizationHandler.
doAuthorization(AuthorizationHandler.java:124)
at org.wso2.carbon.server.admin.module.handler.
AuthorizationHandler.invoke(AuthorizationHandler.java:88)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at org.apache.axis2.transport.http.HTTPTransportUtils.
processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.AxisServlet.doPost(
AxisServlet.java:146)
at org.wso2.carbon.core.transports.CarbonServlet.
doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)


-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [aPaaS]Change imported user password on first login

2013-10-11 Thread Asanka Dissanayake
Hi All,
Is there a way to do $subject. Because the user story as below.

Tenant admin imports users to the tenant with a default password.
Users are asked to change their passwords on the first login.

How can we identify the first login of the user?

We are using a LDAP as the user store.
-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] common object in the seesion to hold data related to an applicaiton

2013-10-08 Thread Asanka Dissanayake
Hi All,
In case you want to get application info in the front end, you can simply
use the following way.

var application = %=session.get(APP_INFO);

Following detail can be found ,
application.key
application.name
application.owner --- this is the creator of the application
application.description
application.type
application.typeDisplayName
application.repositoryType
application.repositoryTypeDisplayName

cheers!
Asanka D




On Wed, Sep 4, 2013 at 10:16 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi Chris,
 Yes, It can be done in Java Level. But here we are talking about front
 end, Jaggery level. Since there is no carbon context in the jaggery level
 we can't go with this option I think.

 cheers!!
 Asanka D


 On Wed, Sep 4, 2013 at 9:56 AM, Chris Haddad chad...@cobia.net wrote:

 Tenant Id and tenant domain are already readily accessible from the
 carboncontext.   Why woudl you replicate the information?

 Username is also in carboncontext, but for some reason not working for me
 and may need to be fixed

 /Chris


 On Sep 3, 2013, at 1:35, Asanka Dissanayake asan...@wso2.com wrote:

 Hi,
 What is the best place to create this? IMHO,  we should create this and
 put to the session when the application home is loaded.
 Any comments?




 On Fri, Aug 30, 2013 at 12:04 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 I think it is better to have $subject in appfactory. ATM there is no
 common place to get info of the application.Now it is bit hard to keep
 tracks on where are the details we want , for example Logged in user,
 tenant id, tenant domain.
 I will start implementing it with a object called APPLICATION_INFO
 which is in the session , and have planned to store following information.

 -Logged in User
 -Application Owners
 -Tenant domain
 -Tenant Id

 Please add if I have missed anything.

 cheers!!
 Asanka D

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

 ___

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




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Provide an existing GIT url in AppFactory

2013-09-20 Thread Asanka Dissanayake
Since appfactory maintains it's own Git repository user can't bring his own
one to the party :). If he wants to use appfactory, or continue his
application development with appfactory, he can simply check-in his halfway
developed code to the GIT provided by the appfactory and continue.

we use a plugin in the git server which handles the authorization and
stuffs. So obviously we can't use GitHub.



On Fri, Sep 20, 2013 at 3:19 PM, Udara Liyanage ud...@wso2.com wrote:

 Thanks for the response.
 Is n't it a valid scenario? Lets say a user has a app with a GIT url (or
 in GIT Hub) which he wants to develop and deploy with AppFac.


 On Fri, Sep 20, 2013 at 2:39 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Udara,

 I'm afraid it is not. We are given a git repo when we are creating the
 application. It is a git repo created for your application. We can't give
 an existing git url during the application creation.

 Thanks.
 Gayan

 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd


 On Fri, Sep 20, 2013 at 2:28 PM, Udara Liyanage ud...@wso2.com wrote:

  Hi,

 When creating an app in AppFactory we are provided a GIT url where we
 can develop our applications. Is there any way we can give our existing GIT
 url when creating a application?

 --
 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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





 --
 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Ayashkantha

2013-09-05 Thread Asanka Dissanayake
*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com*
 *
 *
 *Phone: +94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax*

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-04 Thread Asanka Dissanayake
Hi All,
This is the present situation of $subject.

1. users are added via bulk user import which takes a csv or xlsx file
which contains the user names of the users to be added.And a default
password can be set for the set users.
2. users are not allowed to register themselves.

above 1 and 2 causes following problems and can be overcome with solutions
mentioned next to the problem.

*Problem*
ATM csv file takes only the user name of the user to be added. no Fname
Lname or email.

*Solution*
introduce a new method to carbon user mgt, to accept Fname,Lname,email from
the csv file.

*Problem*
ATM , users are not allowed to change their passwords or reset there
passwords in case of forgetting it.So how can they change default password.

*Solution*
Provide a simple UI, to change their password.

*Problem*
where to perform bulk importing of the users by the tenant admin.

*Solution*
?? please suggest one... IMHO, can we use management console for this ?

So in the team management page, what we are going to do is actually not
adding a user to the tenant, it is adding a role (dev,qa) to an existing
user in the tenant.




On Wed, Sep 4, 2013 at 11:24 AM, Sameera Perera samee...@wso2.com wrote:


 On Wed, Sep 4, 2013 at 10:33 AM, Asanka Dissanayake asan...@wso2.comwrote:

 We have another option to change the bulkuserimport method to take Fname
 and Lname and other required details in the csv file. WDYT?


 I believe this is a good enough solution, given that most likely sources
 of a users.csv would be LDAP and Google Apps. Are there any other likely
 sources?
 I'll let Dimuthu / Amila make the final call :)


 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Appfactory] common object in the seesion to hold data related to an applicaiton

2013-09-03 Thread Asanka Dissanayake
On Tue, Sep 3, 2013 at 11:34 AM, Danushka Fernando danush...@wso2.comwrote:

 Hi
 Is Logged in user related to an appfactory application? I don't think so.

Y not, there are many places we need logged in user in the application.

 And for other things we could have this object in application space rather
 than session space I think. WDYT?

Earlier, I thought the same thing. But if we are gonna include application
owners , we need to do it in the application scope.

IMO, It is like this, when application home is loaded for a particular
application APPLICATION_INFO object is created and put to the session with
details I mentioned in the first mail of this thread.
So every time switch applications ,relevant APPLICATION_INFO object is in
the session. WDYT?





 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729


 On Tue, Sep 3, 2013 at 11:05 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 What is the best place to create this? IMHO,  we should create this and
 put to the session when the application home is loaded.
 Any comments?




 On Fri, Aug 30, 2013 at 12:04 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 I think it is better to have $subject in appfactory. ATM there is no
 common place to get info of the application.Now it is bit hard to keep
 tracks on where are the details we want , for example Logged in user,
 tenant id, tenant domain.
 I will start implementing it with a object called APPLICATION_INFO
 which is in the session , and have planned to store following information.

 -Logged in User
 -Application Owners
 -Tenant domain
 -Tenant Id

 Please add if I have missed anything.

 cheers!!
 Asanka D

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

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





-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-03 Thread Asanka Dissanayake
Hi All,
I did a bulk user import to the tenant using a csv file today.it worked
fine.users were added to the user store correctly. But there are some
problems remaining.

- When performing a bulk user import only username and password are
provided .No First Name,Last Name. in the Appfactory team ui Fname Lname
and email are required details
- since  user registration page is not provided , how can we get Fname
Lname of the user?

Considering these facts , can't we get user details upon the first login of
the user.
WDYT?



On Mon, Sep 2, 2013 at 5:13 PM, Amila Maha Arachchi ami...@wso2.com wrote:

 Sanjiva, Sameera, Asanka and myself had a chat regarding this use case and
 following are the notes of it for others' information.


- It is not necessary to invite anyone to be a user in your tenant. If
you are the tenant admin, you can simply add the user to your tenant and
inform that user.
   - For an internal deployment, adding users is not necessary since
   we'll be pointing to the organization's LDAP. So, all the users are 
 there.
   We only have to assign them to different apps.
   - For the cloud, if you want to add someone, you simply add him/her
   and let her know the credentials.
  - If you want you can have a feature of notifying that user via
  email. But this is not needed for the nearest release.
   - Assigning users (amila) from other tenant (foo.com) to your
tenant (bar.com)
- Although we have agreed to create a user in my tenant amila@bar.comto 
 achieve this scenario, Sanjiva wants to do this via resource level
   permissions.
   - So, this feature will not be available for the nearest release.
   When we start addressing this feature, we'll have to figure out how to 
 do
   it.


- Also discussed about OT users to login via a community tenant (this
has been already discussed in the previous review)
   - We'll use a separate login page for this. When we create this
   community tenant, we'll have to copy a user-mgt.xml which points to the 
 OT
   LDAP.

 Regards,
 AmilaM.


 On Mon, Sep 2, 2013 at 2:52 PM, Sameera Perera samee...@wso2.com wrote:

 The scenario I described is based on that I'm the first 'sameera' from
 wso2.com signing up for your tenant. Other sameera(s) have not signed up
 for the tenant but, they exist within the organization with wso2.comemail 
 addresses. This is a probable use case in the cloud as well as when
 an LDAP is not linked in a private deployment; i.e. aPaaS/AF doesn't
 know about IDs that exist outside of it's database.


 On Mon, Sep 2, 2013 at 2:46 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi Smaeera,
 Please find my comments in line.



 On Mon, Sep 2, 2013 at 2:42 PM, Sameera Perera samee...@wso2.comwrote:

 Hi Asanka,
 While this is possible, I have concerns about doing this. E.g.
 You invite me to wso2.com tenant.
 When I follow the confirmation link, I have an option to provide my own
 username. So, I pick 'sameera'.

 When you select a user name it will be assigned depending on the
 availability. if there is a sameera in wso2.com already you are not
 allowed to select it.

 Now my tenant login is sameeraATwso2.com (where as my email is
 sameerapATwso2.com). Now, if actual sameeraATwso2.com wants to signup, he
 needs to use an alternate address.

 There are few solutions to this. We can discuss f2f.


 On Mon, Sep 2, 2013 at 1:13 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 @ sameera,
 got the point. thanks for the clarification.
 we have an alternative. But I don't know whether it is expensive.In
 the tenant registration page we allow user to choose user name for the
 tenant admin.Can't we allow same thing for the user .
 It's like this,
 When a user is invited as a user of the tenant , he gets an email
 which contains the confirmation link.upon the click he is redirected to 
 the
 page for user registration where he can choose a user name . depending on
 the availability suppose he selected user name as asanka88 for the 
 tenant
 foo. Then his login name would be asank...@foo.com.
 WDYT?

 @ gayan,
 I think answer for your questionis in the above answer.
 cheers!!!
 Asanka D




 On Mon, Sep 2, 2013 at 12:57 PM, Gayan Dhanushka gay...@wso2.comwrote:

 Hi Asanka,

 I would like to make a point that this is different from something
 like inviting an existing user to an app as a develpoer by the app owner.
 In that case the user is already there. As per my thinking this is a 
 whole
 different scenario. I would like to know whether this user is already
 registered under the same organization, so that adding a user to a tenant
 points to adding a user who is already there in an organization to the 
 same
 organization's appfac tenant?

 Thanks!
 GayanD


 On Mon, Sep 2, 2013 at 12:28 PM, Sameera Perera samee...@wso2.comwrote:

 Ideally the scenario you describe should work. But, if you add
 x...@bar.com to your foo.com domain, how do you know

Re: [Dev] [Appfactory] common object in the seesion to hold data related to an applicaiton

2013-09-03 Thread Asanka Dissanayake
Hi Chris,
Yes, It can be done in Java Level. But here we are talking about front end,
Jaggery level. Since there is no carbon context in the jaggery level we
can't go with this option I think.

cheers!!
Asanka D


On Wed, Sep 4, 2013 at 9:56 AM, Chris Haddad chad...@cobia.net wrote:

 Tenant Id and tenant domain are already readily accessible from the
 carboncontext.   Why woudl you replicate the information?

 Username is also in carboncontext, but for some reason not working for me
 and may need to be fixed

 /Chris


 On Sep 3, 2013, at 1:35, Asanka Dissanayake asan...@wso2.com wrote:

 Hi,
 What is the best place to create this? IMHO,  we should create this and
 put to the session when the application home is loaded.
 Any comments?




 On Fri, Aug 30, 2013 at 12:04 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 I think it is better to have $subject in appfactory. ATM there is no
 common place to get info of the application.Now it is bit hard to keep
 tracks on where are the details we want , for example Logged in user,
 tenant id, tenant domain.
 I will start implementing it with a object called APPLICATION_INFO
 which is in the session , and have planned to store following information.

 -Logged in User
 -Application Owners
 -Tenant domain
 -Tenant Id

 Please add if I have missed anything.

 cheers!!
 Asanka D

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*

 ___

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-03 Thread Asanka Dissanayake
On Wed, Sep 4, 2013 at 10:20 AM, Sameera Perera samee...@wso2.com wrote:

 Hi Asanka

 On Tue, Sep 3, 2013 at 11:31 PM, Asanka Dissanayake asan...@wso2.comwrote:

 - When performing a bulk user import only username and password are
 provided .No First Name,Last Name. in the Appfactory team ui Fname Lnameand 
 email are required details


 Which CSV format did you use? I know GApps CSV export includes Frist Name
 and Last Name. I think even LDAP export scripts would include them.

In our case it is only user name, you can find the format in [1].



 - since  user registration page is not provided , how can we get Fname
 Lname of the user?

 Considering these facts , can't we get user details upon the first login
 of the user.

 We have another option to change the bulkuserimport method to take Fname
and Lname and other required details in the csv file. WDYT?


 This would be fine.

 There's a roadmap item in AF to add a Profile Management section. Once
 this is done, we can:
 1. Display the username on the UI when F/Lnames are empty
 2. Stop prompting users to enter these details on first login
 3. Remove F/Lname fields from the registration UI (tenant creation UI), so
 there are two less fields in the way of a user signing up

 If the user prefers to see his full name on the UI rather than the
 username, he can set it in the profile screen.




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-03 Thread Asanka Dissanayake
Sorry , I forgot to mention the link find it below [1]

[1]
http://asankastechtalks.wordpress.com/2013/09/03/perform-bulk-user-import-for-a-tenant-in-wso2-products/


On Wed, Sep 4, 2013 at 10:32 AM, Asanka Dissanayake asan...@wso2.comwrote:




 On Wed, Sep 4, 2013 at 10:20 AM, Sameera Perera samee...@wso2.com wrote:

 Hi Asanka

 On Tue, Sep 3, 2013 at 11:31 PM, Asanka Dissanayake asan...@wso2.comwrote:

 - When performing a bulk user import only username and password are
 provided .No First Name,Last Name. in the Appfactory team ui Fname Lnameand 
 email are required details


 Which CSV format did you use? I know GApps CSV export includes Frist
 Name and Last Name. I think even LDAP export scripts would include them.

 In our case it is only user name, you can find the format in [1].



 - since  user registration page is not provided , how can we get Fname
 Lname of the user?

 Considering these facts , can't we get user details upon the first login
 of the user.

 We have another option to change the bulkuserimport method to take Fname
 and Lname and other required details in the csv file. WDYT?


 This would be fine.

 There's a roadmap item in AF to add a Profile Management section. Once
 this is done, we can:
 1. Display the username on the UI when F/Lnames are empty
 2. Stop prompting users to enter these details on first login
 3. Remove F/Lname fields from the registration UI (tenant creation UI),
 so there are two less fields in the way of a user signing up

 If the user prefers to see his full name on the UI rather than the
 username, he can set it in the profile screen.




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-02 Thread Asanka Dissanayake
Hi,
User story for adding a user to a tenant is as follows.

1- tenant admin enter the email of the user(not in the LDAP yet) and select
a role.
2- then tenant admin invite the user.
3- then user receives an email containing confirmation link.
4- upon the confirmation user is added to the tenant domain.

According to the offline chat had with Dimuthu, we came to a conclusion
that there is no point of adding a user to the tenant domain before sending
the email unless it's a user within the organization.But when it comes to
cloud, any one wouldn't like to be a developer,qa of an application without
his permission/confirmation.

Please give comments on the above user story. I need to get this finalized
to start implementations. Quick reply s are highly appreciated.

cheers!!
Asanka D
-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-02 Thread Asanka Dissanayake
Hi,
@ shiro
#1 and #2 already there. will look in to #3.

@sameera,
so in that case, we are not gonna support private email addresses. For
example I need to use aPaaS and create an organization called foo, and i
dont't have @foo.com email adresses. I want to add users to the tenant with
their private email addresses. I think this scenario fails if we put a
restriction on the email address.

If I am missing the point can you please explain me the reason for not
allowing use arbitrary email addresses?

cheers!!
Asanka D



On Mon, Sep 2, 2013 at 11:53 AM, Sameera Perera samee...@wso2.com wrote:

 Hi Asanka,

 For the cloud, can you confirm that we will not support adding user with
 any arbitrary email address for this phase?
 I.e. Only users with @tenantdomain email addresses can be added.
 Can you confirm?



 On Mon, Sep 2, 2013 at 11:48 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 User story for adding a user to a tenant is as follows.

 1- tenant admin enter the email of the user(not in the LDAP yet) and
 select a role.
 2- then tenant admin invite the user.
 3- then user receives an email containing confirmation link.
 4- upon the confirmation user is added to the tenant domain.

 According to the offline chat had with Dimuthu, we came to a conclusion
 that there is no point of adding a user to the tenant domain before sending
 the email unless it's a user within the organization.But when it comes to
 cloud, any one wouldn't like to be a developer,qa of an application without
 his permission/confirmation.

 Please give comments on the above user story. I need to get this
 finalized to start implementations. Quick reply s are highly appreciated.

 cheers!!
 Asanka D
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-02 Thread Asanka Dissanayake
Hi,
@ sameera,
got the point. thanks for the clarification.
we have an alternative. But I don't know whether it is expensive.In the
tenant registration page we allow user to choose user name for the tenant
admin.Can't we allow same thing for the user .
It's like this,
When a user is invited as a user of the tenant , he gets an email which
contains the confirmation link.upon the click he is redirected to the page
for user registration where he can choose a user name . depending on the
availability suppose he selected user name as asanka88 for the tenant
foo. Then his login name would be asank...@foo.com.
WDYT?

@ gayan,
I think answer for your questionis in the above answer.
cheers!!!
Asanka D




On Mon, Sep 2, 2013 at 12:57 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Asanka,

 I would like to make a point that this is different from something like
 inviting an existing user to an app as a develpoer by the app owner. In
 that case the user is already there. As per my thinking this is a whole
 different scenario. I would like to know whether this user is already
 registered under the same organization, so that adding a user to a tenant
 points to adding a user who is already there in an organization to the same
 organization's appfac tenant?

 Thanks!
 GayanD


 On Mon, Sep 2, 2013 at 12:28 PM, Sameera Perera samee...@wso2.com wrote:

 Ideally the scenario you describe should work. But, if you add x@bar.comto 
 your
 foo.com domain, how do you know to log him in to foo.com from the login
 page? What if bar.com is a tenant as well? How do you know where to log
 him in?




 On Mon, Sep 2, 2013 at 12:15 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 @ shiro
 #1 and #2 already there. will look in to #3.

 @sameera,
 so in that case, we are not gonna support private email addresses. For
 example I need to use aPaaS and create an organization called foo, and i
 dont't have @foo.com email adresses. I want to add users to the tenant
 with their private email addresses. I think this scenario fails if we put a
 restriction on the email address.

 If I am missing the point can you please explain me the reason for not
 allowing use arbitrary email addresses?

 cheers!!
 Asanka D



 On Mon, Sep 2, 2013 at 11:53 AM, Sameera Perera samee...@wso2.comwrote:

 Hi Asanka,

  For the cloud, can you confirm that we will not support adding user
 with any arbitrary email address for this phase?
 I.e. Only users with @tenantdomain email addresses can be added.
 Can you confirm?



 On Mon, Sep 2, 2013 at 11:48 AM, Asanka Dissanayake 
 asan...@wso2.comwrote:

 Hi,
 User story for adding a user to a tenant is as follows.

 1- tenant admin enter the email of the user(not in the LDAP yet) and
 select a role.
 2- then tenant admin invite the user.
 3- then user receives an email containing confirmation link.
 4- upon the confirmation user is added to the tenant domain.

 According to the offline chat had with Dimuthu, we came to a
 conclusion that there is no point of adding a user to the tenant domain
 before sending the email unless it's a user within the organization.But
 when it comes to cloud, any one wouldn't like to be a developer,qa of an
 application without his permission/confirmation.

 Please give comments on the above user story. I need to get this
 finalized to start implementations. Quick reply s are highly appreciated.

 cheers!!
 Asanka D
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-02 Thread Asanka Dissanayake
+1 .


On Mon, Sep 2, 2013 at 1:07 PM, Shiroshica Kulatilake sh...@wso2.comwrote:

 I'd like to join too.

 Thank you,
 Shiro


 On Mon, Sep 2, 2013 at 1:04 PM, Amila Maha Arachchi ami...@wso2.comwrote:

 Its better to have a f2f chat and figure this out IMO. It seems my
 understanding is different than this. Shall we have a short chat after
 lunch (Me, Sameera, Dimuthu, Asanka and anyone else who is relevant) ?


 On Mon, Sep 2, 2013 at 12:28 PM, Sameera Perera samee...@wso2.comwrote:

 Ideally the scenario you describe should work. But, if you add x@bar.comto 
 your
 foo.com domain, how do you know to log him in to foo.com from the login
 page? What if bar.com is a tenant as well? How do you know where to log
 him in?




 On Mon, Sep 2, 2013 at 12:15 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 @ shiro
 #1 and #2 already there. will look in to #3.

 @sameera,
 so in that case, we are not gonna support private email addresses. For
 example I need to use aPaaS and create an organization called foo, and i
 dont't have @foo.com email adresses. I want to add users to the tenant
 with their private email addresses. I think this scenario fails if we put a
 restriction on the email address.

 If I am missing the point can you please explain me the reason for not
 allowing use arbitrary email addresses?

 cheers!!
 Asanka D



 On Mon, Sep 2, 2013 at 11:53 AM, Sameera Perera samee...@wso2.comwrote:

 Hi Asanka,

  For the cloud, can you confirm that we will not support adding user
 with any arbitrary email address for this phase?
 I.e. Only users with @tenantdomain email addresses can be added.
 Can you confirm?



 On Mon, Sep 2, 2013 at 11:48 AM, Asanka Dissanayake 
 asan...@wso2.comwrote:

 Hi,
 User story for adding a user to a tenant is as follows.

 1- tenant admin enter the email of the user(not in the LDAP yet) and
 select a role.
 2- then tenant admin invite the user.
 3- then user receives an email containing confirmation link.
 4- upon the confirmation user is added to the tenant domain.

 According to the offline chat had with Dimuthu, we came to a
 conclusion that there is no point of adding a user to the tenant domain
 before sending the email unless it's a user within the organization.But
 when it comes to cloud, any one wouldn't like to be a developer,qa of an
 application without his permission/confirmation.

 Please give comments on the above user story. I need to get this
 finalized to start implementations. Quick reply s are highly appreciated.

 cheers!!
 Asanka D
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 Shiroshica Kulatilake

 Architect,
 WSO2, Inc. http://wso2.com/
 Phone: +94 776523867

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [aPaas][Appfactory]Adding a user to a tenant

2013-09-02 Thread Asanka Dissanayake
Hi Smaeera,
Please find my comments in line.



On Mon, Sep 2, 2013 at 2:42 PM, Sameera Perera samee...@wso2.com wrote:

 Hi Asanka,
 While this is possible, I have concerns about doing this. E.g.
 You invite me to wso2.com tenant.
 When I follow the confirmation link, I have an option to provide my own
 username. So, I pick 'sameera'.

When you select a user name it will be assigned depending on the
availability. if there is a sameera in wso2.com already you are not allowed
to select it.

 Now my tenant login is sameeraATwso2.com (where as my email is
 sameerapATwso2.com). Now, if actual sameeraATwso2.com wants to signup, he
 needs to use an alternate address.

 There are few solutions to this. We can discuss f2f.


 On Mon, Sep 2, 2013 at 1:13 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 @ sameera,
 got the point. thanks for the clarification.
 we have an alternative. But I don't know whether it is expensive.In the
 tenant registration page we allow user to choose user name for the tenant
 admin.Can't we allow same thing for the user .
 It's like this,
 When a user is invited as a user of the tenant , he gets an email which
 contains the confirmation link.upon the click he is redirected to the page
 for user registration where he can choose a user name . depending on the
 availability suppose he selected user name as asanka88 for the tenant
 foo. Then his login name would be asank...@foo.com.
 WDYT?

 @ gayan,
 I think answer for your questionis in the above answer.
 cheers!!!
 Asanka D




 On Mon, Sep 2, 2013 at 12:57 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Asanka,

 I would like to make a point that this is different from something like
 inviting an existing user to an app as a develpoer by the app owner. In
 that case the user is already there. As per my thinking this is a whole
 different scenario. I would like to know whether this user is already
 registered under the same organization, so that adding a user to a tenant
 points to adding a user who is already there in an organization to the same
 organization's appfac tenant?

 Thanks!
 GayanD


 On Mon, Sep 2, 2013 at 12:28 PM, Sameera Perera samee...@wso2.comwrote:

 Ideally the scenario you describe should work. But, if you add
 x...@bar.com to your foo.com domain, how do you know to log him in to
 foo.com from the login page? What if bar.com is a tenant as well? How
 do you know where to log him in?




 On Mon, Sep 2, 2013 at 12:15 PM, Asanka Dissanayake 
 asan...@wso2.comwrote:

 Hi,
 @ shiro
 #1 and #2 already there. will look in to #3.

 @sameera,
 so in that case, we are not gonna support private email addresses. For
 example I need to use aPaaS and create an organization called foo, and i
 dont't have @foo.com email adresses. I want to add users to the
 tenant with their private email addresses. I think this scenario fails if
 we put a restriction on the email address.

 If I am missing the point can you please explain me the reason for not
 allowing use arbitrary email addresses?

 cheers!!
 Asanka D



 On Mon, Sep 2, 2013 at 11:53 AM, Sameera Perera samee...@wso2.comwrote:

 Hi Asanka,

  For the cloud, can you confirm that we will not support adding user
 with any arbitrary email address for this phase?
 I.e. Only users with @tenantdomain email addresses can be added.
 Can you confirm?



 On Mon, Sep 2, 2013 at 11:48 AM, Asanka Dissanayake asan...@wso2.com
  wrote:

 Hi,
 User story for adding a user to a tenant is as follows.

 1- tenant admin enter the email of the user(not in the LDAP yet) and
 select a role.
 2- then tenant admin invite the user.
 3- then user receives an email containing confirmation link.
 4- upon the confirmation user is added to the tenant domain.

 According to the offline chat had with Dimuthu, we came to a
 conclusion that there is no point of adding a user to the tenant domain
 before sending the email unless it's a user within the organization.But
 when it comes to cloud, any one wouldn't like to be a developer,qa of an
 application without his permission/confirmation.

 Please give comments on the above user story. I need to get this
 finalized to start implementations. Quick reply s are highly 
 appreciated.

 cheers!!
 Asanka D
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology

Re: [Dev] [Appfactory] common object in the seesion to hold data related to an applicaiton

2013-09-02 Thread Asanka Dissanayake
Hi,
What is the best place to create this? IMHO,  we should create this and put
to the session when the application home is loaded.
Any comments?




On Fri, Aug 30, 2013 at 12:04 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 I think it is better to have $subject in appfactory. ATM there is no
 common place to get info of the application.Now it is bit hard to keep
 tracks on where are the details we want , for example Logged in user,
 tenant id, tenant domain.
 I will start implementing it with a object called APPLICATION_INFO which
 is in the session , and have planned to store following information.

 -Logged in User
 -Application Owners
 -Tenant domain
 -Tenant Id

 Please add if I have missed anything.

 cheers!!
 Asanka D

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Appfactory] common object in the seesion to hold data related to an applicaiton

2013-08-30 Thread Asanka Dissanayake
Hi,
I think it is better to have $subject in appfactory. ATM there is no common
place to get info of the application.Now it is bit hard to keep tracks on
where are the details we want , for example Logged in user, tenant id,
tenant domain.
I will start implementing it with a object called APPLICATION_INFO which
is in the session , and have planned to store following information.

-Logged in User
-Application Owners
-Tenant domain
-Tenant Id

Please add if I have missed anything.

cheers!!
Asanka D

-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Gokul

2013-08-28 Thread Asanka Dissanayake
congratz Gokul!!


On Wed, Aug 28, 2013 at 4:59 PM, Anjana Fernando anj...@wso2.com wrote:

 Hi everyone,

 It's my pleasure to announce Gokul as a WSO2 commiter. Gokul has done many
 contributions in improving the BAM product. And I'm sure he will continue
 to be a key member in the team. Gokul, welcome aboard and keep it up! ..


 Cheers,
 Anjana.

 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Welcome Lasantha Fernando as a WSO2 Committer

2013-08-26 Thread Asanka Dissanayake
Congratz Lasantha!!


On Mon, Aug 26, 2013 at 5:10 PM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Congratulations Lasantha !!!


 On Mon, Aug 26, 2013 at 5:00 PM, Asanka Sanjeewa asan...@wso2.com wrote:

 Congratulations Lasantha.

 Regards,
 AsankaS.


 On Mon, Aug 26, 2013 at 4:56 PM, Maninda Edirisooriya 
 mani...@wso2.comwrote:

 Congratulations Lasantha :-)

 *
 Maninda Edirisooriya*
 Software Engineer
 *WSO2, Inc.
 *lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Mon, Aug 26, 2013 at 4:49 PM, Rajeev Sampath raje...@wso2.comwrote:

 Congrats!!


 On Mon, Aug 26, 2013 at 4:14 PM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:

 Hi All,

 It is my pleasure to welcome Lasantha Fernando as a WSO2 Committer.

 Lasantha joined CEP team and have contributed a lot to CEP product,
 He has also worked on Siddhi adding several improvements successfully.

 In recognition of his commitment and contributions, he has been voted
 as a Committer for WSO2.

 Lasantha, Congratulations and Welcome Aboard! Keep up the good work!!

 Regards,
 Suho

 --
 *S. Suhothayan
 *
 Associate Technical Lead,
  *WSO2 Inc. *http://wso2.com *
  http://wso2.com/*
 lean . enterprise . middleware

 *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
 twitter: http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan*
 *
 *

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




 --
 Rajeev Sampath
 Senior Software Engineer
 WSO2, Inc.; http://www.wso2.com.

 Mobile:* +94716265766
 *

 ___
 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




 --
 *Asanka Sanjeewa*
 Senior Software Engineer
 Mobile: +94772532924
 WSO2 Inc. http://wso2.com/
 Blog: http://asanka-tech-blog.blogspot.com/


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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committer += Ruwan Yatawara

2013-08-18 Thread Asanka Dissanayake
Congratz Ruwan!!!


On Mon, Aug 19, 2013 at 10:49 AM, Sumedha Rubasinghe sume...@wso2.comwrote:

 It's my pleasure to welcome Ruwan Yatawara as a WSO2 Committer considering
 all the valuable contributions he has done during past few months.

 Ruwan,
 Welcome aboard  keep up the good work.

 --
 /sumedha
 b :  bit.ly/sumedha

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Piyum Fernando

2013-08-14 Thread Asanka Dissanayake
Congratzz piyum!!


On Wed, Aug 14, 2013 at 1:32 PM, Sagara Gunathunga sag...@wso2.com wrote:


 It is my pleasure to welcome Piyum Fernando as a WSO2 Committer.

 Piyum, Welcome Aboard!   please keep up the good work!!

 Thanks !
 --
 Sagara Gunathunga

 Senior Technical Lead; WSO2, Inc.;  http://wso2.com
 V.P Apache Web Services;http://ws.apache.org/
 Linkedin; http://www.linkedin.com/in/ssagara
 Blog ;  http://ssagara.blogspot.com


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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Bhathiya

2013-08-13 Thread Asanka Dissanayake
congratzz bhathiya


On Tue, Aug 13, 2013 at 2:17 PM, Pushpalanka Jayawardhana la...@wso2.comwrote:

 Congratulations...!!!

 Pushpalanka Jayawardhana

 Software Engineer

 WSO2 Lanka (pvt) Ltd
 [image: 
 Facebook]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.facebook.com%2Fpushpalanka
  [image:
 Twitter]http://s.wisestamp.com/links?url=http%3A%2F%2Ftwitter.com%2FPushpalanka
  [image:
 LinkedIn]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.linkedin.com%2Fprofile%2Fview%3Fid%3D75175642%26trk%3Dtab_pro
  [image:
 Blogger]http://s.wisestamp.com/links?url=http%3A%2F%2Fpushpalankajaya.blogspot.com%2F
  [image:
 SlideShare]http://s.wisestamp.com/links?url=http%3A%2F%2Fwww.slideshare.net%2FPushpalanka
 Mobile: +94779716248

 http://s.wisestamp.com/links?url=http%3A%2F%2Fr1.wisestamp.com%2Fr%2Flanding%3Fu%3Dc984892c0c4ca423%26v%3D3.13.2%26t%3D1361257731639%26promo%3D10%26dest%3Dhttp%253A%252F%252Fwww.wisestamp.com%252Femail-install%253Futm_source%253Dextension%2526utm_medium%253Demail%2526utm_campaign%253Dpromo_10


 On Tue, Aug 13, 2013 at 2:08 PM, Prabath Abeysekera praba...@wso2.comwrote:

 Hi All,

 It's my pleasure to welcome Bhathiya Jayasekara as a WSO2 Committer.
 Bhathiya has been a key member of the team since he joined SS and has
 contributed greatly to SS related developments over the last couple of
 months. In acknowledgement of his contributions, he's been voted as a WSO2
 comitter. Welcome aboard and keep up the good work!


 Cheers,
 Prabath

 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com harsha...@wso2.com
 Mobile: +94774171471

 http://harshana05.blogspot.com/

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



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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Welcome Susankha Nirmala as a WSO2 Committer

2013-07-26 Thread Asanka Dissanayake
Congratzz susankha !!


On Fri, Jul 26, 2013 at 11:36 AM, Harshana Martin harsh...@wso2.com wrote:

 Hi All,

 It is my distinct pleasure to welcome Susankha Nirmala as a WSO2
 Committer.

 Susankha has made some great contributions to WSO2 Developer Studio and
 the Carbon Platform during the last couple of months and in recognition of
 his commitment and contributions, he has been voted as a Committer for
 WSO2.

 Susankha, Congratulations and Welcome Aboard!

 Keep up the good work!!

 Thanks and Regards,
 Harshana
 --

 Harshana Martin
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 775 998 115
 Profile: https://www.google.com/profiles/harshana05
 Blog: http://harshana05.blogspot.com
 Twitter: http://twitter.com/harshana05


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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Invitation: Code Review - AppFactory User Management and Build and Re... @ Tue Jul 23, 2013 4pm - 5pm (asan...@wso2.com)

2013-07-23 Thread Asanka Dissanayake
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130723T103000Z
DTEND:20130723T113000Z
DTSTAMP:20130723T062145Z
ORGANIZER;CN=Asanka Dissanayake:mailto:asan...@wso2.com
UID:1bf62k3bilg2l6461hhd9j7...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chanaka Jayasena;X-NUM-GUESTS=0:mailto:chan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ajanthan Balachandran;X-NUM-GUESTS=0:mailto:ajant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Shamika Ariyawansa;X-NUM-GUESTS=0:mailto:sham...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Nuwan Bandara;X-NUM-GUESTS=0:mailto:nu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Asanka Dissanayake;X-NUM-GUESTS=0:mailto:asan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Madhuka Udantha;X-NUM-GUESTS=0:mailto:madh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chathura Kulasinghe;X-NUM-GUESTS=0:mailto:chathu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Danushka Fernando;X-NUM-GUESTS=0:mailto:danush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Gayan Dhanushka;X-NUM-GUESTS=0:mailto:gay...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Shiroshica Kulatilake;X-NUM-GUESTS=0:mailto:sh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20130723T061451Z
DESCRIPTION:Please find the crucible link on [1] for AppFactory code review
  \n[1]http://wso2.org/crucible/cru/WAF003-5\nView your event at http://www.
 google.com/calendar/event?action=VIEWeid=MWJmNjJrM2JpbGcybDY0NjFoaGQ5ajc2Z
 2MgZGV2QHdzbzIub3Jntok=MTYjYXNhbmthZEB3c28yLmNvbTAzM2QyZjBjMTUxZmQ0MWY2MGV
 kNGQzMDdjMTA4NzdhNWMzZDlkNDMctz=Asia/Colombohl=en.
LAST-MODIFIED:20130723T062145Z
LOCATION:LK #58 5th Floor - Meeting room (map)
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review - AppFactory User Management and Build and Repo Pages
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] Updated Invitation: Code Review - AppFactory User Management and Build and Re... @ Tue Jul 23, 2013 4pm - 5pm (asan...@wso2.com)

2013-07-23 Thread Asanka Dissanayake
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130723T103000Z
DTEND:20130723T113000Z
DTSTAMP:20130723T101954Z
ORGANIZER;CN=Asanka Dissanayake:mailto:asan...@wso2.com
UID:1bf62k3bilg2l6461hhd9j7...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chanaka Jayasena;X-NUM-GUESTS=0:mailto:chan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ajanthan Balachandran;X-NUM-GUESTS=0:mailto:ajant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Shamika Ariyawansa;X-NUM-GUESTS=0:mailto:sham...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Nuwan Bandara;X-NUM-GUESTS=0:mailto:nu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Asanka Dissanayake;X-NUM-GUESTS=0:mailto:asan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Madhuka Udantha;X-NUM-GUESTS=0:mailto:madh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=TENTATIVE;RSVP=TRU
 E;CN=Chathura Kulasinghe;X-NUM-GUESTS=0:mailto:chathu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Danushka Fernando;X-NUM-GUESTS=0:mailto:danush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Gayan Dhanushka;X-NUM-GUESTS=0:mailto:gay...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Shiroshica Kulatilake;X-NUM-GUESTS=0:mailto:sh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TR
 UE;CN=LK #58 4th Floor Meeting room;X-NUM-GUESTS=0:mailto:wso2.com_39313938
 30333235383...@resource.calendar.google.com
CREATED:20130723T061451Z
DESCRIPTION:Please find the crucible link on [1] for AppFactory code review
  \n[1]http://wso2.org/crucible/cru/WAF003-5\nView your event at http://www.
 google.com/calendar/event?action=VIEWeid=MWJmNjJrM2JpbGcybDY0NjFoaGQ5ajc2Z
 2MgZGV2QHdzbzIub3Jntok=MTYjYXNhbmthZEB3c28yLmNvbTAzM2QyZjBjMTUxZmQ0MWY2MGV
 kNGQzMDdjMTA4NzdhNWMzZDlkNDMctz=Asia/Colombohl=en.
LAST-MODIFIED:20130723T101953Z
LOCATION:LK #58 4th Floor Meeting room
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review - AppFactory User Management and Build and Repo Pages
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


[Dev] Updated Invitation: Code Review - AppFactory User Management and Build and Re... @ Tue Jul 23, 2013 4pm - 5:30pm (asan...@wso2.com)

2013-07-23 Thread Asanka Dissanayake
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20130723T103000Z
DTEND:20130723T12Z
DTSTAMP:20130723T103332Z
ORGANIZER;CN=asan...@wso2.com:mailto:asan...@wso2.com
UID:1bf62k3bilg2l6461hhd9j7...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chanaka Jayasena;X-NUM-GUESTS=0:mailto:chan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ajanthan Balachandran;X-NUM-GUESTS=0:mailto:ajant...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Shamika Ariyawansa;X-NUM-GUESTS=0:mailto:sham...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=TENTATIVE;RSVP=TRU
 E;CN=Nuwan Bandara;X-NUM-GUESTS=0:mailto:nu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Punnadi Gunarathna;X-NUM-GUESTS=0:mailto:punn...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Asanka Dissanayake;X-NUM-GUESTS=0:mailto:asan...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Madhuka Udantha;X-NUM-GUESTS=0:mailto:madh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Manisha Gayathri;X-NUM-GUESTS=0:mailto:mani...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=TENTATIVE;RSVP=TRU
 E;CN=Chathura Kulasinghe;X-NUM-GUESTS=0:mailto:chathu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Danushka Fernando;X-NUM-GUESTS=0:mailto:danush...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Gayan Dhanushka;X-NUM-GUESTS=0:mailto:gay...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Dimuthu Leelarathne;X-NUM-GUESTS=0:mailto:dimut...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Shiroshica Kulatilake;X-NUM-GUESTS=0:mailto:sh...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
ATTENDEE;CUTYPE=RESOURCE;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;C
 N=LK #58 4th Floor Meeting room;X-NUM-GUESTS=0:mailto:wso2.com_393139383033
 3235383...@resource.calendar.google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Janaka Ranabahu;X-NUM-GUESTS=0:mailto:jan...@wso2.com
CREATED:20130723T061451Z
DESCRIPTION:Please find the crucible link on [1] for AppFactory code review
  \n[1]http://wso2.org/crucible/cru/WAF003-5\nView your event at http://www.
 google.com/calendar/event?action=VIEWeid=MWJmNjJrM2JpbGcybDY0NjFoaGQ5ajc2Z
 2MgZGV2QHdzbzIub3Jntok=MTYjYXNhbmthZEB3c28yLmNvbTAzM2QyZjBjMTUxZmQ0MWY2MGV
 kNGQzMDdjMTA4NzdhNWMzZDlkNDMctz=Asia/Colombohl=en.
LAST-MODIFIED:20130723T103332Z
LOCATION:LK #58 4th Floor Meeting room
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Code Review - AppFactory User Management and Build and Repo Pages
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] [DEV][APPFAC]Reducing Ajax calls and displaying meaningfull error messages when inviting a user to app

2013-07-19 Thread Asanka Dissanayake
Hi All,
can we include this in AF 1.1.0. Flooding back end with ajax calls is not
nice which happens now when inviting multiple users and updating multiple
users. we can come up with a same solution for update users and delete
users operations.
This not just a nice to have feature i guess.

cheers!!!


On Fri, May 10, 2013 at 4:08 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 Regarding adding a user to application.

 According to the present situation there is one method in
 ApplicationManagementService.java to do this.

 * public boolean addUserToApplication(String applicationId, String
 userName, String[] roles)*
 This can be used when assigning multiple roles to single user. But when it
 comes to assigning multiple users a same set of roles ,it requires many
 Ajax calls from the UI side.since it is cozy, we can introduce a method

 *public ListNameValuePair** addUserToApplication(String applicationId,
 String[] userNames, String[] roles)*
 *
 *
 So the* ListNameValuePair* can contain username as the Name and status
 of the operation as the value.
 When inviting a user following failure scenarios may take place.

 -not in the LDAP
 -internal error
 So depending on the cause of the error we can get a status code and inform
 the user from UI that which users added successfully and which failed. and
 also reason can be specified for failure.

 If we are going with this,we will have to change
 -Applicationmgt
 -jaggery
  -module level,UI
 -BPEL AddUserToApplication

 This is my opinion. need a feedback.

 cheers!!!


 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Build Failed in 4.1.2 patch release

2013-07-16 Thread Asanka Dissanayake
Hi ,
I get following error when building patch release 4.1.2.


Installing org.wso2.carbon.stratos.deployment.feature.group 2.1.0.
Installing
org.wso2.carbon.identity.authenticator.saml2.sso.server.feature.group 4.1.2.
Installing
org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature.group 4.1.2.
Installation failed.
An error occurred while configuring the installed items
 session context was:(profile=WSO2CarbonProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Configure, operand=null
-- [R]org.wso2.carbon.stratos.common.server.feature.group 2.1.2,
action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.CopyAction).
 I/O Error while copying
/home/asanka/carbon/platform/4.1.0/products/apimgt/1.4.0/modules/p2-profile/product/target/wso2carbon-core-4.1.0/repository/components/features/org.wso2.carbon.stratos.common.server_2.1.2/conf/identity.xml
- see details.
Caused by:  java.io.IOException: Source:
/home/asanka/carbon/platform/4.1.0/products/apimgt/1.4.0/modules/p2-profile/product/target/wso2carbon-core-4.1.0/repository/components/features/org.wso2.carbon.stratos.common.server_2.1.2/conf/identity.xmldoes
not exists
Application failed, log file location:
/home/asanka/.m2/repository/org/eclipse/tycho/tycho-p2-runtime/0.13.0/eclipse/configuration/1373963644296.log

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 22.372s
[INFO] Finished at: Tue Jul 16 14:04:15 IST 2013
[INFO] Final Memory: 12M/981M
[INFO]

[ERROR] Failed to execute goal
org.wso2.maven:carbon-p2-plugin:1.5.2:p2-profile-gen
(4-p2-profile-generation) on project am-p2-profile: P2 publisher return
code was 13 - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
a
-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] A better Java JSON library?

2013-07-16 Thread Asanka Dissanayake
Hi Devs,
Is there any $subject, which is recommended to use in wso2. I need to use
one to deal with gilblit api.

cheers!!

-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] A better Java JSON library?

2013-07-16 Thread Asanka Dissanayake
cool.i think gson will suit for the purpose. thanks

cheers!!


On Tue, Jul 16, 2013 at 2:58 PM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi Asanka,

 If you need to only serialize/deserialize json, I think you might use
 google-gson (https://code.google.com/p/google-gson/). It has already
 being used in already existing components (e.g. data-bridge).

 If you need something like JsonPath for querying JSON, you can try
 json-path (https://code.google.com/p/json-path/). It is already bundled
 in
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/dependencies/orbit/json-path/.
 (It is used in ESB I think in and will be used with the next CEP release as
 well)

 HTH,

 Lasantha

 On 16 July 2013 14:33, Asanka Dissanayake asan...@wso2.com wrote:

 Hi Devs,
 Is there any $subject, which is recommended to use in wso2. I need to use
 one to deal with gilblit api.

 cheers!!

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] A better Java JSON library?

2013-07-16 Thread Asanka Dissanayake
thanks shameera. requirement is I have use gitblit api. Passing  obejcts to
the api is fine.
I need to process the repsonse. it's like JSON to Java object mapping.
I think Staxon is better than using Gson alone. right?

cheers!!


On Tue, Jul 16, 2013 at 3:12 PM, Asanka Dissanayake asan...@wso2.comwrote:

 cool.i think gson will suit for the purpose. thanks

 cheers!!


 On Tue, Jul 16, 2013 at 2:58 PM, Lasantha Fernando lasan...@wso2.comwrote:

 Hi Asanka,

 If you need to only serialize/deserialize json, I think you might use
 google-gson (https://code.google.com/p/google-gson/). It has already
 being used in already existing components (e.g. data-bridge).

 If you need something like JsonPath for querying JSON, you can try
 json-path (https://code.google.com/p/json-path/). It is already bundled
 in
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/dependencies/orbit/json-path/.
 (It is used in ESB I think in and will be used with the next CEP release as
 well)

 HTH,

 Lasantha

 On 16 July 2013 14:33, Asanka Dissanayake asan...@wso2.com wrote:

 Hi Devs,
 Is there any $subject, which is recommended to use in wso2. I need to
 use one to deal with gilblit api.

 cheers!!

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Punnadi Goonewardena

2013-07-03 Thread Asanka Dissanayake
Congratzz punnadi!!




On Wed, Jul 3, 2013 at 2:24 PM, Chanika Geeganage chan...@wso2.com wrote:

 Congratulations Punnadi!!!


 On Wed, Jul 3, 2013 at 2:18 PM, Nihanth Joseph niha...@wso2.com wrote:

 Congratulations Punnadi!


 On Wed, Jul 3, 2013 at 2:15 PM, Sumedha Kodithuwakku 
 sumed...@wso2.comwrote:

 Congratzz Punnadi!


 On Wed, Jul 3, 2013 at 2:13 PM, Ishara Premadasa ish...@wso2.comwrote:

 Congratulations Punnadi!


 On Wed, Jul 3, 2013 at 1:40 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 Congrats 

 On Wed, Jul 3, 2013 at 1:37 PM, Dimuthu Leelarathne dimut...@wso2.com
  wrote:

 Hi Punnadi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Thank you for your contributions.

 thanks and best regards,
 Dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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




 --
 Ishara Premasada
 Software Engineer,
 WSO2 Inc. http://wso2.com/
 *Blog   :  http://isharapremadasa.blogspot.com/
 Twitter   :  https://twitter.com/ishadil
 Mobile   : +94 714445832*



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




 --
 *Sumedha Kodithuwakku*
 Software Engineer
 WSO2 Inc. : wso2.com
 lean . enterprise . middleware
 Mobile : +94718081124


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




 --
 Nihanth Joseph
 Senior Software Engineer
 Mob: +94719187136

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




 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Mobile: +94773522586

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shafreen Anfar

2013-07-03 Thread Asanka Dissanayake
congratzz shafreen!!!


On Wed, Jul 3, 2013 at 2:26 PM, Pamod Sylvester pa...@wso2.com wrote:

 Congratulations Shafreen!


 On Wed, Jul 3, 2013 at 2:23 PM, Dimuthu De Lanerolle dimut...@wso2.comwrote:

 Congratz Shafreen !




 On Wed, Jul 3, 2013 at 2:21 PM, Rajeev Sampath raje...@wso2.com wrote:

 Congrats Shafreen!!


 On Wed, Jul 3, 2013 at 2:03 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Folks,

 Its my pleasure to welcome Shafreen Anfar as a WSO2 Committer. He is a
 key contributor in bug fixing of 4.7 release and done a good job in ESB
 performance testing too.

 Shafreen, welcome aboard and keep up the good work.

 Thanks.

 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 Rajeev Sampath
 Senior Software Engineer
 WSO2, Inc.; http://www.wso2.com.

 Mobile:* +94716265766
 *

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




 --
 Dimuthu De Lanerolle
 Software Engineer (Automation)
 WSO2 Inc.

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




 --
 *Pamod Sylvester *
 *
 *
 *
 Software Engineer
 *
 Integration Technologies Team, WSO2 Inc.; http://wso2.com
 email: pa...@wso2.com cell: +94 77 7779495

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shameera Rathnayaka

2013-07-01 Thread Asanka Dissanayake
Congratzz shameera !!!


On Mon, Jul 1, 2013 at 8:59 PM, Lasantha Fernando lasan...@wso2.com wrote:

 Congratz Shameera!!... :-)


 On 1 July 2013 18:46, Geeth Munasinghe ge...@wso2.com wrote:

 Congratz Shameera ...!

 *G. K. S. Munasinghe
 *
 *Software Engineer,*
 *WSO2, Inc. http://wso2.com *
 *lean.enterprise.middleware.*
 *
 *
 email: ge...@wso2.com
 phone:(+94) 777911226


 On Mon, Jul 1, 2013 at 6:10 PM, Inosh Goonewardena in...@wso2.comwrote:

 Congratz Shameera


 On Mon, Jul 1, 2013 at 6:05 PM, Isuru Perera isu...@wso2.com wrote:

 Congratulations Shameera! :)


 On Mon, Jul 1, 2013 at 1:21 PM, Pradeep Fernando prad...@wso2.comwrote:

 Hi Devs,

 Its my pleasure to welcome Shameera Rathnayaka as a WSO2 committer.
 He has made valuable contributions to WSO2 Carbon platform over the
 last few months. Thanks Shameera for the contributions and keep up the 
 good
 work.


 Shameera, welcome aboard!!

 thanks,
 --Pradeep



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




 --
 Isuru Perera
 Senior Software Engineer | WSO2, Inc. | http://wso2.com/

 Lean . Enterprise . Middleware

 Twitter: http://twitter.com/chrishantha | LinkedIn:
 http://lk.linkedin.com/in/chrishantha/

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




 --
 Regards,

 Inosh Goonewardena
 Associate Technical Lead- WSO2 Inc.
 Mobile: +94779966317

 ___
 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




 --
 *Lasantha Fernando*
 Software Engineer - Data Technologies Team
 WSO2 Inc. http://wso2.com

 email: lasan...@wso2.com
 mobile: (+94) 71 5247551

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APPFAC][AS] upgrading appfac live with AS 5.1.0

2013-05-28 Thread Asanka Dissanayake
Hi All,
Appfactory staging is successfully upgraded with AS 5.1.0.We are about to
upgrade the Appfac live with the same.
Following Gdoc contains the steps to follow for the upgrade

https://docs.google.com/a/wso2.com/document/d/1xu1jEyZPbyzU5kmMGz6h_u42CYItM6F5kuOZe2nwl-4/edit?usp=sharing

Please find the required jars in the following link
https://svn.wso2.com/wso2/custom/projects/projects/afdeployment/weekly_patches/27May/AS-upgrade-502to510/

@manula.
Please suggest a feasible time


-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [ELB][APPFAC][AS 5.1.0] Error while connecting to elb

2013-05-27 Thread Asanka Dissanayake
Hi Nirmal,
it's done.problem solved .
thnx.

cheers!!

AD


On Mon, May 27, 2013 at 11:48 AM, Nirmal Fernando nir...@wso2.com wrote:

 Hi Asanka,

 As informed offline, reason for this possibly would be that you've missed
 the correct patch that needs to be there in the appserver to work with ELB
 2.0.4+.

 Please add the patches I've sent and try.


 On Mon, May 27, 2013 at 11:16 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Following error log can be seen when AS 5.1.0 trying to connect elb. AS
 following shows, AS sends the request to elb and elb receives it
 successfully. But elb does't response.
 this error can be seen in the AS logs

 TID: [0] [AS] [2013-05-23 02:56:40,910]  INFO
 {org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme} -  No
 responses received from WKA members
 {org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme}
 TID: [0] [AS] [2013-05-23 02:56:45,910]  INFO
 {org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme} -  Sending
 JOIN message to WKA members...
 {org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme}
 TID: [0] [AS] [2013-05-23 02:56:52,273] ERROR
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
 while running deployment scheduler..
  {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask}
 java.lang.AbstractMethodError:
 org.wso2.carbon.deployment.synchronizer.git.GitBasedArtifactRepository.checkout(ILjava/lang/String;)Z
 at
 org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizer.checkout(DeploymentSynchronizer.java:181)
  at
 org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:87)
 at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:146)
  at
 org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:111)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
  at
 java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
  at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
 at
 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
  at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
  at java.lang.Thread.run(Thread.java:722)

 this is the log in the elb.

 TID: [0] [ELB] [2013-05-26 22:41:36,828]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:41:51,830]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:42:06,831]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:42:21,833]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:42:36,835]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:42:51,837]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:43:06,838]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
 TID: [0] [ELB] [2013-05-26 22:43:21,841]  INFO
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
  Received JOIN message from 10.118.139.22:4100(
 appserver.dev.staging.appfactorypreview.wso2.com)
 {org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler

[Dev] [ELB][APPFAC][AS 5.1.0] Error while connecting to elb

2013-05-26 Thread Asanka Dissanayake
Following error log can be seen when AS 5.1.0 trying to connect elb. AS
following shows, AS sends the request to elb and elb receives it
successfully. But elb does't response.
this error can be seen in the AS logs

TID: [0] [AS] [2013-05-23 02:56:40,910]  INFO
{org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme} -  No
responses received from WKA members
{org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme}
TID: [0] [AS] [2013-05-23 02:56:45,910]  INFO
{org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme} -  Sending
JOIN message to WKA members...
{org.apache.axis2.clustering.tribes.WkaBasedMembershipScheme}
TID: [0] [AS] [2013-05-23 02:56:52,273] ERROR
{org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask} -  Error
while running deployment scheduler..
 {org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask}
java.lang.AbstractMethodError:
org.wso2.carbon.deployment.synchronizer.git.GitBasedArtifactRepository.checkout(ILjava/lang/String;)Z
at
org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizer.checkout(DeploymentSynchronizer.java:181)
at
org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:87)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.deploymentSyncUpdate(CarbonDeploymentSchedulerTask.java:146)
at
org.wso2.carbon.core.deployment.CarbonDeploymentSchedulerTask.run(CarbonDeploymentSchedulerTask.java:111)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

this is the log in the elb.

TID: [0] [ELB] [2013-05-26 22:41:36,828]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:41:51,830]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:42:06,831]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:42:21,833]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:42:36,835]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:42:51,837]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:43:06,838]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}
TID: [0] [ELB] [2013-05-26 22:43:21,841]  INFO
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler} -
 Received JOIN message from 10.118.139.22:4100(
appserver.dev.staging.appfactorypreview.wso2.com)
{org.apache.axis2.clustering.control.wka.RpcMembershipRequestHandler}



-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Two component location for AppFactory in 4.1.0 branch

2013-05-24 Thread Asanka Dissanayake
Hi Ajith,
We are using [1] .


On Fri, May 24, 2013 at 3:47 PM, Ajith Vitharana aji...@wso2.com wrote:

 Hi all

 What is the correct one we should use and why do we maintain two locations
 ??

 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/appfac/
 [2]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/components/appfactory/


 Thanks
 Ajith

 --
 Ajith Vitharana.
 Senior Software Engineer,
 Member,Management Committee,
 Integration Technologies.

 WSO2 Inc. - http://wso2.org
 Email  :  aji...@wso2.com
 Mobile : +94772217350




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPFAC]--Jmeter test scripts for Appfactory

2013-05-21 Thread Asanka Dissanayake
Hi All,
this is done and applied.
https://wso2.org/jira/browse/APPFAC-965

cheers!!


On Wed, May 15, 2013 at 9:27 AM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Asanka,

 Lets make sure that  we take Application Type as a parameter. This allows
 us to run the above scenario for all app types, i.e. for webapps, jaxrs,
 jaxws, dss, bpel and etc 

 thanks,
 dimuthu


 On Tue, May 14, 2013 at 7:03 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 following scenarios have been chosen to write jmeter scripts for the
 Appfactory.

 create application
 add dev ops
 build
 deploy
 launch in development
 promote to test
 launch test
 demote to dev
 promote to test
 launch test
 promote to staging
 launch staging
 promote to production
 launch production

 this requires following parameters.

 Application Type
 Application Name
 user name
 password etc...

 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*

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




 --
 Dimuthu Leelarathne
 Architect  Chair of Solution Management Committee

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

 Lean . Enterprise . Middleware




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Danushka Fernando

2013-05-14 Thread Asanka Dissanayake
congratz danushka!!!

cheers!!


On Tue, May 14, 2013 at 1:45 PM, Manisha Gayathri mani...@wso2.com wrote:

 Congratulations Danushka!!!

 On Tue, May 14, 2013 at 11:35 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Hi,
  Its my pleasure to welcome Danushka Fernando as a WSO2 Commiter.
  He made excellent contributions towards making the Appfactory stable and
 worked on improving the performance.

 Danushka, welcome aboard and keep up the good work.

 regards
 --
 Ramith Jayasinghe

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




 --
 ~Regards
 *Manisha Eleperuma*
 Software Engineer, Solutions TG
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware

 *blog:  http://manisha-eleperuma.blogspot.com/*
 *mobile:  +94 71 8279777*
 *
 *

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APPFAC]--Jmeter test scripts for Appfactory

2013-05-14 Thread Asanka Dissanayake
Hi All,
following scenarios have been chosen to write jmeter scripts for the
Appfactory.

create application
add dev ops
build
deploy
launch in development
promote to test
launch test
demote to dev
promote to test
launch test
promote to staging
launch staging
promote to production
launch production

this requires following parameters.

Application Type
Application Name
user name
password etc...

-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-13 Thread Asanka Dissanayake
Hi,
Found a possible reason for this issue. There are some ajax calls in some
Template.jag files written for page loading event without using
$(document).ready().I m going to fix this and patch the staging.Then we can
go through logs again and confirm whether it is fixed.

cheers!!


On Mon, May 13, 2013 at 11:05 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 Checked the logs on staging for past few days.There are number of
 occurances of this issue .But not in the file mentioned in the beginning of
 this thread. In this thread, file
 is /appmgt/site/blocks/application/add/ajax/add.jag. But in the
 staging,there are several files have been subjected to this issue.


 On Mon, May 13, 2013 at 10:36 AM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi,

 Shall we grep for this error in the repository/logs folder and see it's
 frequency?

 thanks,
 dimuthu



 On Mon, May 13, 2013 at 10:24 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 I tried this using a RestClient. I could reproduce this by not sending
 the Content-Type header with the request. AFAIT, dropping headers might be
 the reason.


 On Fri, May 10, 2013 at 4:59 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 I got the same issue when calling ,
 /appmgt/site/blocks/user/login/ajax/login.jag
 action parameter is passed.I checked with a log in the module.

 this is the reason for https://wso2.org/jira/browse/APPFAC-875
 cheers


 On Wed, May 8, 2013 at 1:21 AM, Dilshan Edirisuriya 
 dils...@wso2.comwrote:

 Hi Manjula,

 jagg.post is a wrapper function for jQuery.ajax. There are possible
 ways this could get failed. It seems the data parameter required for 
 jquery
 post is not properly created in this scenario. If so it will go as null 
 and
 will result this kind of error. Possible reproducible scenarios could be
 clicking on the submit button before page loads (dom loads), invalid 
 values
 for dom entries which you are reading etc. Not always true but could
 happen. Try to log all the request parameters which you are passing from 
 UI
 and see whether it is reaching the backend by logging. In this scenario
 other parameters also will be empty.

 Alternatively this could also be because of the dataType. jagg.post
 wrapper does not pass the dataType here so it will be a guess from the
 server side. Try to set the data type explicitly as well.

 Regards,

 Dilshan


 On Tue, May 7, 2013 at 2:42 PM, Manjula Rathnayake 
 manju...@wso2.comwrote:

 Hi Nuwan,

 Please find the corresponding code block in template.jag which do the
 post to above page. Here we are setting the action. Any possible scenario
 that above block get executed without these post parameters?

 function createApplicationSubmit(){
 jagg.post(../blocks/application/add/ajax/add.jag, {
* action:createNewApplication*,

 applicationName:$(#applicationName).attr('value'),

 applicationKey:$(#applicationKey).attr('value'),

 applicationDescription:$(#applicationDescription).attr('value'),

 applicationType:$(#applicationType).attr('value'),

 repositoryType:$(#repositoryType).attr('value'),
 userName:$(#userName).attr('value')
 },
...

 thank you.



 On Tue, May 7, 2013 at 2:22 PM, Nuwan Bandara nu...@wso2.com wrote:

 Am sure during those intermittent cases the action is not sent, this
 is pretty trivial code block, if the item is not in the request then its
 throwing the error.

 Regards,
 /Nuwan



 On Tue, May 7, 2013 at 2:06 PM, Manjula Rathnayake 
 manju...@wso2.com wrote:

 Hi Nuwan,

 Please note that this is intermittent. Here the error is action is
 missing in incoming httpRequest. But Why this become intermittent?

  var mod, obj, result,
 action = request.getParameter(action),
 site = require(/site/conf/site.json);

 // line 140
 else {
 throw new Error(No action specified);
 }


 thank you.



 On Tue, May 7, 2013 at 1:58 PM, Nuwan Bandara nu...@wso2.comwrote:

 whats in (/appmgt/site/blocks/application/add/ajax/add.jag#140

 Regards,
 /Nuwan


 On Tue, May 7, 2013 at 1:55 PM, Manjula Rathnayake 
 manju...@wso2.com wrote:

 Hi all,

 Following intermittent error is noticed. Any idea/clue please.

  ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error: No action 
 specified
 (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.JavaScriptException: Error: No action 
 specified
 (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:446)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-12 Thread Asanka Dissanayake
Hi All,
I tried this using a RestClient. I could reproduce this by not sending the
Content-Type header with the request. AFAIT, dropping headers might be the
reason.


On Fri, May 10, 2013 at 4:59 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 I got the same issue when calling ,
 /appmgt/site/blocks/user/login/ajax/login.jag
 action parameter is passed.I checked with a log in the module.

 this is the reason for https://wso2.org/jira/browse/APPFAC-875
 cheers


 On Wed, May 8, 2013 at 1:21 AM, Dilshan Edirisuriya dils...@wso2.comwrote:

 Hi Manjula,

 jagg.post is a wrapper function for jQuery.ajax. There are possible ways
 this could get failed. It seems the data parameter required for jquery post
 is not properly created in this scenario. If so it will go as null and will
 result this kind of error. Possible reproducible scenarios could be
 clicking on the submit button before page loads (dom loads), invalid values
 for dom entries which you are reading etc. Not always true but could
 happen. Try to log all the request parameters which you are passing from UI
 and see whether it is reaching the backend by logging. In this scenario
 other parameters also will be empty.

 Alternatively this could also be because of the dataType. jagg.post
 wrapper does not pass the dataType here so it will be a guess from the
 server side. Try to set the data type explicitly as well.

 Regards,

 Dilshan


 On Tue, May 7, 2013 at 2:42 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi Nuwan,

 Please find the corresponding code block in template.jag which do the
 post to above page. Here we are setting the action. Any possible scenario
 that above block get executed without these post parameters?

 function createApplicationSubmit(){
 jagg.post(../blocks/application/add/ajax/add.jag, {
* action:createNewApplication*,

 applicationName:$(#applicationName).attr('value'),

 applicationKey:$(#applicationKey).attr('value'),

 applicationDescription:$(#applicationDescription).attr('value'),

 applicationType:$(#applicationType).attr('value'),

 repositoryType:$(#repositoryType).attr('value'),
 userName:$(#userName).attr('value')
 },
...

 thank you.



 On Tue, May 7, 2013 at 2:22 PM, Nuwan Bandara nu...@wso2.com wrote:

 Am sure during those intermittent cases the action is not sent, this is
 pretty trivial code block, if the item is not in the request then its
 throwing the error.

 Regards,
 /Nuwan



 On Tue, May 7, 2013 at 2:06 PM, Manjula Rathnayake 
 manju...@wso2.comwrote:

 Hi Nuwan,

 Please note that this is intermittent. Here the error is action is
 missing in incoming httpRequest. But Why this become intermittent?

  var mod, obj, result,
 action = request.getParameter(action),
 site = require(/site/conf/site.json);

 // line 140
 else {
 throw new Error(No action specified);
 }


 thank you.



 On Tue, May 7, 2013 at 1:58 PM, Nuwan Bandara nu...@wso2.com wrote:

 whats in (/appmgt/site/blocks/application/add/ajax/add.jag#140

 Regards,
 /Nuwan


 On Tue, May 7, 2013 at 1:55 PM, Manjula Rathnayake manju...@wso2.com
  wrote:

 Hi all,

 Following intermittent error is noticed. Any idea/clue please.

  ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error: No action specified
 (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.JavaScriptException: Error: No action specified
 (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:446)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:177)
 at
 org.wso2

Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-12 Thread Asanka Dissanayake
Hi,
Checked the logs on staging for past few days.There are number of
occurances of this issue .But not in the file mentioned in the beginning of
this thread. In this thread, file
is /appmgt/site/blocks/application/add/ajax/add.jag. But in the
staging,there are several files have been subjected to this issue.


On Mon, May 13, 2013 at 10:36 AM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi,

 Shall we grep for this error in the repository/logs folder and see it's
 frequency?

 thanks,
 dimuthu



 On Mon, May 13, 2013 at 10:24 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 I tried this using a RestClient. I could reproduce this by not sending
 the Content-Type header with the request. AFAIT, dropping headers might be
 the reason.


 On Fri, May 10, 2013 at 4:59 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi All,
 I got the same issue when calling ,
 /appmgt/site/blocks/user/login/ajax/login.jag
 action parameter is passed.I checked with a log in the module.

 this is the reason for https://wso2.org/jira/browse/APPFAC-875
 cheers


 On Wed, May 8, 2013 at 1:21 AM, Dilshan Edirisuriya dils...@wso2.comwrote:

 Hi Manjula,

 jagg.post is a wrapper function for jQuery.ajax. There are possible
 ways this could get failed. It seems the data parameter required for jquery
 post is not properly created in this scenario. If so it will go as null and
 will result this kind of error. Possible reproducible scenarios could be
 clicking on the submit button before page loads (dom loads), invalid values
 for dom entries which you are reading etc. Not always true but could
 happen. Try to log all the request parameters which you are passing from UI
 and see whether it is reaching the backend by logging. In this scenario
 other parameters also will be empty.

 Alternatively this could also be because of the dataType. jagg.post
 wrapper does not pass the dataType here so it will be a guess from the
 server side. Try to set the data type explicitly as well.

 Regards,

 Dilshan


 On Tue, May 7, 2013 at 2:42 PM, Manjula Rathnayake 
 manju...@wso2.comwrote:

 Hi Nuwan,

 Please find the corresponding code block in template.jag which do the
 post to above page. Here we are setting the action. Any possible scenario
 that above block get executed without these post parameters?

 function createApplicationSubmit(){
 jagg.post(../blocks/application/add/ajax/add.jag, {
* action:createNewApplication*,

 applicationName:$(#applicationName).attr('value'),

 applicationKey:$(#applicationKey).attr('value'),

 applicationDescription:$(#applicationDescription).attr('value'),

 applicationType:$(#applicationType).attr('value'),

 repositoryType:$(#repositoryType).attr('value'),
 userName:$(#userName).attr('value')
 },
...

 thank you.



 On Tue, May 7, 2013 at 2:22 PM, Nuwan Bandara nu...@wso2.com wrote:

 Am sure during those intermittent cases the action is not sent, this
 is pretty trivial code block, if the item is not in the request then its
 throwing the error.

 Regards,
 /Nuwan



 On Tue, May 7, 2013 at 2:06 PM, Manjula Rathnayake manju...@wso2.com
  wrote:

 Hi Nuwan,

 Please note that this is intermittent. Here the error is action is
 missing in incoming httpRequest. But Why this become intermittent?

  var mod, obj, result,
 action = request.getParameter(action),
 site = require(/site/conf/site.json);

 // line 140
 else {
 throw new Error(No action specified);
 }


 thank you.



 On Tue, May 7, 2013 at 1:58 PM, Nuwan Bandara nu...@wso2.comwrote:

 whats in (/appmgt/site/blocks/application/add/ajax/add.jag#140

 Regards,
 /Nuwan


 On Tue, May 7, 2013 at 1:55 PM, Manjula Rathnayake 
 manju...@wso2.com wrote:

 Hi all,

 Following intermittent error is noticed. Any idea/clue please.

  ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error: No action specified
 (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 {org.jaggeryjs.jaggery.core.manager.WebAppManager}
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.JavaScriptException: Error: No action specified
 (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:446)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:191)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:269)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210

[Dev] [DEV][APPFAC]Reducing Ajax calls and displaying meaningfull error messages when inviting a user to app

2013-05-10 Thread Asanka Dissanayake
Hi All,
Regarding adding a user to application.

According to the present situation there is one method in
ApplicationManagementService.java to do this.

* public boolean addUserToApplication(String applicationId, String
userName, String[] roles)*
This can be used when assigning multiple roles to single user. But when it
comes to assigning multiple users a same set of roles ,it requires many
Ajax calls from the UI side.since it is cozy, we can introduce a method

*public ListNameValuePair** addUserToApplication(String applicationId,
String[] userNames, String[] roles)*
*
*
So the* ListNameValuePair* can contain username as the Name and status of
the operation as the value.
When inviting a user following failure scenarios may take place.

-not in the LDAP
-internal error
So depending on the cause of the error we can get a status code and inform
the user from UI that which users added successfully and which failed. and
also reason can be specified for failure.

If we are going with this,we will have to change
-Applicationmgt
-jaggery
 -module level,UI
-BPEL AddUserToApplication

This is my opinion. need a feedback.

cheers!!!


-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Intermittent issue that appear in all AppFactory setups

2013-05-10 Thread Asanka Dissanayake
.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:722)
 Caused by: org.mozilla.javascript.JavaScriptException: Error: No
 action specified (/appmgt/site/blocks/application/add/ajax/add.jag#140)
 at
 org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0._c1(/appmgt/site/blocks/application/add/ajax/add.jag:140)
 at
 org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.call(/appmgt/site/blocks/application/add/ajax/add.jag)
 at
 org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:57)
 at
 org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0._c0(/appmgt/site/blocks/application/add/ajax/add.jag:9)
 at
 org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.call(/appmgt/site/blocks/application/add/ajax/add.jag)
 at
 org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:401)
 at
 org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3003)
 at
 org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.call(/appmgt/site/blocks/application/add/ajax/add.jag)
 at
 org.jaggeryjs.rhino.appmgt.site.blocks.application.add.ajax.c0.exec(/appmgt/site/blocks/application/add/ajax/add.jag)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:441)
 ... 24 more


 thank you.


 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987




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




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987




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




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987

 ___
 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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Shamika Ariyawansa

2013-05-09 Thread Asanka Dissanayake
congratz shamika !!




On Thu, May 9, 2013 at 11:09 AM, Manjula Rathnayake manju...@wso2.comwrote:

 Congratulations Shamika!


 On Thu, May 9, 2013 at 11:06 AM, Ashansa Perera asha...@wso2.com wrote:

 Congrats Shamika.. !


 On Thu, May 9, 2013 at 10:37 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Hi,
  Its my pleasure to welcome Shamika Ariyawansa as a WSO2 Commiter.
  Shamika has made excellent contributions in the areas of Appfactory and
 Wso2 Store. Notable contributions:
  1. Releasing the first milestone for Wso2 Store.
 2. Implementing the Jaggery feature for 'commenting' stream
 3. Implemented ETA calculation for Appfactory and submitted patches
 towards improving the Appfactory.

 Shamika, welcome aboard and keep up the good work.

 regards

 Ramith Jayasinghe


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




 --
 Thanks  Regards,

 Ashansa Perera
 Software Engineer
 WSO2, Inc

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




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Meeting Notes - AppFactory Integrated Dev Experience

2013-05-09 Thread Asanka Dissanayake
, we only have a set of pre defined app
 types/archetypes.
 We need to have a facility to add new archetypes as application type.
 (like a spring webapp)
 We need to have a run time environment and container to run that new
 app type also

 Correct the archetype from app fac side, because app fac archetype is
 not matching with dev studio archetype

 Dev Studio should not directly talk to Jenkins to get build info. It
 should get info from the REST API that is being called by the appfac Build
 button (so that the DevS can work with Jenkins, Hudson etc)

 Dev Studio should handle only Direct Deployment (deploying in dev env).
 Promoting to other stages will not be handled by DevS.

 Social aspect of the App Fac and DevS should be there. (Not in the
 immediate version). A wall to show notifications in Dev Studio UI and App
 Fac UI should be present. So that when a dev promotes an app to QA, it is
 notified to the relevant parties.

 User should see lifecycle of an app(eg: multiple users are working on
 same project using DevS ,when someone commits, others should see project
 source is updated).

 From DevS, developer should be able to login to App Fac Editor, using
 his App Fac credentials. Then the user should be able to see the apps that
 he is working on. He selects the app version required and it should
 automatically checkout from the source repo and import to the DevS.

 When a developer go to App Fac editor, and start working on a checked
 out app, there should be views that shows the resources available for the
 app. (JDBC URLs, APIs etc)
 Also it should display the Build Status, latest versions (like last 5
 versions of the app if the app has 100s of versions) etc.

 Please add if I have missed anything

 Thanks
 Manisha


 --
 ~Regards
 *Manisha Eleperuma*
 Software Engineer, Solutions TG
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware

 *blog:  http://manisha-eleperuma.blogspot.com/*
 *mobile:  +94 71 8279777*
 *
 *





 --
 ~Regards
 *Manisha Eleperuma*
 Software Engineer, Solutions TG
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware

 *blog:  http://manisha-eleperuma.blogspot.com/*
 *mobile:  +94 71 8279777*
 *
 *




 --
 ~Regards
 *Manisha Eleperuma*
 Software Engineer, Solutions TG
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware

 *blog:  http://manisha-eleperuma.blogspot.com/*
 *mobile:  +94 71 8279777*
 *
 *

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APPFACTORY] Problem with identifying the priority role (Application Owner)

2013-05-07 Thread Asanka Dissanayake
Hi Nirmal,
+1 for the idea. Then no worries about this issue.


On Tue, May 7, 2013 at 12:50 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi Nirmal,

 I understood your point, what you suggest is to document that 'AppOwner'
 is a special case and let the user to change display name of role.
 +1, that is cleaner and not adding more attributes to the configuration.

 Regarding BPEL, we can get configuration values through BPEL custom
 extensions.

 thank you.


 On Tue, May 7, 2013 at 12:43 PM, Nirmal Fernando nir...@wso2.com wrote:

 So as of now, if you change the appOwner, it will break that process.

 As discussed offline, IMO no user would have any interest over changing
 the role name appOwner, but the display name. So I don't think we should
 allow that (i.e. appfactory xml should be validated for a role appOwner,
 for a successful deployment).

 Role name=appOwner
 DisplayNameApplication Owner/DisplayName

 Ideally, content of appfactory xml should be available for the BPEL
 process at run time.

 Just my 2 cents.


 On Tue, May 7, 2013 at 12:16 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi Nirmal,

 This is done through a BPEL process, in that BPEL process 'AppOwner' is
 used.

 thank you.



 On Tue, May 7, 2013 at 11:38 AM, Nirmal Fernando nir...@wso2.comwrote:

 Ok.. that explains. But, I'm confused. How you guys assign this
 appOwner role to the user who creates an app??

 Role name=appOwner
 DisplayNameApplication Owner/DisplayName
 Permission
 /permission/admin/login,
 /permission/admin/appfactory/develop,
 /permission/admin/appfactory/repository/readwrite,
 /permission/admin/appfactory/build,
 /permission/admin/appfactory/repository/branch,
 /permission/admin/appfactory/deployTo/Development,
 /permission/admin/appfactory/deployTo/Testing,
 /permission/admin/appfactory/deployTo/Staging,
 /permission/admin/appfactory/configure/db/Development,
 /permission/admin/appfactory/configure/db/Testing,
 /permission/admin/appfactory/configure/db/Staging,
 /permission/admin/appfactory/configure/api/subscribe,

 /permission/admin/appfactory/configure/resources/Development,

 /permission/admin/appfactory/configure/resources/Testing,

 /permission/admin/appfactory/configure/resources/Staging,
 /permission/admin/appfactory/datasource/create,

 /permission/admin/appfactory/datasource/update/Development,
 /permission/admin/appfactory/datasource/update/Testing,
 /permission/admin/appfactory/datasource/update/Staging,
 /permission/admin/appfactory/resource/create,

 /permission/admin/appfactory/resource/update/Development,
 /permission/admin/appfactory/resource/update/Testing,
 /permission/admin/appfactory/resource/update/Staging,
 /permission/admin/appfactory/promoteTo/Testing,
 /permission/admin/appfactory/promoteTo/Staging,
 /permission/admin/appfactory/demoteTo/Development,
 /permission/admin/appfactory/demoteTo/Testing,
 /permission/admin/appfactory/visibility/Development,
 /permission/admin/appfactory/visibility/Testing,
 /permission/admin/appfactory/visibility/Staging,
 /permission/admin/appfactory/usermgt/invite,
 /permission/admin/appfactory/configuration/apimanager
 /Permission
 /Role


 On Tue, May 7, 2013 at 11:28 AM, Asanka Dissanayake 
 asan...@wso2.comwrote:

 Hi Nirmal,
  appfactory.xml is attached.


 On Tue, May 7, 2013 at 11:08 AM, Nirmal Fernando nir...@wso2.comwrote:




 On Tue, May 7, 2013 at 11:05 AM, Asanka Dissanayake asan...@wso2.com
  wrote:

 Hi All,

 @ Manjula,
 Ya, It MUST be implemented at the back end too.But before that we
 should figure out how to identify undeletable roles.


 @Niraml,
 appfactory.xml is editable, so if user wish to use a different name
 for appOwner how can we compare it. So property DELETABLE will do the
 trick, this property is applicable to any role that user think should 
 not
 be deleted.


 You mind sending over a sample appfactory.xml ?



 We should finalize this soon.
 cheers!


 On Tue, May 7, 2013 at 10:34 AM, Nirmal Fernando nir...@wso2.comwrote:




 On Tue, May 7, 2013 at 10:16 AM, Manjula Rathnayake 
 manju...@wso2.com wrote:

 Hi all,

 We can not check 'AppOwner' role at the front end only, what if we
 do a REST call and invoke delete?

 @Nirmal,
 All roles are read from appfactory.xml, however AppOwner is the
 set of users who create applications, invite other users into 
 different
 roles such as Developer, DevOps etc. When AppOwner invite another 
 user, he
 can modify existing roles assigned to users, for example, AppOwner can
 remove QA role

[Dev] [DEV][APPFACTORY] Problem with identifying the priority role (Application Owner)

2013-05-06 Thread Asanka Dissanayake
Hi All,

In App Factory application roles are defined in the appfactory.xml.
According to the present situation there are following roles defined.
-Application Owner
-Developer
-QA
-DevOps

Each role has different permissions. From these roles Application Owner is
very important.
Application owner *MUST* not be able to delete. (ATM if the application
owner is deleted then the application becomes inaccessible ).

To avoid deleting the appowner ,now delete button is hidden in the UI. to
accomplish this task appOwner is hard coded and compared.  If user changed
the role name of the app owner in the appfactory.xml, this does not work.

to avoid this there may be following options.

-declare a property called DELETABLE
-or else we can give a UI to edit the content of the appfactory.xml and
hide certain things we want such as app owner etc.. (If we provide this we
should not allow user to open appfactory.xml directly)





-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][APPFACTORY] Problem with identifying the priority role (Application Owner)

2013-05-06 Thread Asanka Dissanayake
Hi All,

@ Manjula,
Ya, It MUST be implemented at the back end too.But before that we should
figure out how to identify undeletable roles.


@Niraml,
appfactory.xml is editable, so if user wish to use a different name for
appOwner how can we compare it. So property DELETABLE will do the trick,
this property is applicable to any role that user think should not be
deleted.


We should finalize this soon.
cheers!


On Tue, May 7, 2013 at 10:34 AM, Nirmal Fernando nir...@wso2.com wrote:




 On Tue, May 7, 2013 at 10:16 AM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi all,

 We can not check 'AppOwner' role at the front end only, what if we do a
 REST call and invoke delete?

 @Nirmal,
 All roles are read from appfactory.xml, however AppOwner is the set of
 users who create applications, invite other users into different roles such
 as Developer, DevOps etc. When AppOwner invite another user, he can modify
 existing roles assigned to users, for example, AppOwner can remove QA role
 and add DevOp role for a DevOps user.
 The issue here is that, AppOwner should not be able to reomve himself
 from AppOwner role. That is why, the suggestion to add DELETABLE property
 to each role.


 Yes, so why we need a new property (if this is valid only for AppOwner)?
 Why can't you do the same check without hard coding the AppOwner role
 (read the role from appfactory.xml and validate whether the user is the
 AppOwner)?


 thank you.



 On Mon, May 6, 2013 at 10:21 PM, Nirmal Fernando nir...@wso2.com wrote:

 Asanka,

 Sent via my mobile
 -- Nirmal --

 On May 6, 2013 8:21 PM, Asanka Dissanayake asan...@wso2.com wrote:
 
  Hi All,
 
  In App Factory application roles are defined in the appfactory.xml.
 According to the present situation there are following roles defined.
  -Application Owner
  -Developer
  -QA
  -DevOps
 
  Each role has different permissions. From these roles Application
 Owner is very important.
  Application owner MUST not be able to delete. (ATM if the application
 owner is deleted then the application becomes inaccessible ).
 
  To avoid deleting the appowner ,now delete button is hidden in the UI.
 to accomplish this task appOwner is hard coded and compared.  If user
 changed the role name of the app owner in the appfactory.xml, this does not
 work.
 
  to avoid this there may be following options.
 
  -declare a property called DELETABLE
  -or else we can give a UI to edit the content of the appfactory.xml
 and hide certain things we want such as app owner etc.. (If we provide this
 we should not allow user to open appfactory.xml directly)
 

 Isn't it better to read the app owner role from appfactory.xml always ?

 I don't understand why you need any additional properties.
 
 
 
 
  --
 
  Asanka Dissanayake
  Software Engineer
  WSO2 Inc. - lean . enterprise . middleware |  wso2.com
 
  email: asan...@wso2.com,   blog: cyberwaadiya.blogspot.com,
 asankastechtalks.wordpress.com  mobile: +94 71 8373821
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987




 --

 Thanks  regards,
 Nirmal

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




-- 

*Asanka Dissanayake
Software Engineer*
*WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
*
email: asan...@wso2.com ruch...@wso2.com,   blog:
cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
8373821*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev