Re: [Dev] Please merge carbon-commons #2 pull request.

2014-04-21 Thread Thilini Ishaka
Ping on this. Please merge this fix.

Thanks
Thilini


On Wed, Apr 2, 2014 at 6:47 PM, Thilini Ishaka thil...@wso2.com wrote:

 Hi KasunG,

 I need to add fix for [1] to 4.3.0 but the carbon-commons Dev repo is not
 available at the moment. Will you be able to create the the dev repo (or do
 I have permissions to do that?) so that I can do the pull request for that.

 Currently it [2] has been done for the master since the dev repo is not
 available.

 [1] https://wso2.org/jira/browse/CARBON-14505
 [2] https://github.com/wso2/carbon-commons/pull/2

 Thanks
 Thilini

 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh




-- 
Thilini Ishaka
Senior Software Engineer
Phone: +94 11 214 5345
WSO2 Inc. http://wso2.com

blog: thiliniishaka.blogspot.com
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-21 Thread Rajith Vitharana
Congrats Waruna :)


On Mon, Apr 21, 2014 at 11:26 AM, Isuruwan Herath isuru...@wso2.com wrote:

 Congrats Waruna...!!!


 On Mon, Apr 21, 2014 at 10:57 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Congratulations Waruna...!!


 On 21 April 2014 10:29, Chathurika Mahaarachchi chathur...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Mon, Apr 21, 2014 at 10:27 AM, Aruna Karunarathna ar...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Sat, Apr 19, 2014 at 8:23 AM, Nandika Jayawardana 
 nand...@wso2.comwrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2 Committer.
 Waruna has  been a valuable contributor for WSO2 BPS / BRS products and in
 recognition of his contributions to WSO2, he has been voted as a WSO2
 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Amal Gunatilake

2014-04-21 Thread Rajith Vitharana
Congrats Amal. :)


On Mon, Apr 21, 2014 at 11:27 AM, Isuruwan Herath isuru...@wso2.com wrote:

 Congrats Amal...!!!


 On Mon, Apr 21, 2014 at 10:59 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Congratulations Amal...!!!


 On 21 April 2014 10:46, Ruwan Yatawara ruw...@wso2.com wrote:

 Congrats Amal!

 Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
  lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com



 On Mon, Apr 21, 2014 at 10:31 AM, Chathurika Mahaarachchi 
 chathur...@wso2.com wrote:

 Congratulations Amal !


 On Mon, Apr 21, 2014 at 10:26 AM, Aruna Karunarathna ar...@wso2.comwrote:

 Congratulations Amal...!!!


 On Mon, Apr 21, 2014 at 10:20 AM, Pamod Sylvester pa...@wso2.comwrote:

 Congratulations Amal !!


 On Mon, Apr 21, 2014 at 10:00 AM, Harshan Liyanage 
 hars...@wso2.comwrote:

 Congradz Amal!

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.


 On Sat, Apr 19, 2014 at 10:43 PM, Gayan Yalpathwala gay...@wso2.com
  wrote:

 Congratulations on your achievement Amal !!


 On Sat, Apr 19, 2014 at 10:08 PM, Manoj Kumara ma...@wso2.comwrote:

 Congratulation Amal !!!


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Sat, Apr 19, 2014 at 8:27 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my  pleasure to announce Amal Gunatilake as a WSO2
 Committer. Amal has  been a valuable contributor for WSO2 BPS 
 product and
 in recognition of his contributions to WSO2, he has been voted as a 
 WSO2
 Committer.

 Amal, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer

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

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.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




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




 --

 * 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Loadbalancer configuration for API Manager

2014-04-21 Thread Chathura Dilan
Hi Sanjeewa,

Thank you


On Mon, Apr 21, 2014 at 11:14 AM, Sanjeewa Malalgoda sanje...@wso2.comwrote:

 Normally we used term *apim* for API Manager. So hope you can use same
 here as well. But if its distributed deployment cluster names should
 contain gateway, store, publisher and keymanager in addition to apim.

 Thanks,
 sanjeewa.


 On Mon, Apr 21, 2014 at 11:02 AM, Chathura Dilan chathu...@wso2.comwrote:

 Hi All,

 When configuring the loadbalancer to cluster API Manager according to
 [1], is there any specific configuration to use in the loadbalancer.conf
 for API Manager like appserver for application server and esb for ESB. It
 is not mentioned in the docs.

 [1].  https://docs.wso2.org/display/CLUSTER420/Clustering+API+Manager
 --
 Regards,

 Chatura Dilan Perera
 *(Senior Software Engineer - WSO2 Inc.)*
 www.dilan.me

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




 --

 *Sanjeewa Malalgoda*
 WSO2 Inc.
 Mobile : +94713068779

  http://sanjeewamalalgoda.blogspot.com/blog
 :http://sanjeewamalalgoda.blogspot.com/http://sanjeewamalalgoda.blogspot.com/





-- 
Regards,

Chatura Dilan Perera
*(Senior Software Engineer - WSO2 Inc.)*
www.dilan.me
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to access a HTML element using Jaggery?

2014-04-21 Thread Madhuka Udantha
Hi, Dumidu

Jaggery is basically, server-side Javascript scripting engine.[1].
So you can used jquery in your app regard HTML element operations.
Here is sample jaggery app[2], where you can find sample codes and how it
have handle.
BTW you can try caramel as well[3].

[1] http://jaggeryjs.org/
[2] https://github.com/wso2/jaggery/tree/master/apps
[3] https://github.com/wso2/caramel


On Mon, Apr 21, 2014 at 11:15 AM, Dumidu Handakumbura dum...@wso2.comwrote:

 Hi Devs,

 How can I access a HTML element using Jaggery? Similar to
 document.getElementById() in JS? Also is there a way to access a variable
 inside a JS script block from a Jaggery script block in the same document.


 Thanks and Regards,

 Dumidu


 --
 *Dumidu Handakumbura*
 Software Engineer - QA
 WSO2 Inc; http://www.wso2.com/.
 Mobile;
 *+9406740 %2B9406740 *

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




-- 
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com

*Mobile*: +94774066336
*Blog*: http://madhukaudantha.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.8.1 - Sample 153

2014-04-21 Thread Dilini Muthumala
Hi all,
Find the related Jira at [1].

Thanks, Nisrin for updating the doc.

Regards,
Dilini

[1] https://wso2.org/jira/browse/DOCUMENTATION-663


On Thu, Apr 17, 2014 at 11:32 AM, Nisrin Sheriff nis...@wso2.com wrote:

 Thank you for pointing this out.

 Will update the relevant samples with this information.


 Best Regards,
 Nisrin

 Nisrin Sheriff
 Senior Technical Writer

 *WSO2, Inc.*lean.enterprise.middleware.
 mobile: +94 776 24 84 56
 http://wso2.com


 On Thu, Apr 17, 2014 at 11:27 AM, Lali Devamanthri l...@wso2.com wrote:

 Adding documentation@.
 Needs to mention requirement of bouncycastle jar for ESB samples 153,
 200.



 On Thu, Apr 17, 2014 at 11:16 AM, Buddhima Wijeweera 
 buddh...@wso2.comwrote:

 Also needed for sample 200 too. Thanks!


 On Tue, Apr 8, 2014 at 4:22 PM, Isuru Ranawaka isu...@wso2.com wrote:

 Thanks for your quick reply.Now it is working.


 On Tue, Apr 8, 2014 at 3:49 PM, Harsha Kumara hars...@wso2.com wrote:

 Hi Isuru,

 You have to put the BouncyCastle (
 http://www.bouncycastle.org/latest_releases.html) jars to 
 ESB_HOME/repository/components/plugins
 and ESB_HOME/repository/axis2/client/lib directories. Please refer
 [1] and [2].

 I think this needs to be specify in the documentation of the sample.

 [1]-
 http://evanthika.blogspot.com/2014/02/solving-orgapachewssecuritywssecurityex.html
 [2]-http://mail.wso2.org/mailarchive/dev/2014-February/027877.html

  Thanks,
 Harsha


 On Tue, Apr 8, 2014 at 3:36 PM, Isuru Ranawaka isu...@wso2.comwrote:

 Hi all,
 I had and exception when running ESB 4.8.1 sample 153 in the
 axis2Client side.  This is worked in ESB 4.7
 Is it error in  the shipped axis2Client?


 14/04/08 15:22:00 ERROR sandesha2.SandeshaModule: Could not load
 module policies. Using default values.
 Using WS-Security
 14/04/08 15:22:00 INFO mail.MailTransportSender: MAILTO Sender started
 14/04/08 15:22:00 INFO jms.JMSSender: JMS Sender started
 14/04/08 15:22:00 INFO jms.JMSSender: JMS Transport Sender
 initialized...
 org.apache.axis2.AxisFault: Error in encryption
 at
 org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:76)
 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.send(AxisEngine.java:426)
 at
 org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:430)
 at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
 at
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
 at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:554)
 at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:530)
 at samples.userguide.StockQuoteClient.executeClient(Unknown
 Source)
 at samples.userguide.StockQuoteClient.main(Unknown Source)
 Caused by: org.apache.rampart.RampartException: Error in encryption
 at
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:612)
 at
 org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:97)
 at
 org.apache.rampart.MessageBuilder.build(MessageBuilder.java:147)
 at
 org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
 ... 11 more
 Caused by: org.apache.ws.security.WSSecurityException: An unsupported
 signature or encryption algorithm was used (unsupported key transport
 encryption algorithm: No such algorithm:
 http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p); nested exception
 is:
 java.security.NoSuchAlgorithmException: Cannot find any provider
 supporting RSA/ECB/OAEPPadding
 at
 org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:785)
 at
 org.apache.ws.security.message.WSSecEncryptedKey.prepareInternal(WSSecEncryptedKey.java:205)
 at
 org.apache.ws.security.message.WSSecEncrypt.prepare(WSSecEncrypt.java:259)
 at
 org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:578)
 ... 14 more
 Caused by: java.security.NoSuchAlgorithmException: Cannot find any
 provider supporting RSA/ECB/OAEPPadding
 at javax.crypto.Cipher.getInstance(DashoA13*..)
 at
 org.apache.ws.security.util.WSSecurityUtil.getCipherInstance(WSSecurityUtil.java:777)
 ... 17 more










 --
 Regards
 Isuru Ranawaka
 phone :- +94714629880

 ___
 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




 --
 Regards
 Isuru Ranawaka
 phone :- +94714629880

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



 

Re: [Dev] BRS testing

2014-04-21 Thread Shavantha Weerasinghe
Hi Thilini

When attempting to build the [1] from top level, I face the below error.
The full error log is attached
[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/brs/2.1.0/modules/integration/


[INFO] Scanning for projects...
[ERROR] The build could not read 1 project - [Help 1]
[ERROR]
[ERROR]   The project org.wso2.brs:integration:2.1.0
(/home/shavantha/projects/brs/platform/integration/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find
org.wso2.brs:brs-parent:pom:2.1.0 in
http://repo.maven.apache.org/maven2was cached in the local repository,
resolution will not be reattempted
until the update interval of central has elapsed or updates are forced and
'parent.relativePath' points at wrong local POM @ line 5, column 13 -
[Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
shavantha@shavantha-ThinkPad-T530:~/projects/brs/platform/integration$ vi
pom.xml

Regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300



On Fri, Apr 18, 2014 at 11:04 AM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Shavantha,

 Need to revisit the contents of the article. For the time being you can
 deploy a rule service on BRS and invoke that via a bpel process and test
 the integration scenario.

 Thanks
 Thilini


 On Fri, Apr 18, 2014 at 10:57 AM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi Thilini

 The setup as per
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/was 
 done, but the READ-ME talks about 2 clients on BRS and BPS sides which
 I am not sure how to initiate

 regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Fri, Apr 18, 2014 at 10:54 AM, Thilini Ishaka thil...@wso2.comwrote:

 Hi Shavantha,

 On Fri, Apr 18, 2014 at 10:47 AM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi All

 I have started with test case and also reported some jira for the
 current pack given available within search criteria [1]. Currently am
 trying to figure out how to integrate BPS and BRS. Pending is the
 integration platform setup.

 Try out a scenario similar to
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/

 Thanks
 Thilini


 By the way do we already have a mail thread for BRS210 ?




 [1]project = BRS AND reporter =shavan...@wso2.com AND
 affectedVersion=2.1.0

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Wed, Apr 16, 2014 at 3:20 PM, Thilini Ishaka thil...@wso2.comwrote:

 Sure, hopefully tomorrow morning we can give a pack.

 Thanks
 Thilini


 On Wed, Apr 16, 2014 at 3:05 PM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi Thilini,

 Can we get a new pack with all the Kernal patches?

 ​- ​
 Evanthika


 On Wed, Apr 16, 2014 at 10:15 AM, Thilini Ishaka thil...@wso2.comwrote:

 Note this was done in a month back. Will provide a proper pack early
 next week :)


 https://svn.wso2.org/repos/wso2/people/thilini/releases/Business-Rules-Server-2.1.0/2014-03-11/wso2brs-2.1.0.zip

 This is a good article on writing a BRS sample
 http://wso2.com/library/articles/2013/05/eclipse-plugin-wso2-business-rules-server/

 Test migration is completed https://redmine.wso2.com/issues/2445

 Thanks
 Thilini


 --
  Thilini Ishaka
 Senior Software Engineer
  Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh



Full
Description: Binary data
___
Dev mailing list
Dev@wso2.org

Re: [Dev] BRS testing

2014-04-21 Thread Thilini Ishaka
Hi Shavantha,

Please checkout from BRS product root level [1] and do the build, It'll
resolve the issue.

[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/brs/2.1.0/

Thanks
Thilini


On Mon, Apr 21, 2014 at 12:04 PM, Shavantha Weerasinghe
shavan...@wso2.comwrote:

 Hi Thilini

 When attempting to build the [1] from top level, I face the below error.
 The full error log is attached
 [1]
 https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/brs/2.1.0/modules/integration/


 [INFO] Scanning for projects...
 [ERROR] The build could not read 1 project - [Help 1]
 [ERROR]
 [ERROR]   The project org.wso2.brs:integration:2.1.0
 (/home/shavantha/projects/brs/platform/integration/pom.xml) has 1 error
 [ERROR] Non-resolvable parent POM: Failure to find
 org.wso2.brs:brs-parent:pom:2.1.0 in http://repo.maven.apache.org/maven2was 
 cached in the local repository, resolution will not be reattempted
 until the update interval of central has elapsed or updates are forced and
 'parent.relativePath' points at wrong local POM @ line 5, column 13 -
 [Help 2]
 [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/ProjectBuildingException
 [ERROR] [Help 2]
 http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
 shavantha@shavantha-ThinkPad-T530:~/projects/brs/platform/integration$ vi
 pom.xml

 Regards,
 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Fri, Apr 18, 2014 at 11:04 AM, Thilini Ishaka thil...@wso2.com wrote:

 Hi Shavantha,

 Need to revisit the contents of the article. For the time being you can
 deploy a rule service on BRS and invoke that via a bpel process and test
 the integration scenario.

 Thanks
 Thilini


 On Fri, Apr 18, 2014 at 10:57 AM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi Thilini

 The setup as per
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/was 
 done, but the READ-ME talks about 2 clients on BRS and BPS sides which
 I am not sure how to initiate

 regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Fri, Apr 18, 2014 at 10:54 AM, Thilini Ishaka thil...@wso2.comwrote:

 Hi Shavantha,

 On Fri, Apr 18, 2014 at 10:47 AM, Shavantha Weerasinghe 
 shavan...@wso2.com wrote:

 Hi All

 I have started with test case and also reported some jira for the
 current pack given available within search criteria [1]. Currently am
 trying to figure out how to integrate BPS and BRS. Pending is the
 integration platform setup.

 Try out a scenario similar to
 http://wso2.com/library/articles/2011/05/integrate-business-rules-bpel/

 Thanks
 Thilini


 By the way do we already have a mail thread for BRS210 ?




 [1]project = BRS AND reporter =shavan...@wso2.com AND
 affectedVersion=2.1.0

 Regards,

 Shavantha Weerasinghe
 Senior Software Engineer QA
 WSO2, Inc.
 lean.enterprise.middleware.
 http://wso2.com
 http://wso2.org
 Tel : 94 11 214 5345
 Fax :94 11 2145300



 On Wed, Apr 16, 2014 at 3:20 PM, Thilini Ishaka thil...@wso2.comwrote:

 Sure, hopefully tomorrow morning we can give a pack.

 Thanks
 Thilini


 On Wed, Apr 16, 2014 at 3:05 PM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi Thilini,

 Can we get a new pack with all the Kernal patches?

 ​- ​
 Evanthika


 On Wed, Apr 16, 2014 at 10:15 AM, Thilini Ishaka 
 thil...@wso2.comwrote:

 Note this was done in a month back. Will provide a proper pack
 early next week :)


 https://svn.wso2.org/repos/wso2/people/thilini/releases/Business-Rules-Server-2.1.0/2014-03-11/wso2brs-2.1.0.zip

 This is a good article on writing a BRS sample
 http://wso2.com/library/articles/2013/05/eclipse-plugin-wso2-business-rules-server/

 Test migration is completed https://redmine.wso2.com/issues/2445

 Thanks
 Thilini


 --
  Thilini Ishaka
 Senior Software Engineer
  Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 Thilini Ishaka
 Senior Software Engineer
 Phone: +94 11 214 5345
 WSO2 Inc. http://wso2.com

 blog: thiliniishaka.blogspot.com
 linkedin: http://lk.linkedin.com/in/thiliniishaka
 twitter: https://twitter.com/#!/ThiliniIsh





 --
 

[Dev] Please merge DSS integration test commit#2 pull request

2014-04-21 Thread Nuwan Wimalasekara
Hi DSS team,
Please apply the pull request - https://github.com/wso2/product-dss/pull/2

Thanks,
Nuwanw

-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Please merge DSS integration test commit#2 pull request

2014-04-21 Thread Chanika Geeganage
Hi Nuwan,

I merged this commit

Thanks


On Mon, Apr 21, 2014 at 12:13 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi DSS team,
 Please apply the pull request - https://github.com/wso2/product-dss/pull/2

 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620






-- 
Best Regards..

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


Re: [Dev] BRS testing

2014-04-21 Thread Shavantha Weerasinghe
Hi Thilini

When building from top level the below issue occurs. I have taken an svn up
prior to building from the root level.

[INFO] --- maven-dependency-plugin:2.8:unpack (unpack-equinox-executable) @
wso2brs-p2-profile ---
[INFO] Configured Artifact:
org.eclipse.equinox:org.eclipse.equinox.executable:3.5.0.v20110530-7P7NFUFFLWUl76mart:zip
[INFO] Unpacking
/home/shavantha/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.executable/3.5.0.v20110530-7P7NFUFFLWUl76mart/org.eclipse.equinox.executable-3.5.0.v20110530-7P7NFUFFLWUl76mart.zip
to
/home/shavantha/projects/brs/platform/2.1.0/modules/p2-profile-gen/target
with includes  and excludes 
[INFO]
[INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (3-p2-repo-generation) @
wso2brs-p2-profile ---
[ERROR] Error occured when processing the Feature Artifact:
org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
org.apache.maven.plugin.MojoExecutionException: Error occured when
processing the Feature Artifact:
org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
at
org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
at
org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
at
org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
at
org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43)
at
org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
... 23 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Failure to find
org.wso2.carbon:org.wso2.carbon.rule.service.feature:zip:4.2.1 in
http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
local repository, resolution will not be reattempted until the update
interval of wso2-nexus has elapsed or updates are forced

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
-Dpackaging=zip -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file
there:
mvn deploy:deploy-file -DgroupId=org.wso2.carbon
-DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
-Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


  org.wso2.carbon:org.wso2.carbon.rule.service.feature:zip:4.2.1

from the specified remote repositories:
  wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
releases=true, snapshots=true),
  central (http://repo.maven.apache.org/maven2, releases=true,
snapshots=false)

at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525)
at
org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
... 24 more
Caused by: 

Re: [Dev] BRS testing

2014-04-21 Thread Thilini Ishaka
Hi Shavantha,

Please take a full checkout of BRS components and features and build from
the product-releases/chunk-09 dir. That'll resolve your issue.

Thanks
Thilini


On Mon, Apr 21, 2014 at 12:52 PM, Shavantha Weerasinghe
shavan...@wso2.comwrote:

 Hi Thilini

 When building from top level the below issue occurs. I have taken an svn
 up prior to building from the root level.

 [INFO] --- maven-dependency-plugin:2.8:unpack (unpack-equinox-executable)
 @ wso2brs-p2-profile ---
 [INFO] Configured Artifact:
 org.eclipse.equinox:org.eclipse.equinox.executable:3.5.0.v20110530-7P7NFUFFLWUl76mart:zip
 [INFO] Unpacking
 /home/shavantha/.m2/repository/org/eclipse/equinox/org.eclipse.equinox.executable/3.5.0.v20110530-7P7NFUFFLWUl76mart/org.eclipse.equinox.executable-3.5.0.v20110530-7P7NFUFFLWUl76mart.zip
 to
 /home/shavantha/projects/brs/platform/2.1.0/modules/p2-profile-gen/target
 with includes  and excludes 
 [INFO]
 [INFO] --- carbon-p2-plugin:1.5.3:p2-repo-gen (3-p2-repo-generation) @
 wso2brs-p2-profile ---
 [ERROR] Error occured when processing the Feature Artifact:
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
 org.apache.maven.plugin.MojoExecutionException: Error occured when
 processing the Feature Artifact:
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:4.2.1
 at
 org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322)
 at
 org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197)
 at
 org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191)
 at
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 at
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
 at
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
 at
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
 at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR
 at
 org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:43)
 at
 org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319)
 ... 23 more
 Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
 Failure to find
 org.wso2.carbon:org.wso2.carbon.rule.service.feature:zip:4.2.1 in
 http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached in the
 local repository, resolution will not be reattempted until the update
 interval of wso2-nexus has elapsed or updates are forced

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
 -Dpackaging=zip -Dfile=/path/to/file

 Alternatively, if you host your own repository you can deploy the file
 there:
 mvn deploy:deploy-file -DgroupId=org.wso2.carbon
 -DartifactId=org.wso2.carbon.rule.service.feature -Dversion=4.2.1
 -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]


   org.wso2.carbon:org.wso2.carbon.rule.service.feature:zip:4.2.1

 from the specified remote repositories:
   wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
 releases=true, snapshots=true),
   central (http://repo.maven.apache.org/maven2, releases=true,
 snapshots=false)

 at
 org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219)
 at
 

[Dev] Setting up mysql database for ESB sample 364

2014-04-21 Thread Anuruddha Premalal
Hi,

Instructions for setting up mysql database for sample
364https://docs.wso2.org/display/ESB481/Sample+364%3A+Executing+Database+Stored+Proceduresis
missing from the ESB documentation.

Herewith I've attached a sql file which can be used to set up the db.

Regrads,
--
Anuruddha Premalal
Software Engineer, WSO2 Inc.
Mob : +94 710461070


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


Re: [Dev] [BPS]How can I know the grogress of the process for BPS?

2014-04-21 Thread stevegyc
Hi Nandika,

Do you know how to query the data of the step events in the database for 
business process or are there APIs for it? 
For I want to show the progress of the process for my own UI.




stevegyc

From: stevegyc
Date: 2014-03-27 16:55
To: Nandika Jayawardana
CC: dev
Subject: Re: Re: [Dev] [BPS]How can I know the grogress of the process for BPS?
Hi Nandika,

Thank you for your quick reply.

Now I can view the progress of the business process in the instance view.
But do you know how to query the data of the step events in the database or 
are there APIs for it? 
For I want to show the progress of the process for my own UI.




stevegyc

From: Nandika Jayawardana
Date: 2014-03-27 16:20
To: stevegyc
CC: dev
Subject: Re: [Dev] [BPS]How can I know the grogress of the process for BPS?
Hi Stevegyc,  


You can view the progress of the business process by looking at the instance 
view of the process. Basically, when you execute a bpel process, its execution 
paths will execute until the execution path meets a blocking activity or till 
the end. ODE generates events for each of the steps in the bpel process and 
these are saved to the database. 
Process instance view quaries this data and shows on the ui.


Regards
Nandika



On Thu, Mar 27, 2014 at 1:13 PM, stevegyc steve...@163.com wrote:

Hi:

I want to use BPS the execute many steps of operation, the process will 
execute for a period of time.
During the time, I want to know what step of operation  the process is 
executing or I want to know the detailed progress of the process.
Does BPS has provided API or other methods to achieve this?




stevegyc

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







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


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-21 Thread Amal Gunatilake
Congratz Waruna !!

Thank you   Best regards,

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


On Mon, Apr 21, 2014 at 11:40 AM, Rajith Vitharana raji...@wso2.com wrote:

 Congrats Waruna :)


 On Mon, Apr 21, 2014 at 11:26 AM, Isuruwan Herath isuru...@wso2.comwrote:

 Congrats Waruna...!!!


 On Mon, Apr 21, 2014 at 10:57 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Congratulations Waruna...!!


 On 21 April 2014 10:29, Chathurika Mahaarachchi chathur...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Mon, Apr 21, 2014 at 10:27 AM, Aruna Karunarathna ar...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Sat, Apr 19, 2014 at 8:23 AM, Nandika Jayawardana nand...@wso2.com
  wrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2 Committer.
 Waruna has  been a valuable contributor for WSO2 BPS / BRS products and 
 in
 recognition of his contributions to WSO2, he has been voted as a WSO2
 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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


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


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-21 Thread Dilini Muthumala
Congrats, Waruna!


On Mon, Apr 21, 2014 at 2:05 PM, Amal Gunatilake am...@wso2.com wrote:

 Congratz Waruna !!

 Thank you   Best regards,

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


 On Mon, Apr 21, 2014 at 11:40 AM, Rajith Vitharana raji...@wso2.comwrote:

 Congrats Waruna :)


 On Mon, Apr 21, 2014 at 11:26 AM, Isuruwan Herath isuru...@wso2.comwrote:

 Congrats Waruna...!!!


 On Mon, Apr 21, 2014 at 10:57 AM, Lasantha Fernando 
 lasan...@wso2.comwrote:

 Congratulations Waruna...!!


 On 21 April 2014 10:29, Chathurika Mahaarachchi chathur...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Mon, Apr 21, 2014 at 10:27 AM, Aruna Karunarathna 
 ar...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Sat, Apr 19, 2014 at 8:23 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2 Committer.
 Waruna has  been a valuable contributor for WSO2 BPS / BRS products and 
 in
 recognition of his contributions to WSO2, he has been voted as a WSO2
 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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



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




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


[Dev] Error when starting BRS with db2 datasource

2014-04-21 Thread Chathurika De Silva
Following errors occurred when starting the BRS  2.0.0 with the below db2
configuration

datasource
nameWSO2_CARBON_DB/name
descriptionThe datasource used for registry and user
manager/description
jndiConfig
namejdbc/WSO2CarbonDB/name
/jndiConfig
definition type=RDBMS
configuration
urljdbc:db2://192.168.18.13:5/CEP/url
usernamedb2admin/username
passwordpass#word2/password

driverClassNamecom.ibm.db2.jcc.DB2Driver/driverClassName
maxActive80/maxActive
maxWait36/maxWait
minIdle5/minIdle
testOnBorrowtrue/testOnBorrow
validationQueryselect 1 from
sysibm.sysdummy1/validationQuery
validationInterval3/validationInterval
/configuration
/definition
/datasource

*Errors *

[2014-04-21 14:06:19,369] ERROR - DatabaseUtil Error! DB2 SQL Error:
SQLCODE=-407, SQLSTATE=23502, SQLERRMC=TBSPACEID=2, TABLEID=264, COLNO=5,
DRIVER=3.50.152
com.ibm.db2.jcc.b.lm: DB2 SQL Error: SQLCODE=-407, SQLSTATE=23502,
SQLERRMC=TBSPACEID=2, TABLEID=264, COLNO=5, DRIVER=3.50.152
at com.ibm.db2.jcc.b.wc.a(wc.java:575)
at com.ibm.db2.jcc.b.wc.a(wc.java:57)
at com.ibm.db2.jcc.b.wc.a(wc.java:126)
at com.ibm.db2.jcc.b.tk.b(tk.java:1593)
at com.ibm.db2.jcc.b.tk.c(tk.java:1576)
at com.ibm.db2.jcc.t4.db.k(db.java:353)
at com.ibm.db2.jcc.t4.db.a(db.java:59)
at com.ibm.db2.jcc.t4.t.a(t.java:50)
at com.ibm.db2.jcc.t4.tb.b(tb.java:200)
at com.ibm.db2.jcc.b.uk.Gb(uk.java:2355)
at com.ibm.db2.jcc.b.uk.e(uk.java:3129)
at com.ibm.db2.jcc.b.uk.zb(uk.java:568)
at com.ibm.db2.jcc.b.uk.executeUpdate(uk.java:551)
at
org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:396)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:540)
at
org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:258)
at
org.wso2.carbon.registry.core.jdbc.realm.RegistryAuthorizationManager.authorizeRole(RegistryAuthorizationManager.java:155)
at
org.wso2.carbon.captcha.mgt.util.CaptchaUtil.setAnonAuthorization(CaptchaUtil.java:281)
at
org.wso2.carbon.captcha.mgt.util.CaptchaUtil.setAnonAccessToCaptchaImages(CaptchaUtil.java:265)
at
org.wso2.carbon.captcha.mgt.internal.CaptchaMgtServiceComponent.activate(CaptchaMgtServiceComponent.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at
org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
at
org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
at
org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at
org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
at
org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:513)
at
org.wso2.carbon.core.init.CarbonServerManager.removePendingItem(CarbonServerManager.java:290)
at

Re: [Dev] WSO2 Committers += Amal Gunatilake

2014-04-21 Thread Dilini Muthumala
Congrats, Amal..!!


On Mon, Apr 21, 2014 at 11:40 AM, Rajith Vitharana raji...@wso2.com wrote:

 Congrats Amal. :)


 On Mon, Apr 21, 2014 at 11:27 AM, Isuruwan Herath isuru...@wso2.comwrote:

 Congrats Amal...!!!


 On Mon, Apr 21, 2014 at 10:59 AM, Lasantha Fernando lasan...@wso2.comwrote:

 Congratulations Amal...!!!


 On 21 April 2014 10:46, Ruwan Yatawara ruw...@wso2.com wrote:

 Congrats Amal!

 Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
  lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com



 On Mon, Apr 21, 2014 at 10:31 AM, Chathurika Mahaarachchi 
 chathur...@wso2.com wrote:

 Congratulations Amal !


 On Mon, Apr 21, 2014 at 10:26 AM, Aruna Karunarathna 
 ar...@wso2.comwrote:

 Congratulations Amal...!!!


 On Mon, Apr 21, 2014 at 10:20 AM, Pamod Sylvester pa...@wso2.comwrote:

 Congratulations Amal !!


 On Mon, Apr 21, 2014 at 10:00 AM, Harshan Liyanage hars...@wso2.com
  wrote:

 Congradz Amal!

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.


 On Sat, Apr 19, 2014 at 10:43 PM, Gayan Yalpathwala 
 gay...@wso2.com wrote:

 Congratulations on your achievement Amal !!


 On Sat, Apr 19, 2014 at 10:08 PM, Manoj Kumara ma...@wso2.comwrote:

 Congratulation Amal !!!


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Sat, Apr 19, 2014 at 8:27 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my  pleasure to announce Amal Gunatilake as a WSO2
 Committer. Amal has  been a valuable contributor for WSO2 BPS 
 product and
 in recognition of his contributions to WSO2, he has been voted as a 
 WSO2
 Committer.

 Amal, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer

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

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.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




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




 --

 * 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




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


Re: [Dev] Global cluster cache invalidation code review Notes

2014-04-21 Thread Amal Gunatilake
Hi Subash,

Sorry for the delay. Since I'm in support I didn't have much time to
accelerate the process and during the weekend I managed to finish all the
TODOs. Currently it's not yet in kernal git repo. I have the latest code in
https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
Please let me know into which path I should commit the code and I can add
it to git repo immediately.

Thank you   Best regards,

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


On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga sub...@wso2.com wrote:

 Hi Amal,
 Let us know once the TODOs done in the code review except the JMS
 alternative discussion.  One of G-Reg RD folk will assign on migrating
 GReg cache invalidation to this pub sub impl.  I hope now your component is
 in the kernel git repo.

 Hi Azeez,Sagara
 Once registry and user permission moved to this impl, it needs quite
 amount of testing  on production aspects. Since this is almost a new
 feature and this leads documentation change in all products
 (mounting/caching) I believe we should not provide this as a patch for a
 customer unless it is really required.








 On Thu, Apr 17, 2014 at 10:37 AM, Amal Gunatilake am...@wso2.com wrote:

 Hi Sagara,

 As Azeez mentioned there is an interface at CarbonUtils named as
 CacheInvalidator. My component will implement this interface. We planned to
 have the interface at CarbonUtils because every product will need this
 service.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 6:03 AM, Afkham Azeez az...@wso2.com wrote:




 On Thu, Apr 17, 2014 at 12:33 AM, Sagara Gunathunga sag...@wso2.comwrote:




 On Wed, Apr 16, 2014 at 2:57 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi All,

 Following updates has been discussed on $subject.

 1) Make the subscription auto subscribe once the jar bundle is
 present.
 2) Check on how to resubscribe if the server goes down and comes up
 3) If the sever goes down when a message receives check whether it
 queues the message and receive.
 4) jndi.properties file

- If the file is already present at conf directory then load the
settings but if the expecting parameters not found put error log and 
 show
the user needed parameters.
- If the file is not present then put the file to conf directory
and log a warning message

 5) It was discussed whether we are going to use AMPQ instead JMS. This
 has to be determined which I will open a separate thread for discussion.

 6) Generate UUID and do the message comparison to ignore own messages.

 7) Let the topic name configurable.

 Hi Amal,

 Have you define a clear API and separate it from JMS implementation ?
 IMO having a clear API is must thing for this feature as we may have to
 include some other implementations in future. I'm thinking about SNS based
 implementation for future where EC2 users have freedom to use native
 supported SNS based implementation effectively instead of bringing  and
 configuring another message broker into the deployment setup.


 There is an interface with a single method, and using JMS is just an
 implementation detail of Amal's component.


 Thanks !


 Please update the thread if there are any further updates.

  Thank you   Best regards,

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

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




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




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


 *Lean . Enterprise . Middleware*



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




 --
 Thanks
 /subash

 *Subash Chaturanga*
 Senior Software Engineer :Integration TG; WSO2 Inc. http://wso2.com

 email: sub...@wso2.com
 blog:  http://subashsdm.blogspot.com/
 twitter: @subash89
 phone: +9477 2225922
 Lean . Enterprise . Middleware

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


[Dev] 答复: ask for wso2 email address

2014-04-21 Thread shuchang
Is there any response about my concern? 

Is there someone here in the mailing list who has already established the
wso2 EMM environment?

 

I am just blocked here…

Any advice will be appreciated.

 

 

Regards,

Shuchang

 

发件人: dev-boun...@wso2.org [mailto:dev-boun...@wso2.org] 代表 shuchang
发送时间: 2014年4月18日 14:02
收件人: Dev@wso2.org
主题: [Dev] ask for wso2 email address

 

Hi all,

 

I am trying to set up the enviorement of wso2 EMM. In the EMM
documentation-- Deployment Guide-- iOS server configuration-- Generating
a MDM APNS Certificate, it is noted in step 3 that:  Send the DER file to
the vendor (WSO2) via an email, in order to obtain the .plist file. The
vendor will create a .plist file based on the submitted DER file and send it
to you. However, I am not sure where should I send my email. In other
words, can you pls show me the wso2 vendor's email address from which I can
send my DER file and in turn get the  corresponding .plist file. Thanks!

 

Best Regards,

Shuchang

 

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


[Dev] 答复: ask for wso2 email address

2014-04-21 Thread shuchang
I also refer my DER file in the attachment. Looking forward your help.
Thanks.

 

Shuchang

 

发件人: shuchang [mailto:253703...@qq.com] 
发送时间: 2014年4月21日 16:46
收件人: 'Dev@wso2.org'
主题: 答复: [Dev] ask for wso2 email address

 

Is there any response about my concern? 

Is there someone here in the mailing list who has already established the
wso2 EMM environment?

 

I am just blocked here…

Any advice will be appreciated.

 

 

Regards,

Shuchang

 

发件人: dev-boun...@wso2.org mailto:dev-boun...@wso2.org
[mailto:dev-boun...@wso2.org] 代表 shuchang
发送时间: 2014年4月18日 14:02
收件人: Dev@wso2.org mailto:Dev@wso2.org 
主题: [Dev] ask for wso2 email address

 

Hi all,

 

I am trying to set up the enviorement of wso2 EMM. In the EMM
documentation-- Deployment Guide-- iOS server configuration-- Generating
a MDM APNS Certificate, it is noted in step 3 that:  Send the DER file to
the vendor (WSO2) via an email, in order to obtain the .plist file. The
vendor will create a .plist file based on the submitted DER file and send it
to you. However, I am not sure where should I send my email. In other
words, can you pls show me the wso2 vendor's email address from which I can
send my DER file and in turn get the  corresponding .plist file. Thanks!

 

Best Regards,

Shuchang

 



customer.der
Description: application/x509-ca-cert
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Setting up mysql database for ESB sample 364

2014-04-21 Thread Dilini Muthumala
Copying documentation team...

Regards,
Dilini


On Mon, Apr 21, 2014 at 1:50 PM, Anuruddha Premalal anurud...@wso2.comwrote:

 Hi,

 Instructions for setting up mysql database for sample 
 364https://docs.wso2.org/display/ESB481/Sample+364%3A+Executing+Database+Stored+Proceduresis
  missing from the ESB documentation.

 Herewith I've attached a sql file which can be used to set up the db.

 Regrads,
 --
 Anuruddha Premalal
 Software Engineer, WSO2 Inc.
 Mob : +94 710461070


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




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


Re: [Dev] Error when starting BRS with db2 datasource

2014-04-21 Thread Chathurika Mahaarachchi
This might be helpful [1]

[1]
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z10.doc.codes%2Fsrc%2Ftpc%2Fn407.htm


On Mon, Apr 21, 2014 at 2:10 PM, Chathurika De Silva
chathuri...@wso2.comwrote:

 Following errors occurred when starting the BRS  2.0.0 with the below db2
 configuration

 datasource
 nameWSO2_CARBON_DB/name
 descriptionThe datasource used for registry and user
 manager/description
 jndiConfig
 namejdbc/WSO2CarbonDB/name
 /jndiConfig
 definition type=RDBMS
 configuration
 urljdbc:db2://192.168.18.13:5/CEP/url
 usernamedb2admin/username
 passwordpass#word2/password

 driverClassNamecom.ibm.db2.jcc.DB2Driver/driverClassName
 maxActive80/maxActive
 maxWait36/maxWait
 minIdle5/minIdle
 testOnBorrowtrue/testOnBorrow
 validationQueryselect 1 from
 sysibm.sysdummy1/validationQuery
 validationInterval3/validationInterval
 /configuration
 /definition
 /datasource

 *Errors *

 [2014-04-21 14:06:19,369] ERROR - DatabaseUtil Error! DB2 SQL Error:
 SQLCODE=-407, SQLSTATE=23502, SQLERRMC=TBSPACEID=2, TABLEID=264, COLNO=5,
 DRIVER=3.50.152
 com.ibm.db2.jcc.b.lm: DB2 SQL Error: SQLCODE=-407, SQLSTATE=23502,
 SQLERRMC=TBSPACEID=2, TABLEID=264, COLNO=5, DRIVER=3.50.152
 at com.ibm.db2.jcc.b.wc.a(wc.java:575)
 at com.ibm.db2.jcc.b.wc.a(wc.java:57)
 at com.ibm.db2.jcc.b.wc.a(wc.java:126)
 at com.ibm.db2.jcc.b.tk.b(tk.java:1593)
 at com.ibm.db2.jcc.b.tk.c(tk.java:1576)
 at com.ibm.db2.jcc.t4.db.k(db.java:353)
 at com.ibm.db2.jcc.t4.db.a(db.java:59)
 at com.ibm.db2.jcc.t4.t.a(t.java:50)
 at com.ibm.db2.jcc.t4.tb.b(tb.java:200)
 at com.ibm.db2.jcc.b.uk.Gb(uk.java:2355)
 at com.ibm.db2.jcc.b.uk.e(uk.java:3129)
 at com.ibm.db2.jcc.b.uk.zb(uk.java:568)
 at com.ibm.db2.jcc.b.uk.executeUpdate(uk.java:551)
 at
 org.wso2.carbon.user.core.util.DatabaseUtil.updateDatabase(DatabaseUtil.java:396)
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:540)
 at
 org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:258)
 at
 org.wso2.carbon.registry.core.jdbc.realm.RegistryAuthorizationManager.authorizeRole(RegistryAuthorizationManager.java:155)
 at
 org.wso2.carbon.captcha.mgt.util.CaptchaUtil.setAnonAuthorization(CaptchaUtil.java:281)
 at
 org.wso2.carbon.captcha.mgt.util.CaptchaUtil.setAnonAccessToCaptchaImages(CaptchaUtil.java:265)
 at
 org.wso2.carbon.captcha.mgt.internal.CaptchaMgtServiceComponent.activate(CaptchaMgtServiceComponent.java:47)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:328)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:221)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 

Re: [Dev] rampart-core:jar:1.6.1-wso2v12-SNAPSHOT was not deployed into the online SNAPSHOT repository

2014-04-21 Thread Krishantha Samaraweera
Hi Kasun,

Rampart core dependency is still missing in nexus repo. Can you please have
a look.

Thanks,
Krishantha.


On Thu, Apr 10, 2014 at 6:50 PM, Nuwan Wimalasekara nuw...@wso2.com wrote:

 Hi
 I am still getting the issue when building on clean repo. Shall we deploy
 the jar into SNAPSHOT repo.

 Thanks,
 Nuwanw


 On Tue, Apr 1, 2014 at 12:43 PM, Kasun Gajasinghe kas...@wso2.com wrote:

 I guess the nexus has cleaned up the rampart snapshots via its cleanup
 period task. We might need to re-visit how the cleanup happens. We always
 need to keep the latest SNAPSHOTs.


 On Tue, Apr 1, 2014 at 8:44 AM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 I am getting below error when building the carbon-platform-integration[1]
 and the rampart-core jar file can not be found in the repository[2].

 Please deploy the rampart-core jar into the SNAPSHOT repository.

 [ERROR] Failed to execute goal on project org.wso2.carbon.automation.
 test.utils: Could not resolve dependencies for project org.wso2.carbon.
 automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT:
 Failure to find org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT
 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached
 in the local repository, resolution will not be reattempted until the
 update interval of wso2-nexus has elapsed or updates are forced -

 [1] https://github.com/wso2/carbon-platform-integration
 [2]
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/


 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




 --

 *Kasun Gajasinghe*Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




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


Re: [Dev] rampart-core:jar:1.6.1-wso2v12-SNAPSHOT was not deployed into the online SNAPSHOT repository

2014-04-21 Thread Kasun Gajasinghe
This is puzzling since the last rampart build was done about 30 minutes
ago, and I can see logs in Jenkins showing that it got uploaded to nexus.
But it's not available in nexus! I'm investigating this issue further.


On Mon, Apr 21, 2014 at 3:44 PM, Krishantha Samaraweera krishan...@wso2.com
 wrote:

 Hi Kasun,

 Rampart core dependency is still missing in nexus repo. Can you please
 have a look.

 Thanks,
 Krishantha.


 On Thu, Apr 10, 2014 at 6:50 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi
 I am still getting the issue when building on clean repo. Shall we
 deploy the jar into SNAPSHOT repo.

 Thanks,
 Nuwanw


 On Tue, Apr 1, 2014 at 12:43 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 I guess the nexus has cleaned up the rampart snapshots via its cleanup
 period task. We might need to re-visit how the cleanup happens. We always
 need to keep the latest SNAPSHOTs.


 On Tue, Apr 1, 2014 at 8:44 AM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 I am getting below error when building the carbon-platform-integration[1]
 and the rampart-core jar file can not be found in the repository[2].

 Please deploy the rampart-core jar into the SNAPSHOT repository.

 [ERROR] Failed to execute goal on project org.wso2.carbon.automation.
 test.utils: Could not resolve dependencies for project org.wso2.carbon.
 automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT:
 Failure to find org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT
 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached
 in the local repository, resolution will not be reattempted until the
 update interval of wso2-nexus has elapsed or updates are forced -

 [1] https://github.com/wso2/carbon-platform-integration
 [2]
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/


 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




 --

 *Kasun Gajasinghe*Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




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




-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] rampart-core:jar:1.6.1-wso2v12-SNAPSHOT was not deployed into the online SNAPSHOT repository

2014-04-21 Thread Kasun Gajasinghe
I have re-triggered a new build, and rampart is now available -
http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart/1.6.1-wso2v12-SNAPSHOT/


On Mon, Apr 21, 2014 at 3:50 PM, Kasun Gajasinghe kas...@wso2.com wrote:


 This is puzzling since the last rampart build was done about 30 minutes
 ago, and I can see logs in Jenkins showing that it got uploaded to nexus.
 But it's not available in nexus! I'm investigating this issue further.


 On Mon, Apr 21, 2014 at 3:44 PM, Krishantha Samaraweera 
 krishan...@wso2.com wrote:

 Hi Kasun,

 Rampart core dependency is still missing in nexus repo. Can you please
 have a look.

 Thanks,
 Krishantha.


 On Thu, Apr 10, 2014 at 6:50 PM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 Hi
 I am still getting the issue when building on clean repo. Shall we
 deploy the jar into SNAPSHOT repo.

 Thanks,
 Nuwanw


 On Tue, Apr 1, 2014 at 12:43 PM, Kasun Gajasinghe kas...@wso2.comwrote:

 I guess the nexus has cleaned up the rampart snapshots via its cleanup
 period task. We might need to re-visit how the cleanup happens. We always
 need to keep the latest SNAPSHOTs.


 On Tue, Apr 1, 2014 at 8:44 AM, Nuwan Wimalasekara nuw...@wso2.comwrote:

 I am getting below error when building the carbon-platform-integration
 [1] and the rampart-core jar file can not be found in the repository[
 2].

 Please deploy the rampart-core jar into the SNAPSHOT repository.

 [ERROR] Failed to execute goal on project org.wso2.carbon.automation.
 test.utils: Could not resolve dependencies for project org.wso2.carbon
 .automation:org.wso2.carbon.automation.test.utils:jar:4.3.1-SNAPSHOT:
 Failure to find org.apache.rampart:rampart-core:jar:1.6.1-wso2v12-SNAPSHOT
 in http://maven.wso2.org/nexus/content/groups/wso2-public/ was cached
 in the local repository, resolution will not be reattempted until the
 update interval of wso2-nexus has elapsed or updates are forced -

 [1] https://github.com/wso2/carbon-platform-integration
 [2]
 http://maven.wso2.org/nexus/content/repositories/snapshots/org/apache/rampart/rampart-core/


 Thanks,
 Nuwanw

 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




 --

 *Kasun Gajasinghe*Software Engineer, WSO2 Inc.
 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






 --
 Nuwan Wimalasekara
 Senior Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 phone: +94 71 668 4620




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




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




 --

 *Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.

 email: kasung AT spamfree wso2.com
 linked-in: http://lk.linkedin.com/in/gajasinghe
 blog: http://kasunbg.org






-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding a new system property

2014-04-21 Thread Ishara Karunarathna
Hi all,

We need to add a system property
net.sf.ehcache.pool.sizeof.AgentSizeOf.bypass=true

To remove the thread dump getting on the console as we are using shindig
libraries for
IS-Dashboard.
Is it ok to add this property to startup script ?
Please advise.

Thanks,
Ishara

-- 
Ishara Karunarathna
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: isha...@wso2.com,   blog: isharaaruna.blogspot.com,   mobile: +94
718211678
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-21 Thread Shameera Rathnayaka
Congratzz !!!

Cheers,
Shameera.


On Mon, Apr 21, 2014 at 5:40 PM, Isura Karunaratne is...@wso2.com wrote:

 Congrats, Amal..!!


 On Mon, Apr 21, 2014 at 2:10 PM, Dilini Muthumala dil...@wso2.com wrote:

 Congrats, Waruna!


 On Mon, Apr 21, 2014 at 2:05 PM, Amal Gunatilake am...@wso2.com wrote:

 Congratz Waruna !!

 Thank you   Best regards,

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


 On Mon, Apr 21, 2014 at 11:40 AM, Rajith Vitharana raji...@wso2.comwrote:

 Congrats Waruna :)


 On Mon, Apr 21, 2014 at 11:26 AM, Isuruwan Herath isuru...@wso2.comwrote:

 Congrats Waruna...!!!


 On Mon, Apr 21, 2014 at 10:57 AM, Lasantha Fernando lasan...@wso2.com
  wrote:

 Congratulations Waruna...!!


 On 21 April 2014 10:29, Chathurika Mahaarachchi 
 chathur...@wso2.comwrote:

 Congratulations Waruna...!!!


 On Mon, Apr 21, 2014 at 10:27 AM, Aruna Karunarathna ar...@wso2.com
  wrote:

 Congratulations Waruna...!!!


 On Sat, Apr 19, 2014 at 8:23 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2
 Committer. Waruna has  been a valuable contributor for WSO2 BPS / BRS
 products and in recognition of his contributions to WSO2, he has been 
 voted
 as a WSO2 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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



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




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




 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810


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




-- 
*Software Engineer - WSO2 Inc.*
*email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
shame...@apache.org*
*phone:  +9471 922 1454*

*Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
*Twitter : *https://twitter.com/Shameera_R
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Locking on Static methods

2014-04-21 Thread Sohani Weerasinghe
Hi All,

Since synchronization on static methods is a class level locking a second
thread can't access the method until first thread releases the lock. The
static method has synchronized as shown below.

public class B{
public *synchronized* static void staticMethod(String a){
}
}

If this method calls by another class (Class A), then do I have to use a
synchronized block as shown below to avoid multiple threads accessing the
static method?

Public class A {
*private static Object lock = new Object();*

public static void main(String[] args){
*synchronized(lock){*
   B.staticMethod(hello);
*}*
   }
  }

Can someone provide a solution on this ?

Regards,
Sohani

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

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Locking on Static methods

2014-04-21 Thread Chamil Jeewantha
 B.staticMethod() is already thread safe (it is synchronized). because of
that, the caller class (Class A) do not need to use a lock again.


On Mon, Apr 21, 2014 at 8:04 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 Since synchronization on static methods is a class level locking a second
 thread can't access the method until first thread releases the lock. The
 static method has synchronized as shown below.

 public class B{
 public *synchronized* static void staticMethod(String a){
 }
 }

 If this method calls by another class (Class A), then do I have to use a
 synchronized block as shown below to avoid multiple threads accessing the
 static method?

 Public class A {
 *private static Object lock = new Object();*

 public static void main(String[] args){
 *synchronized(lock){*
B.staticMethod(hello);
 *}*
}
   }

 Can someone provide a solution on this ?

 Regards,
 Sohani

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

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

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




-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Locking on Static methods

2014-04-21 Thread Harsha Thirimanna
You can do it simply lock the class

synchronized(B.class){
B.staticMethod(hello);
}
On Apr 21, 2014 8:06 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 Since synchronization on static methods is a class level locking a second
 thread can't access the method until first thread releases the lock. The
 static method has synchronized as shown below.

 public class B{
 public *synchronized* static void staticMethod(String a){
 }
 }

 If this method calls by another class (Class A), then do I have to use a
 synchronized block as shown below to avoid multiple threads accessing the
 static method?

 Public class A {
 *private static Object lock = new Object();*

 public static void main(String[] args){
 *synchronized(lock){*
B.staticMethod(hello);
 *}*
}
   }

 Can someone provide a solution on this ?

 Regards,
 Sohani

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

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

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


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


Re: [Dev] Locking on Static methods

2014-04-21 Thread Sohani Weerasinghe
Hi Chamil,

Thanks for the quick response.

Regards,
Sohani

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

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


On Mon, Apr 21, 2014 at 8:21 PM, Chamil Jeewantha cha...@wso2.com wrote:

  B.staticMethod() is already thread safe (it is synchronized). because of
 that, the caller class (Class A) do not need to use a lock again.


 On Mon, Apr 21, 2014 at 8:04 PM, Sohani Weerasinghe soh...@wso2.comwrote:

 Hi All,

 Since synchronization on static methods is a class level locking a second
 thread can't access the method until first thread releases the lock. The
 static method has synchronized as shown below.

 public class B{
 public *synchronized* static void staticMethod(String a){
 }
 }

 If this method calls by another class (Class A), then do I have to use a
 synchronized block as shown below to avoid multiple threads accessing the
 static method?

 Public class A {
 *private static Object lock = new Object();*

 public static void main(String[] args){
 *synchronized(lock){*
B.staticMethod(hello);
 *}*
}
   }

 Can someone provide a solution on this ?

 Regards,
 Sohani

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

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

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




 --
 K.D. Chamil Jeewantha
 Associate Technical Lead
 WSO2, Inc.;  http://wso2.com
 Mobile: +94716813892


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


Re: [Dev] Locking on Static methods

2014-04-21 Thread Danushka Fernando
Hi
Check my in line comments.
On Apr 21, 2014 7:36 AM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 Since synchronization on static methods is a class level locking a second
thread can't access the method until first thread releases the lock. The
static method has synchronized as shown below.

 public class B{
 public synchronized static void staticMethod(String a){
 }
 }

 If this method calls by another class (Class A), then do I have to use a
synchronized block as shown below to avoid multiple threads accessing the
static method?
AFAIU no need to. To make sure you can write some sample with few prints in
static method. Put some sleeps in between. Then it will make it easy to
test. Then run several threads.

 Public class A {
 private static Object lock = new Object();

 public static void main(String[] args){
 synchronized(lock){
B.staticMethod(hello);
 }
}
   }

 Can someone provide a solution on this ?

 Regards,
 Sohani

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

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

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

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


Re: [Dev] Locking on Static methods

2014-04-21 Thread Sohani Weerasinghe
Hi All,

Thanks for the responses.

Regards,
Sohani

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

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


On Mon, Apr 21, 2014 at 8:32 PM, Danushka Fernando danush...@wso2.comwrote:

 Hi
 Check my in line comments.

 On Apr 21, 2014 7:36 AM, Sohani Weerasinghe soh...@wso2.com wrote:
 
  Hi All,
 
  Since synchronization on static methods is a class level locking a
 second thread can't access the method until first thread releases the lock.
 The static method has synchronized as shown below.
 
  public class B{
  public synchronized static void staticMethod(String a){
  }
  }
 
  If this method calls by another class (Class A), then do I have to use a
 synchronized block as shown below to avoid multiple threads accessing the
 static method?
 AFAIU no need to. To make sure you can write some sample with few prints
 in static method. Put some sleeps in between. Then it will make it easy to
 test. Then run several threads.

 
  Public class A {
  private static Object lock = new Object();
 
  public static void main(String[] args){
  synchronized(lock){
 B.staticMethod(hello);
  }
 }
}
 
  Can someone provide a solution on this ?
 
  Regards,
  Sohani
 
  Sohani Weerasinghe
  Software Engineer
  WSO2, Inc: http://wso2.com
 
  Mobile  : +94 716439774
  Blog :http://christinetechtips.blogspot.com/
  Twitter  : https://twitter.com/sohanichristine
 
  ___
  Dev mailing list
  Dev@wso2.org
  http://wso2.org/cgi-bin/mailman/listinfo/dev
 


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


Re: [Dev] Locking on Static methods

2014-04-21 Thread Malintha Adikari
On Mon, Apr 21, 2014 at 8:21 PM, Chamil Jeewantha cha...@wso2.com wrote:

  B.staticMethod() is already thread safe (it is synchronized). because of
 that, the caller class (Class A) do not need to use a lock again.

 Yes. And this stackoverflaw answer[1] gives a tip
[1]
http://stackoverflow.com/questions/5443297/concurrency-in-java-synchronized-static-methods
On Mon, Apr 21, 2014 at 8:04 PM, Sohani Weerasinghe soh...@wso2.com wrote:

 Hi All,

 Since synchronization on static methods is a class level locking a second
 thread can't access the method until first thread releases the lock. The
 static method has synchronized as shown below.

 public class B{
 public *synchronized* static void staticMethod(String a){
 }
 }

 If this method calls by another class (Class A), then do I have to use a
 synchronized block as shown below to avoid multiple threads accessing the
 static method?

 Public class A {
 *private static Object lock = new Object();*

 public static void main(String[] args){
 *synchronized(lock){*
B.staticMethod(hello);
 *}*
}
   }

 Can someone provide a solution on this ?

 Regards,
 Sohani

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

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

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




-- 
K.D. Chamil Jeewantha
Associate Technical Lead
WSO2, Inc.;  http://wso2.com
Mobile: +94716813892


 ___
 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
 (): උපදිෂ්ට, ද්වෙෂ කරනවා, ද්වේෂ කරනවා, පිළිකුල් කරනවා, x ලකුණ, ලකුණ
යොදනවා, වකුටු, ස්වරිතස්වරය ඇඟවීමට යොදන ලකුණ, යමක් කල යුතුයි
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Documenting Web app in App Manager

2014-04-21 Thread Rajeeva Uthayasangar
Hi,

Adding documentation for a web app is being implemented in App manager
also. But in API manager, each page is constructed using blocks and the
rendering of the web page is handled using jagg module render() function
which is kind of obsolete now.

So I have implemented the documentation in App manager using Caramel, the
way how Enterprise store is implemented. Hope it will help  when migrating
API manager publisher and store to Enterprise store.

Thanks,
Rajeeva




-- 
*Rajeeva Uthayasangar*
Software Engineer
WSO2, Inc.:http://wso2.com


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


[Dev] IS 5.0.0 - QA status update

2014-04-21 Thread Pavithra Madurangi
Hi all,

Following is the QA status update of IS 5.0.0 release as at 18/04/2014.

New features tested at least for happy path. (Please note some of them are
partially tested and full path is not covered)
- Chained Collaborative Federation Pattern (Partially tested)
- Identity Bridge between - OpenID Connect, SAML 2.0, OAuth 2.0, (Partially
tested)
- Facebook Authenticator
- SAML request / response validator (testing not complete)
- Multi-option login page (not complete)

To be tested
- Google Apps provisioning connector
- Just-in-time provisioning
- Multi-step / multi-factor authentication
- Request path authenticators
- User portal
- SCIM to SPML bridge
- Encrypted SAML assertions
- NTLM grant type for OAuth
- Long running test

Some of the features where not tested because those features were not
completed on the 18th April pack.

We were not able to start long running tests on 18th April pack due to some
L1 issues. Please refer [1] for open jiras.

The plan for next few days is to start long running tests once blocking
issues are fixed and to cover the new features.

[1] https://wso2.org/jira/browse/IDENTITY-2179?filter=11770

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


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-21 Thread Pulasthi Supun
Congrats


On Mon, Apr 21, 2014 at 6:18 PM, Shameera Rathnayaka shame...@wso2.comwrote:

 Congratzz !!!

 Cheers,
 Shameera.


 On Mon, Apr 21, 2014 at 5:40 PM, Isura Karunaratne is...@wso2.com wrote:

 Congrats, Amal..!!


 On Mon, Apr 21, 2014 at 2:10 PM, Dilini Muthumala dil...@wso2.comwrote:

 Congrats, Waruna!


 On Mon, Apr 21, 2014 at 2:05 PM, Amal Gunatilake am...@wso2.com wrote:

 Congratz Waruna !!

 Thank you   Best regards,

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


 On Mon, Apr 21, 2014 at 11:40 AM, Rajith Vitharana raji...@wso2.comwrote:

 Congrats Waruna :)


 On Mon, Apr 21, 2014 at 11:26 AM, Isuruwan Herath 
 isuru...@wso2.comwrote:

 Congrats Waruna...!!!


 On Mon, Apr 21, 2014 at 10:57 AM, Lasantha Fernando 
 lasan...@wso2.com wrote:

 Congratulations Waruna...!!


 On 21 April 2014 10:29, Chathurika Mahaarachchi chathur...@wso2.com
  wrote:

 Congratulations Waruna...!!!


 On Mon, Apr 21, 2014 at 10:27 AM, Aruna Karunarathna 
 ar...@wso2.com wrote:

 Congratulations Waruna...!!!


 On Sat, Apr 19, 2014 at 8:23 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2
 Committer. Waruna has  been a valuable contributor for WSO2 BPS / BRS
 products and in recognition of his contributions to WSO2, he has 
 been voted
 as a WSO2 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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



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




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




 --
 Isura Dilhara Karunaratne
 Software Engineer

 Mob +94 772 254 810


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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

 ___
 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


Re: [Dev] WSO2 Committers += Amal Gunatilake

2014-04-21 Thread Pulasthi Supun
Congrats


On Mon, Apr 21, 2014 at 2:11 PM, Dilini Muthumala dil...@wso2.com wrote:

 Congrats, Amal..!!


 On Mon, Apr 21, 2014 at 11:40 AM, Rajith Vitharana raji...@wso2.comwrote:

 Congrats Amal. :)


 On Mon, Apr 21, 2014 at 11:27 AM, Isuruwan Herath isuru...@wso2.comwrote:

 Congrats Amal...!!!


 On Mon, Apr 21, 2014 at 10:59 AM, Lasantha Fernando 
 lasan...@wso2.comwrote:

 Congratulations Amal...!!!


 On 21 April 2014 10:46, Ruwan Yatawara ruw...@wso2.com wrote:

 Congrats Amal!

 Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
  lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com



 On Mon, Apr 21, 2014 at 10:31 AM, Chathurika Mahaarachchi 
 chathur...@wso2.com wrote:

 Congratulations Amal !


 On Mon, Apr 21, 2014 at 10:26 AM, Aruna Karunarathna 
 ar...@wso2.comwrote:

 Congratulations Amal...!!!


 On Mon, Apr 21, 2014 at 10:20 AM, Pamod Sylvester pa...@wso2.comwrote:

 Congratulations Amal !!


 On Mon, Apr 21, 2014 at 10:00 AM, Harshan Liyanage 
 hars...@wso2.com wrote:

 Congradz Amal!

 Best Regards,

 Lakshitha Harshan
 Software Engineer
 Mobile: *+94724423048*
 Email: hars...@wso2.com
 Blog : http://harshanliyanage.blogspot.com/
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.


 On Sat, Apr 19, 2014 at 10:43 PM, Gayan Yalpathwala 
 gay...@wso2.com wrote:

 Congratulations on your achievement Amal !!


 On Sat, Apr 19, 2014 at 10:08 PM, Manoj Kumara ma...@wso2.comwrote:

 Congratulation Amal !!!


 *Manoj Kumara*
 Software Engineer
 WSO2 Inc. http://wso2.com/
 *lean.enterprise.middleware*
 Mobile: +94713448188


 On Sat, Apr 19, 2014 at 8:27 AM, Nandika Jayawardana 
 nand...@wso2.com wrote:

 Hi All,

 It's my  pleasure to announce Amal Gunatilake as a WSO2
 Committer. Amal has  been a valuable contributor for WSO2 BPS 
 product and
 in recognition of his contributions to WSO2, he has been voted as 
 a WSO2
 Committer.

 Amal, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

 ___
 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




 --
 *Gayan Kaushalya Yalpathwala*
  Software Engineer

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

 mobile: +94 71 8682704 http://asia14.wso2con.com/

  http://asia14.wso2con.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




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




 --

 * 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




 --
 *Chathurika Mahaarachchi*
 Software Engineer, QA.
 WSO2 Inc.: http://wso2.com/
 lean.enterprise.middleware
 Mobile: +94718223950

 ___
 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




 --
 Isuruwan Herath
 Technical Lead

 Contact: +94 776 273 296

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




 --
 Rajith Vitharana

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94715883223
 Blog : http://lankavitharana.blogspot.com/

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




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




-- 
--
Pulasthi Supun
Software Engineer; WSO2 

Re: [Dev] WSO2 Committers += Amal Gunatilake

2014-04-21 Thread Bhathiya Jayasekara
Congratulations Amal...


On Fri, Apr 18, 2014 at 7:57 PM, Nandika Jayawardana nand...@wso2.comwrote:

 Hi All,

 It's my  pleasure to announce Amal Gunatilake as a WSO2 Committer. Amal
 has  been a valuable contributor for WSO2 BPS product and in recognition of
 his contributions to WSO2, he has been voted as a WSO2 Committer.

 Amal, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

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


Re: [Dev] WSO2 Committers += Waruna Jayaweera

2014-04-21 Thread Asanka Vithanage
Congratz. !!!


On Mon, Apr 21, 2014 at 9:36 PM, Bhathiya Jayasekara bhath...@wso2.comwrote:

 Congratulations Waruna...


 On Fri, Apr 18, 2014 at 7:53 PM, Nandika Jayawardana nand...@wso2.comwrote:

 Hi All,

 It's my  pleasure to announce Waruna Jayaweera as a WSO2 Committer.
 Waruna has  been a valuable contributor for WSO2 BPS / BRS products and in
 recognition of his contributions to WSO2, he has been voted as a WSO2
 Committer.

 Waruna, Congratulations and Keep up the good work!

 Thanks and Regards,
 Nandika

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

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


Re: [Dev] Configuration location for jaggery apps

2014-04-21 Thread Manuranga Perera

 Or cant we create the configurations based on the environment at the
 startup maybe ?  I assume you need to change the hostname/port etc right ?

I am trying do do this, but direct references to site.json are in lot of
places (I am looking at APIM store). so to avoid doing lot of custom
changes, I'll try writing the correct config back to site.json at start-up
time.


1. If it is packed with the product, you can simply keep the site.json file
 as a template in puppet or in a suitable way if you are using any other
 config management mechanisms.

we are tying to avoid situations where things in deployment/server
directory are managed directly by puppet. because it creates problems with
multi management node setups, when multiple noes try to commit at start-up.



-- 
With regards,
*Manu*ranga Perera.

phone : 071 7 70 20 50
mail : m...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Implementing Single Logout in APP Manager

2014-04-21 Thread Ruwan Yatawara
Hi All,

Following is a brief explanation as to how we went about implementing
single logout in App Manager. Please feel free to share your thoughts.

According to the current implementation in App Manager, When a user tries
to access a Gateway URL, the request will be intercepted by a Synapse API
Handler. This handler will check if a certain Cache key is present in the
request Header. If it is the first time the URL is being invoked, there
won't be a Cache Key present in the request, hence the user is redirected
to the logIn page of the Identity Provider (which is, WSO2 Identity Server,
in this case). Once the user is authenticated, the IDP will send a SAML
response back to the gateway, which will in turn be cached in the App
Manager for future reference. Once all of this is done, the gateway will
draft a JWT token with claims recovered from the IDP Saml Response, and the
same, along with the cache key pertaining to the stored SAML response, will
get sent back to the Webapp as a Cookie.

In the single logout scenario, once a request is made to the LogOut URL,
the handler will identify the request as a logout call and a redirect will
be made to the IDP with a Single LogOut request. Note that, App Manager
does not maintain a Session for the user, all of this is delegated to the
IDP to take care of. The only reference of the user withheld on App
Manager, is the cached SAML Response stored against cache key sent back the
browser. Once the IDP encounters a Single Logout Request, it will clear the
session maintained for the user, against the session index. Once this is
done, the APP Manager will also wipe from its cache, the original SAML
response held against the cache key rendering the User, unauthenticated.
Eventually, the user will be redirected to the IDP LogIn page.

Note that even though the IDP would send out individual logout requests to
each service provider, App Manager would not need to handle said requests
as it has already cleared its cache, of the SAML response, and
all subsequent gateway calls would result in getting redirected to the IDP
for authentication as APP Manager does not have in it a notion of user
session (it is delegated to the IDP).

We have implemented above and it works, but this approach does not let us
address *selective* logout scenario like the following.

Imagine there are 4 apps, A, B, C, D. One may configure single logout for A
and B, service providers and leave C and D, as they are. When logout is
invoked on A, B would also be logged out as they are both SIngle Logout
enabled. However, C and D will stay logged in as they are not Single logout
enabled. However, if one had a requirement to group A  B under a group and
C  D under another, so that when logout is invoked on one App of a group,
all the applications in said group would be logged out, and applications
external to the group wont get affected, irrespective of whether they are
single logout enabled. This selective group wise logout enabling, is this
possible? or is this not a valid requirement?

 Thanks and Regards,

Ruwan Yatawara

Software Engineer,
WSO2 Inc.
lean . enterprise . middleware

email : ruw...@wso2.com
mobile : +94 77 9110413
blog : http://thoughts.ruwan-ace.com/
www: :http://wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implementing Single Logout in APP Manager

2014-04-21 Thread Sumedha Rubasinghe
Ruwan, use a sequence diagram to explain what has already been implemented.
This is too lengthy to read.. ;-)



On Mon, Apr 21, 2014 at 11:08 PM, Ruwan Yatawara ruw...@wso2.com wrote:

 Hi All,

 Following is a brief explanation as to how we went about implementing
 single logout in App Manager. Please feel free to share your thoughts.

 According to the current implementation in App Manager, When a user tries
 to access a Gateway URL, the request will be intercepted by a Synapse API
 Handler. This handler will check if a certain Cache key is present in the
 request Header. If it is the first time the URL is being invoked, there
 won't be a Cache Key present in the request, hence the user is redirected
 to the logIn page of the Identity Provider (which is, WSO2 Identity Server,
 in this case). Once the user is authenticated, the IDP will send a SAML
 response back to the gateway, which will in turn be cached in the App
 Manager for future reference. Once all of this is done, the gateway will
 draft a JWT token with claims recovered from the IDP Saml Response, and the
 same, along with the cache key pertaining to the stored SAML response, will
 get sent back to the Webapp as a Cookie.

 In the single logout scenario, once a request is made to the LogOut URL,
 the handler will identify the request as a logout call and a redirect will
 be made to the IDP with a Single LogOut request. Note that, App Manager
 does not maintain a Session for the user, all of this is delegated to the
 IDP to take care of. The only reference of the user withheld on App
 Manager, is the cached SAML Response stored against cache key sent back the
 browser. Once the IDP encounters a Single Logout Request, it will clear the
 session maintained for the user, against the session index. Once this is
 done, the APP Manager will also wipe from its cache, the original SAML
 response held against the cache key rendering the User, unauthenticated.
 Eventually, the user will be redirected to the IDP LogIn page.

 Note that even though the IDP would send out individual logout requests to
 each service provider, App Manager would not need to handle said requests
 as it has already cleared its cache, of the SAML response, and
 all subsequent gateway calls would result in getting redirected to the IDP
 for authentication as APP Manager does not have in it a notion of user
 session (it is delegated to the IDP).

 We have implemented above and it works, but this approach does not let us
 address *selective* logout scenario like the following.

 Imagine there are 4 apps, A, B, C, D. One may configure single logout for
 A and B, service providers and leave C and D, as they are. When logout is
 invoked on A, B would also be logged out as they are both SIngle Logout
 enabled. However, C and D will stay logged in as they are not Single logout
 enabled. However, if one had a requirement to group A  B under a group and
 C  D under another, so that when logout is invoked on one App of a group,
 all the applications in said group would be logged out, and applications
 external to the group wont get affected, irrespective of whether they are
 single logout enabled. This selective group wise logout enabling, is this
 possible? or is this not a valid requirement?

  Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
 lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://thoughts.ruwan-ace.com/
 www: :http://wso2.com




-- 
/sumedha
m: +94 773017743
b :  bit.ly/sumedha
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Get understand the Common API

2014-04-21 Thread Rukshan Chathuranga
Thanks you for your help to get me accepted to the GSOC 2014.

thanks and regards.


On Thu, Mar 20, 2014 at 2:17 PM, Malintha Adikari malin...@wso2.com wrote:

 Hi Rukshan,


 On Thu, Mar 20, 2014 at 1:23 PM, Rukshan Chathuranga 
 rcruksha...@gmail.com wrote:

 Hi all,

 for this architecture what i planed to do is create generic test
 script file from the define BDD scenario by language processing.


 Yes, This file should be in standard formatted file (ex: xml...) and your
 language processing component should be able to convert it back to natural
 language. ( Idea is to store test cases in this standard format and users
 can retrive  those test cases as natural language test scenarios).

 After that, mapped the appropriate command and attribute of the command
 to the appropriate wso2 TAF services as steps.


 No. You have to build a component that convert the processed test
 scenarios (ex: xml) in to test scripts mapping with the common API.
 There are two tasks here

 1. Design a Common API that exposes backend services of products
 2.Component that convert your processed scripts (xml) to test scripts.


 Then test scripts are generated as normal test cases. then let TAF to or
 Using Common API it is possible to run the test cases.

 Generated test scripts should be executed with WSO2 Test automation
 Framework.


 This is what is supposed to do for the GSOC. So if their anything i
 missed in the proposal please let me know.


 Thanks and regards.


 On Mon, Mar 17, 2014 at 10:26 AM, Malintha Adikari malin...@wso2.comwrote:

 Hi Rukshan,

 Yes, You have to implement the Common API depending only on TAF. TAF
 provides clients for back-end admin services. Consider about simple
 scenario and try to understand the requirement. Think about single backend
 admin service and think TAF provides client for that. Map that single
 scenario with the test writers end. That would help you to complete the
 architectural design. Also try to finalize tools.APIs you are going to user
 for each stage.

 Regards,
 Malintha Adikari


 On Sun, Mar 16, 2014 at 9:26 AM, Rukshan Chathuranga 
 rcruksha...@gmail.com wrote:

 Thanks Dharshana,

   Does Common API only Depends on the WSO2 TAF? Since This Tool
 is going to Deploy inside the TAF no need to Communicate with other
 Services right? Because TAF care about other Back end Services.

 Is that mean common API have to map keywords only to the TAF functions
 and services?

 Thanks and regards.


 On Sat, Mar 15, 2014 at 2:09 PM, Dharshana Warusavitharana 
 dharsha...@wso2.com wrote:

 Hi Rukshan,

 The idea of the common API is basically a common interface which will
 communicate with the all available Automation Framework modules. 
 IeAutomation Framework Engine, And Admin services and other supporting
 modules in Framework side.

 As you can see in the diagram there is basically two modules, one
 which will convert the keyword based tes.t script to common formatand 
 next module is which will trigger the test depending on the resources
 available in the Automation framework.

 Thank you,
 Dharshana.



 On Sat, Mar 15, 2014 at 10:46 AM, Rukshan Chathuranga 
 rcruksha...@gmail.com wrote:


 Hi,

 This Question is related to this diagram.


 http://rukspot.com/sites/default/files/images/wso2/wso2_Test_Archi_2.png


1. function of the Test Execution Engine would be run the Keyword
driven testing.

2. Function of the common API would be mapping keyword to the
backed services.
3. Thus we need to use Robot framework for implement Keyword
driven automation instead of JBeahve.


 So what would be the correctness of this thoughts?

 Thanks and regards.

 --
 Department Of Computer Science  Engineering,
 Faculty Of Engineering,
 University Of Moratuwa.
 Sri lanka.
 WEB: http://rukspot.com/




 --

 Dharshana Warusavitharana
 Senior Software Engineer , Test Automation
 WSO2 Inc. http://wso2.com
 email : dharsha...@wso2.com dharsha...@wso2.com
 Tel  : +94 11 214 5345
 Fax :+94 11 2145300
 cell : +94772202595
 blog : http://dharshanaw.blogspot.com

 lean . enterprise . middleware




 --
 Department Of Computer Science  Engineering,
 Faculty Of Engineering,
 University Of Moratuwa.
 Sri lanka.
 WEB: http://rukspot.com/




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

 mobile: +94 71 2312958
 Blog: http://malinthas.blogspot.com




 --
 Department Of Computer Science  Engineering,
 Faculty Of Engineering,
 University Of Moratuwa.
 Sri lanka.
 WEB: http://rukspot.com/




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




-- 
Department Of Computer Science  Engineering,
Faculty Of Engineering,
University Of Moratuwa.
Sri lanka.
WEB: http://rukspot.com/
___
Dev mailing list
Dev@wso2.org

Re: [Dev] [DEV]Creating column families though a simple toolbox

2014-04-21 Thread Bhathiya Jayasekara
Hi Udara,

On Mon, Mar 17, 2014 at 10:56 PM, Udara Rathnayake uda...@wso2.com wrote:




 On Mon, Mar 17, 2014 at 11:42 PM, Inosh Goonewardena in...@wso2.comwrote:

 Hi Udara,

 I have deployed your toolbox and check. Actually, custom index are
 getting created properly. Following are the corresponding IndexCF for the
 custom index properties you have defined.

 867513878
 489450871

 But there is a problem with secondary index creation. It's because there
 are dots('.') in attribute names. Following logs prints in console when
 deploying the toolbox.

 [2014-03-17 18:52:27,935]  WARN
 {org.wso2.carbon.databridge.persistence.cassandra.datastore.CassandraConnector}
 -  Secondary Index creation is not successful...
 me.prettyprint.hector.api.exceptions.HInvalidRequestException:
 InvalidRequestException(why:Illegal index name payload_actor.id_index).

 Actually, if you want to create secondary indexes, you can directly use
 'Cassandra Keyspace' UI in management console too. But because you have
 dots in your column keys you are not allowed to do that in there too. I
 think it's better to use underscore instead of dot since those attributes
 are used as column keys.


 Even after I change attribute names it gives,

 [2014-03-18 11:20:05,512]  WARN
 {org.wso2.carbon.databridge.persistence.cassandra.datastore.CassandraConnector}
 -  Secondary Index creation is not successful...
 me.prettyprint.hector.api.exceptions.HInvalidRequestException:
 InvalidRequestException(why:Illegal index name  payload_context_id_index)


I know this is an old email. :) Just read it. Hope you've already got
solved the issue. Seems your index name started with a space character.
That must be the reason for this error.

Thanks,
Bhathiya



 But even with (.) character within attribute name you can run CREATE
 INDEX ON query on cqlsh without any trouble.



 On Mon, Mar 17, 2014 at 6:47 PM, Udara Rathnayake uda...@wso2.comwrote:




 On Mon, Mar 17, 2014 at 11:09 PM, Inosh Goonewardena in...@wso2.comwrote:

 On Mon, Mar 17, 2014 at 6:15 PM, Udara Rathnayake uda...@wso2.comwrote:


 Hi Inosh,

  On Mon, Mar 17, 2014 at 9:04 PM, Inosh Goonewardena 
 in...@wso2.comwrote:

 On Mon, Mar 17, 2014 at 4:13 PM, Udara Rathnayake uda...@wso2.comwrote:

 Hi Inosh/Maninda,

 As per the chat I had with Maninda I have deployed a toolbox with
 the following content.

 *wso2_social_data_publisher_def*


















 *{'streamId':'org.wso2.social.activity:4.0.0',
 'name':'org.wso2.social.activity','version':'4.0.0',
 'description':
 'store json object and mete-data describing each activity',
 'tags':['social', 'activity'], 'metaData':[],
 'correlationData':[],'payloadData':[
 {'name':'id','type':'STRING'},{'name':'context.id
 http://context.id','type':'STRING'}, {'name':'actor.id
 http://actor.id','type':'STRING'},{'name':'tenant.id
 http://tenant.id','type':'STRING'},
 {'name':'body','type':'STRING'}]}*

 *streams.properties*







 *streams.definitions=defn1streams.definitions.defn1.filename=wso2_social_data_publisher_def
 streams.definitions.defn1.username=adminstreams.definitions.defn1.password=adminstreams.definitions.defn1.description=This
 is the datastream published from wso2
 socialstreams.definitions.defn1.secondaryindexes=context.id
 http://context.id,actor.id http://actor.id,tenant.id 
 http://tenant.id
 streams.definitions.defn1.customindexes=context.id 
 http://context.id,id*

 Then I have published few activities using a simple client.
 Everything(key-space creation, publishing activities) work perfectly
 but I don't see any indexes when I browse the column family though admin
 console.


 In which keyspace did u check? IndexCF name is a random generated
 number and getting created in EVENT_INDEX_KEYSPACE.


 I checked column family information ( EVENT_KS 
 org_wso2_social_activity) where we display Column Name, Validator Type,
 Index Name, Actions details. For every colum index name value is --NOT
 INDEXED--.

 Yes. This is the correct place to check whether secondary indexes have
 been created. In your case it seems they are not created.


 Now I checked key-space information EVENT_INDEX_KS, still I don't see
 any index related information there.


 Here you have the Custom Index CFs. According to the current
 implementation separate CF created per index property.

 Can you share your toolbox with me so that I can have a look.


 Find the attached toolbox.


 Thanks for looking into this.


 I have used  WSO2 BAM 2.4.1 alpha pack for this.

 What am I doing wrong here?

 Regards,
 UdaraR
 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com




 --
 Regards,

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




 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : 

Re: [Dev] Setting up mysql database for ESB sample 364

2014-04-21 Thread Jackie Wheeler
Hi Nisrin,

Please take a look.

Thanks,
Jackie


On Mon, Apr 21, 2014 at 1:49 AM, Dilini Muthumala dil...@wso2.com wrote:

 Copying documentation team...

 Regards,
 Dilini


 On Mon, Apr 21, 2014 at 1:50 PM, Anuruddha Premalal anurud...@wso2.comwrote:

 Hi,

 Instructions for setting up mysql database for sample 
 364https://docs.wso2.org/display/ESB481/Sample+364%3A+Executing+Database+Stored+Proceduresis
  missing from the ESB documentation.

 Herewith I've attached a sql file which can be used to set up the db.

 Regrads,
 --
 Anuruddha Premalal
 Software Engineer, WSO2 Inc.
 Mob : +94 710461070


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




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

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

 --
 You received this message because you are subscribed to the Google Groups
 WSO2 Documentation group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to documentation+unsubscr...@wso2.com.
 For more options, visit https://groups.google.com/a/wso2.com/d/optout.




-- 
*Jackie Wheeler*
VP, Technical Content
WSO2, Inc.
Mobile: +1 510 725-2876
http://wso2.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in sample 271 (WSO2ESB) smooks configuration documentation is not available

2014-04-21 Thread Awanthika Senarath
Hi Harsha,

What i mean is it is not mentioned in the documentation for the sample. As
it does not mention :

a) to create the pointer to the smooks config file in the as a local entry
with smooks.xml
b) to copy the smooks config file in the location pointed

following the documentation gives an error saying cannot smooks config key
not available/missing.


regards
Awanthika


On Mon, Apr 21, 2014 at 11:00 AM, Harsha Kumara hars...@wso2.com wrote:

 There are some config files already there in the distribution. So copying
 only missing ones will be enough.


 On Mon, Apr 21, 2014 at 10:43 AM, Awanthika Senarath 
 awanth...@wso2.comwrote:

 Hi Harsha,

 yes noted. That means we have to copy all the folders as the readme
 suggests and not just the ones that are mentioned in the guide right? .

 Thanks a lot for the input:)

 thanks  regards


 On Mon, Apr 21, 2014 at 10:20 AM, Harsha Kumara hars...@wso2.com wrote:

 Hi Awanthika,
 In samples.zip file link at the beginning of the documentation page
 contains the all the resources need in this sample, it contains that config
 file which you can copy there.
 Thanks,
 Harsha


 On Mon, Apr 21, 2014 at 10:18 AM, Harsha Kumara hars...@wso2.comwrote:

 Hi Awanthika,
 In samples.zip file link at the beginning of the documentation page
 contains the all the resources need in this sample, it contains that config
 file which you can copy there.
 Thanks,
 Harsha


 On Mon, Apr 21, 2014 at 8:29 AM, Awanthika Senarath awanth...@wso2.com
  wrote:

 Hi all,

 In the file processing sample (sample 271) , it is needed to configure
 the smooks config file for CSV parsing, which is not available in the
 documentation. Otherwise it gives an error saying config-key smooks is not
 found.

 The process I followed is

 [1] create the smooks.xml which is given in the attachment in the
 documentation in local-entry folder
 [2] create the smooks-config.xml file with the content attached here
 with for csv parsing in the location mentioned in the smooks.xml in [1]
 [3] copy the smooks libraries as mentioned in the documentation

 Is there any other way to solve this, that is already mentioned int he
 documentation which i have missed?


 regards
 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



 ___
 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




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




 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791





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




-- 
Awanthika Senarath
Software Engineer, WSO2 Inc.
Mobile: +94717681791
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Why do we have servlet transport sender configurations in axis2.xml?

2014-04-21 Thread Vijayaratha Vijayasingam
Hi ;

Is there any reason to have this in axis2.xml(since we use catalina conf
for this)?

thanks.

-- 
-Ratha
mobile: (+94)755906608
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM Interceptor modification]

2014-04-21 Thread Gayan Gunawardana
Hi,

I am working on altering  org.wso2.carbon.apimgt.interceptor component to
support generic API formats. In the available version it supports only one
context noun before version therefore we cannot define APIs like
foo/bar/1.0.0

What I am doing is make it generic to support any sub context after root
context like a/b/c/d/1.0.0

The logic is to compare existing AM_API table records against current
request including version and pick up context, version from database
record. The logic works fine and I had to modify
 interceptorOps.doThrottle(request, accessToken) --
interceptorOps.doThrottle(request, accessToken, context, apiVersion); to
pass context and version
now altered doThrottle method like

public boolean doThrottle(Request request, String accessToken, String
context, String version) throws APIFaultException {

String apiName = context;
String apiVersion = version;
String apiIdentifier = apiName + - + apiVersion;

APIThrottleHandler throttleHandler = null;
ConfigurationContext cc = DataHolder.getServerConfigContext();

 if (cc.getProperty(apiIdentifier) == null) {
throttleHandler = new APIThrottleHandler();
/* Add the Throttle handler to ConfigContext against
API Identifier */
 cc.setProperty(apiIdentifier, throttleHandler);
 } else {
throttleHandler = (APIThrottleHandler)
cc.getProperty(apiIdentifier);
 }

  if (throttleHandler.doThrottle(request, apiKeyValidationDTO,
accessToken)) {
return true;
  } else {
throw new
APIFaultException(APIManagerErrorConstants.API_THROTTLE_OUT,
You have exceeded your
quota);
   }

}

What happen here is ConfigurationContext getting null and throws null
pointer exception. This can be avoided by doing simple null check but will
there be any side effects by doing it ?

If configuration context is null how can I invoke setProperty ?

-- 
Gayan Gunawardana
Software Engineer; WSO2 Inc.; http://wso2.com/
Email: ga...@wso2.com
Mobile: +94 (71) 8020933
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in sample 271 (WSO2ESB) smooks configuration documentation is not available

2014-04-21 Thread Harsha Kumara
Yeah it's needs to be mention in the documentation. It's not specified in
the documentation page. Can you forward this in to the documentation group
and specify what needs to be include in the page. All configs files are
there in the sample.zip folder.So it just needs to copy into the correct
folders.


On Tue, Apr 22, 2014 at 7:58 AM, Awanthika Senarath awanth...@wso2.comwrote:

 Hi Harsha,

 What i mean is it is not mentioned in the documentation for the sample. As
 it does not mention :

 a) to create the pointer to the smooks config file in the as a local entry
 with smooks.xml
 b) to copy the smooks config file in the location pointed

 following the documentation gives an error saying cannot smooks config key
 not available/missing.


 regards
 Awanthika


 On Mon, Apr 21, 2014 at 11:00 AM, Harsha Kumara hars...@wso2.com wrote:

 There are some config files already there in the distribution. So copying
 only missing ones will be enough.


 On Mon, Apr 21, 2014 at 10:43 AM, Awanthika Senarath 
 awanth...@wso2.comwrote:

 Hi Harsha,

 yes noted. That means we have to copy all the folders as the readme
 suggests and not just the ones that are mentioned in the guide right? .

 Thanks a lot for the input:)

 thanks  regards


 On Mon, Apr 21, 2014 at 10:20 AM, Harsha Kumara hars...@wso2.comwrote:

 Hi Awanthika,
 In samples.zip file link at the beginning of the documentation page
 contains the all the resources need in this sample, it contains that config
 file which you can copy there.
 Thanks,
 Harsha


 On Mon, Apr 21, 2014 at 10:18 AM, Harsha Kumara hars...@wso2.comwrote:

 Hi Awanthika,
 In samples.zip file link at the beginning of the documentation page
 contains the all the resources need in this sample, it contains that 
 config
 file which you can copy there.
 Thanks,
 Harsha


 On Mon, Apr 21, 2014 at 8:29 AM, Awanthika Senarath 
 awanth...@wso2.com wrote:

 Hi all,

 In the file processing sample (sample 271) , it is needed to
 configure the smooks config file for CSV parsing, which is not available 
 in
 the documentation. Otherwise it gives an error saying config-key smooks 
 is
 not found.

 The process I followed is

 [1] create the smooks.xml which is given in the attachment in the
 documentation in local-entry folder
 [2] create the smooks-config.xml file with the content attached here
 with for csv parsing in the location mentioned in the smooks.xml in [1]
 [3] copy the smooks libraries as mentioned in the documentation

 Is there any other way to solve this, that is already mentioned int
 he documentation which i have missed?


 regards
 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791



 ___
 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




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




 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791





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




 --
 Awanthika Senarath
 Software Engineer, WSO2 Inc.
 Mobile: +94717681791





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


[Dev] Need help on 'Can not serialize OM Element Envelope' Exception in Axis2

2014-04-21 Thread Supun Sethunga
Hi,

Im trying to create a web-service in Axis2 and access the service from a
client using the stub (which was generated using the wsdl). One of the
methods takes a OMElement as the input parameter. Thus, when I call that
method using the stub, I get the following Exception.












*Exception in thread main java.lang.RuntimeException: Can not serialize
OM Element Envelopeat
org.apache.axiom.om.impl.llom.OMElementImpl.toString(OMElementImpl.java:963)
at java.lang.String.valueOf(String.java:2854)at
java.io.PrintStream.println(PrintStream.java:821)at
client.SecureOrderProcessServiceStub.viewOrder(SecureOrderProcessServiceStub.java:471)
at
client.SecureOrderProcessClient.main(SecureOrderProcessClient.java:31)Caused
by: javax.xml.stream.XMLStreamException: Unknow type can not serialize
at
org.apache.axis2.databinding.utils.ConverterUtil.serializeAnyType(ConverterUtil.java:1491)
at
client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1115)
at
client.SecureOrderProcessServiceStub$ViewOrder.serialize(SecureOrderProcessServiceStub.java:1071)
at
org.apache.axis2.databinding.ADBDataSource.serialize(ADBDataSource.java:90)
*
   


The OMElement which is sent as the parameter, takes the following format.



*ns:viewOrder xmlns:ns=orderprocessorns
ns:orderId0001/ns:orderId/ns:viewOrder*


Any idea whats have been done wrong here?
The other methods in the service stub, which takes data types
int/string/etc as input parameters, work fine.

Thanks,
Supun

-- 
*Supun Sethunga*
Software Engineer
WSO2, Inc.
lean | enterprise | middleware
Mobile : +94 716546324
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Global cluster cache invalidation code review Notes

2014-04-21 Thread Subash Chaturanga
Hi Amal,
Yes we have to push this to carbon kernel git repo and AFAIR we decided to
make this a generic module that can be reused by the platform.   I believe
the package name is also finalized(org.wso2.carbon.caching.invalidator) ?

I think it is better if we can move this in to  carbon4-kernel / core /
org.wso2.carbon.caching.core  and put this under a new package named
invalidator and the package name will be
org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?



On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much time to
 accelerate the process and during the weekend I managed to finish all the
 TODOs. Currently it's not yet in kernal git repo. I have the latest code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 Please let me know into which path I should commit the code and I can add
 it to git repo immediately.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 Let us know once the TODOs done in the code review except the JMS
 alternative discussion.  One of G-Reg RD folk will assign on migrating
 GReg cache invalidation to this pub sub impl.  I hope now your component is
 in the kernel git repo.

 Hi Azeez,Sagara
 Once registry and user permission moved to this impl, it needs quite
 amount of testing  on production aspects. Since this is almost a new
 feature and this leads documentation change in all products
 (mounting/caching) I believe we should not provide this as a patch for a
 customer unless it is really required.








 On Thu, Apr 17, 2014 at 10:37 AM, Amal Gunatilake am...@wso2.com wrote:

 Hi Sagara,

 As Azeez mentioned there is an interface at CarbonUtils named as
 CacheInvalidator. My component will implement this interface. We planned to
 have the interface at CarbonUtils because every product will need this
 service.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 6:03 AM, Afkham Azeez az...@wso2.com wrote:




 On Thu, Apr 17, 2014 at 12:33 AM, Sagara Gunathunga sag...@wso2.comwrote:




 On Wed, Apr 16, 2014 at 2:57 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi All,

 Following updates has been discussed on $subject.

 1) Make the subscription auto subscribe once the jar bundle is
 present.
 2) Check on how to resubscribe if the server goes down and comes up
 3) If the sever goes down when a message receives check whether it
 queues the message and receive.
 4) jndi.properties file

- If the file is already present at conf directory then load the
settings but if the expecting parameters not found put error log and 
 show
the user needed parameters.
- If the file is not present then put the file to conf directory
and log a warning message

 5) It was discussed whether we are going to use AMPQ instead JMS.
 This has to be determined which I will open a separate thread for
 discussion.

 6) Generate UUID and do the message comparison to ignore own messages.

 7) Let the topic name configurable.

 Hi Amal,

 Have you define a clear API and separate it from JMS implementation ?
 IMO having a clear API is must thing for this feature as we may have to
 include some other implementations in future. I'm thinking about SNS based
 implementation for future where EC2 users have freedom to use native
 supported SNS based implementation effectively instead of bringing  and
 configuring another message broker into the deployment setup.


 There is an interface with a single method, and using JMS is just an
 implementation detail of Amal's component.


 Thanks !


 Please update the thread if there are any further updates.

  Thank you   Best regards,

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

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




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




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


 *Lean . Enterprise . Middleware*



 ___
 Dev mailing list
 Dev@wso2.org
 

Re: [Dev] Configuration location for jaggery apps

2014-04-21 Thread Amila Maha Arachchi
On Mon, Apr 21, 2014 at 10:23 PM, Manuranga Perera m...@wso2.com wrote:

 Or cant we create the configurations based on the environment at the
 startup maybe ?  I assume you need to change the hostname/port etc right ?

 I am trying do do this, but direct references to site.json are in lot of
 places (I am looking at APIM store). so to avoid doing lot of custom
 changes, I'll try writing the correct config back to site.json at start-up
 time.


 1. If it is packed with the product, you can simply keep the site.json
 file as a template in puppet or in a suitable way if you are using any
 other config management mechanisms.

 we are tying to avoid situations where things in deployment/server
 directory are managed directly by puppet. because it creates problems with
 multi management node setups, when multiple noes try to commit at start-up.


That issue will come if you start all the management nodes at once, isn't
it? If you start one by one, I don't think such an issue will be there.
Have you tried it?




 --
 With regards,
 *Manu*ranga Perera.

 phone : 071 7 70 20 50
 mail : m...@wso2.com




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


[Dev] Please Trigger a build for drools/6.0.1-wso2v1 in github

2014-04-21 Thread Thilini Ishaka
Hi KasunG,

Please trigger a build for drools/6.0.1-wso2v1 [1].
We made an update on that and need the updated artifacts to go into
wso2-public nexus repo [2].

[1] https://github.com/wso2/orbit/tree/master/drools/6.0.1-wso2v1
[2]
http://maven.wso2.org/nexus/content/groups/wso2-public/org/drools/wso2/drools/6.0.1.wso2v1/


Thanks
Thilini
-- 
Thilini Ishaka
Senior Software Engineer
Phone: +94 11 214 5345
WSO2 Inc. http://wso2.com

blog: thiliniishaka.blogspot.com
linkedin: http://lk.linkedin.com/in/thiliniishaka
twitter: https://twitter.com/#!/ThiliniIsh
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Disable reloading super tenant themes to the registry in each server start

2014-04-21 Thread Sameera Jayasoma
HI AmilaM,

Please see my comments below.


On Sun, Apr 20, 2014 at 12:03 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 Few questions:

 1. How much of an effect you get by this startup delay (I mean in
 seconds)? What will be the advantage of stoping this theme being copied? We
 know, once in production, we do not restart servers frequently. Even if we
 do so, there should be other servers to handle the traffic. So, if we take
 down an instance for maintenance, it shouldn't matter how long it takes to
 start IMO.


Its not really about the performance gain that we are interested in here,
but the deployment process level consistency. In a deployment where 5-6
WSO2 product clusters up and running, we don't need to need to copy themes
to the governance registry every time when every a node restarts. Think of
a deployment where 50-100 servers are running. Do we really need to copy
themes to registry to every time a sever restarts.

What we need is a separate tool for theme deployment whenever there is a
change. In this particular deployment all the tenants have the same these
as the super tenant. So whenever a theme got updated, we have to update all
the tenants. At the moment we don't have a way to achieve that.  Hence we
are in the process of writing a tool.



 2. Does the theme-mgt bundle really needed for products now? This was
 useful when deployed in StratosLive. But do people really care about this?
 What we can gain from this feature is a very minimal change of the theme.


I think this component still has its usages.


Btw Eranda, lets change the name of this parameter to something like
following.

ReloadThemeOnServerRestartfalse/ReloadThemeOnServerRestart

Thanks,
Sameera.


 And I forgot to ask, what is the real problem you are trying to solve with
 this. You have mentioned the cause and the fix only.


 On Sun, Apr 20, 2014 at 12:09 PM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi Azeez,
 I agree that it shouldn't be added to the carbon.xml, but at the current
 moment we don't have a place to keep this value. Shall we go ahead with
 this solution for C4 until we fix it properly in C5?

 thanks
 Eranda


 On Sat, Apr 19, 2014 at 8:31 PM, Afkham Azeez az...@wso2.com wrote:

 I don't like the idea of adding random stuff into the carbon.xml file.
 Anyway, with C5, we will not allow such things. So there should be a
 different way of getting this value.


 On Sat, Apr 19, 2014 at 5:03 AM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi All,
 Currently we are loading super tenant themes to the registry in each
 server startup, when the themes-mgt bundle start. Since this involves
 registry calls this cause considerable startup delay. So here we are
 proposing a configuration which we can enable to stop loading themes.

 Here is the configuration which we will be adding to the carbon.xml

 ReloadThemestrue/ReloadThemes

 There can be several cases,

1. Configuration is not in carbon.xml - This will consider this
configuration value as true and will reload the themes every time start 
 the
server
2. Configuration value true - This will reload the themes every
time start the server
3. Configuration value false -  This will stop updating the themes
in registry every time start the server
4. Configuration value other than true/false - This will consider
this configuration value as false and won't reload the themes.
5. Theme not in the registry - If the theme which is in the file
system is not there in the registry, it will ignore the ReloadThemes
configuration value and add that theme to registry.

 Thoughts?
 Patch attached.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







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


 *Lean . Enterprise . Middleware*




 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/





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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 

Re: [Dev] Disable reloading super tenant themes to the registry in each server start

2014-04-21 Thread Eranda Sooriyabandara
Hi Sameera,


On Tue, Apr 22, 2014 at 10:58 AM, Sameera Jayasoma same...@wso2.com wrote:

 HI AmilaM,

 Please see my comments below.


 On Sun, Apr 20, 2014 at 12:03 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 Few questions:

 1. How much of an effect you get by this startup delay (I mean in
 seconds)? What will be the advantage of stoping this theme being copied? We
 know, once in production, we do not restart servers frequently. Even if we
 do so, there should be other servers to handle the traffic. So, if we take
 down an instance for maintenance, it shouldn't matter how long it takes to
 start IMO.


 Its not really about the performance gain that we are interested in here,
 but the deployment process level consistency. In a deployment where 5-6
 WSO2 product clusters up and running, we don't need to need to copy themes
 to the governance registry every time when every a node restarts. Think of
 a deployment where 50-100 servers are running. Do we really need to copy
 themes to registry to every time a sever restarts.

 What we need is a separate tool for theme deployment whenever there is a
 change. In this particular deployment all the tenants have the same these
 as the super tenant. So whenever a theme got updated, we have to update all
 the tenants. At the moment we don't have a way to achieve that.  Hence we
 are in the process of writing a tool.



 2. Does the theme-mgt bundle really needed for products now? This was
 useful when deployed in StratosLive. But do people really care about this?
 What we can gain from this feature is a very minimal change of the theme.


 I think this component still has its usages.


 Btw Eranda, lets change the name of this parameter to something like
 following.

  ReloadThemeOnServerRestartfalse/ReloadThemeOnServerRestart



+1. This name is more self expressive.

thanks
Erada



 Thanks,
 Sameera.


 And I forgot to ask, what is the real problem you are trying to solve
 with this. You have mentioned the cause and the fix only.


 On Sun, Apr 20, 2014 at 12:09 PM, Eranda Sooriyabandara 
 era...@wso2.comwrote:

 Hi Azeez,
 I agree that it shouldn't be added to the carbon.xml, but at the current
 moment we don't have a place to keep this value. Shall we go ahead with
 this solution for C4 until we fix it properly in C5?

 thanks
 Eranda


 On Sat, Apr 19, 2014 at 8:31 PM, Afkham Azeez az...@wso2.com wrote:

 I don't like the idea of adding random stuff into the carbon.xml file.
 Anyway, with C5, we will not allow such things. So there should be a
 different way of getting this value.


 On Sat, Apr 19, 2014 at 5:03 AM, Eranda Sooriyabandara era...@wso2.com
  wrote:

 Hi All,
 Currently we are loading super tenant themes to the registry in each
 server startup, when the themes-mgt bundle start. Since this involves
 registry calls this cause considerable startup delay. So here we are
 proposing a configuration which we can enable to stop loading themes.

 Here is the configuration which we will be adding to the carbon.xml

 ReloadThemestrue/ReloadThemes

 There can be several cases,

1. Configuration is not in carbon.xml - This will consider this
configuration value as true and will reload the themes every time 
 start the
server
2. Configuration value true - This will reload the themes every
time start the server
3. Configuration value false -  This will stop updating the themes
in registry every time start the server
4. Configuration value other than true/false - This will consider
this configuration value as false and won't reload the themes.
5. Theme not in the registry - If the theme which is in the file
system is not there in the registry, it will ignore the ReloadThemes
configuration value and add that theme to registry.

 Thoughts?
 Patch attached.

 thanks
 Eranda

 --

 *Eranda Sooriyabandara *Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/







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


 *Lean . Enterprise . Middleware*




 --

 *Eranda Sooriyabandara*Senior Software Engineer;
 Integration Technologies Team;
 WSO2 Inc.; http://wso2.com
 Lean . Enterprise . Middleware

 E-mail: eranda AT wso2.com
 Mobile: +94 716 472 816
 Linked-In: http://www.linkedin.com/in/erandasooriyabandara
 Blog: http://emsooriyabandara.blogspot.com/





 

Re: [Dev] Global cluster cache invalidation code review Notes

2014-04-21 Thread Afkham Azeez
On Tue, Apr 22, 2014 at 10:48 AM, Subash Chaturanga sub...@wso2.com wrote:

 Hi Amal,
 Yes we have to push this to carbon kernel git repo and AFAIR we decided to
 make this a generic module that can be reused by the platform.   I believe
 the package name is also finalized(org.wso2.carbon.caching.invalidator) ?

 I think it is better if we can move this in to  carbon4-kernel / core /
 org.wso2.carbon.caching.core  and put this under a new package named
 invalidator and the package name will be
 org.wso2.carbon.caching.core.invalidator . Azeez WDYT ?


I am fine with that as long as the subscription to the topic does not
automatically happen if that code is there. In most cases, we will not need
this global cache invalidation, so that code should not get executed.





 On Mon, Apr 21, 2014 at 2:13 PM, Amal Gunatilake am...@wso2.com wrote:

 Hi Subash,

 Sorry for the delay. Since I'm in support I didn't have much time to
 accelerate the process and during the weekend I managed to finish all the
 TODOs. Currently it's not yet in kernal git repo. I have the latest code in
 https://svn.wso2.org/repos/wso2/scratch/amalg/cache-invalidation-v2/.
 Please let me know into which path I should commit the code and I can add
 it to git repo immediately.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 9:25 PM, Subash Chaturanga sub...@wso2.comwrote:

 Hi Amal,
 Let us know once the TODOs done in the code review except the JMS
 alternative discussion.  One of G-Reg RD folk will assign on migrating
 GReg cache invalidation to this pub sub impl.  I hope now your component is
 in the kernel git repo.

 Hi Azeez,Sagara
 Once registry and user permission moved to this impl, it needs quite
 amount of testing  on production aspects. Since this is almost a new
 feature and this leads documentation change in all products
 (mounting/caching) I believe we should not provide this as a patch for a
 customer unless it is really required.








 On Thu, Apr 17, 2014 at 10:37 AM, Amal Gunatilake am...@wso2.comwrote:

 Hi Sagara,

 As Azeez mentioned there is an interface at CarbonUtils named as
 CacheInvalidator. My component will implement this interface. We planned to
 have the interface at CarbonUtils because every product will need this
 service.

 Thank you   Best regards,

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


 On Thu, Apr 17, 2014 at 6:03 AM, Afkham Azeez az...@wso2.com wrote:




 On Thu, Apr 17, 2014 at 12:33 AM, Sagara Gunathunga 
 sag...@wso2.comwrote:




 On Wed, Apr 16, 2014 at 2:57 PM, Amal Gunatilake am...@wso2.comwrote:

 Hi All,

 Following updates has been discussed on $subject.

 1) Make the subscription auto subscribe once the jar bundle is
 present.
 2) Check on how to resubscribe if the server goes down and comes up
 3) If the sever goes down when a message receives check whether it
 queues the message and receive.
 4) jndi.properties file

- If the file is already present at conf directory then load the
settings but if the expecting parameters not found put error log and 
 show
the user needed parameters.
- If the file is not present then put the file to conf directory
and log a warning message

 5) It was discussed whether we are going to use AMPQ instead JMS.
 This has to be determined which I will open a separate thread for
 discussion.

 6) Generate UUID and do the message comparison to ignore own
 messages.

 7) Let the topic name configurable.

 Hi Amal,

 Have you define a clear API and separate it from JMS implementation ?
 IMO having a clear API is must thing for this feature as we may have to
 include some other implementations in future. I'm thinking about SNS 
 based
 implementation for future where EC2 users have freedom to use native
 supported SNS based implementation effectively instead of bringing  and
 configuring another message broker into the deployment setup.


 There is an interface with a single method, and using JMS is just an
 implementation detail of Amal's component.


 Thanks !


 Please update the thread if there are any further updates.

  Thank you   Best regards,

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

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




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




 --
 *Afkham Azeez*
 Director of Architecture; WSO2, Inc.; http://wso2.com
 Member; Apache Software Foundation; http://www.apache.org/
 * http://www.apache.org/*
 *email: **az...@wso2.com* az...@wso2.com
 * cell: +94 77 3320919 %2B94%2077%203320919 blog: *
 *http://blog.afkham.org* http://blog.afkham.org