[Dev] API manager profiles

2015-04-30 Thread Afkham Azeez
I started the API manager with the gateway-worker profile. However, in the
terminal the following lines were printed


[2015-04-30 12:13:17,299]  INFO - CarbonUIServiceComponent API Publisher
Default Context : http://10.100.1.192:9763/publisher

[2015-04-30 12:13:17,299]  INFO - CarbonUIServiceComponent API Store
Default Context : http://10.100.1.192:9763/store


Before printing these messages, we have to check the profiles. The store 
publisher apps were not deployed though (which is the correct behavior).

-- 
*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 3320919blog: **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


Re: [Dev] [ESB] JMS Inbound Testing Scenario

2015-04-30 Thread Malaka Silva
Hi Vanii,

Please debug [1] and identify the cause of the problem.

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

On Thu, Apr 30, 2015 at 12:28 PM, Vanii Thiyagarajah va...@wso2.com wrote:

 Hi all,

 I am tesing the JMS use case with AcctiveMQ. I got the following error.
 Could you please give me any suggestions on this.

  WARN - JMSConnectionFactory Could not find destination 'ordersQueue' on
 connection factory for 'QueueConnectionFactory'. ordersQueue
 [2015-04-30 11:45:44,418]  INFO - JMSConnectionFactory Creating
 destination 'ordersQueue' on connection factory for 'QueueConnectionFactory.
 [2015-04-30 11:45:44,419*] ERROR - JMSConnectionFactory Created
 'ordersQueue' on connection factory for 'QueueConnectionFactory'.*

 Thank you.



 On Tue, Apr 28, 2015 at 5:39 PM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 Hi all,

 I have started to test the JMS use cases and I am  trying to fix the
 issue in sample 901.

 On Tue, Apr 28, 2015 at 10:29 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 Hi Vanji,

 I have configured  jndi.properties as mentioned in the [1] doc
 [1] http://activemq.apache.org/jndi-support.html
  I got the same error log.

 On Tue, Apr 28, 2015 at 10:15 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 Hi Malaka,

 I am trying to connect with ActiveMQ.

 On Tue, Apr 28, 2015 at 10:13 AM, Malaka Silva mal...@wso2.com wrote:

 Hi vanii,

 Also are you trying to connect to ActiveMQ or WSO2MB here?

 On Tue, Apr 28, 2015 at 10:08 AM, Vanjikumaran Sivajothy 
 va...@wso2.com wrote:

 Hi vanii,

 Can you please double check the jndi.properties for your right
 configuration ?

 On Tue, Apr 28, 2015 at 10:05 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 I am doing Inbound Endpoint JMS Protocol Sample. I got the following
 error. I have done the all configurations as mentioned in the doc [1].
 Could you please give me any suggestions on this?



 https://docs.wso2.com/display/ESB490/Sample+901%3A+Inbound+Endpoint+JMS+Protocol+Sample

  ERROR - JMSConnectionFactoryManager Error setting up connection
 factory : myTopicConnectionFactory
 org.apache.axis2.transport.jms.AxisJMSException: Cannot acquire JNDI
 context, JMS Connection factory : TopicConnectionFactory or default
 destination : null for JMS CF : myTopicConnectionFactory using :
 {java.naming.provider.url=repository/conf/jndi.properties,
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory,
 transport.jms.ConnectionFactoryType=topic,
 transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory}
 at
 org.apache.axis2.transport.jms.JMSConnectionFactory.init(JMSConnectionFactory.java:102)
 at
 org.apache.axis2.transport.jms.JMSConnectionFactoryManager.loadConnectionFactoryDefinitions(JMSConnectionFactoryManager.java:58)
 at
 org.apache.axis2.transport.jms.JMSConnectionFactoryManager.init(JMSConnectionFactoryManager.java:45)
 at
 org.apache.axis2.transport.jms.JMSListener.doInit(JMSListener.java:65)
 at
 org.apache.axis2.transport.base.AbstractTransportListenerEx.init(AbstractTransportListenerEx.java:62)
 at
 org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:84)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:411)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:88)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 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
 

[Dev] Change in createUserAssetManager ?

2015-04-30 Thread Buddhima Wijeweera
Hi All,

Previously we were able to use the following code to insert an RXT instance
dynamically.

var asset = require('rxt').asset;
var am = asset.createUserAssetManager(ctx.session, 'dish');
var assetInstance = {
name: Name with [ ],

attributes: {

overview_name: randomNumber +
descriptorXML.overview.name.text(),

..

}
};

am.create(assetInstance);


But with latest build from ES, we were unable to do so. We get the
following error :

[2015-04-30 12:46:07,159] ERROR
{org.wso2.carbon.registry.eventing.services.EventingServiceImpl} -  Unable
to add subscription
org.wso2.carbon.event.core.exception.EventBrokerException: Topic name
/registry/notifications/StoreLifecycleStateChange/_system/governance/dishes/Name
with [ ] is not a valid topic name. Only alphanumeric characters, hyphens
(-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are
allowed.



So, would like to know, was there a change in createUserAssetManager
method recently?

Thank you!

-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Private Pass] Configurator component (bash) for configuring a given Carbon server

2015-04-30 Thread Anuruddha Liyanarachchi
Hi ,

I am working on $subject. I am trying create a shell script which generate
carbon server configuration based on parameters provided by different run
times.

Configurator is basically configuring perviously used puppet templates
using shell.
Please refer mail thread subject as [PPaaS] Private PaaS 4.1.0 Release
Plan for more info.

I will provide more information as I progress.

-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a thili...@wso2.comnurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Change in createUserAssetManager ?

2015-04-30 Thread Buddhima Wijeweera
Hi Sameera,

The code is related to publisher extension.

Going further down the error in console I can see followings:

[2015-04-30 12:49:55,898] ERROR
{org.wso2.carbon.registry.eventing.services.EventingServiceImpl} -  Unable
to add subscription
org.wso2.carbon.event.core.exception.EventBrokerException: Topic name
/registry/notifications/StoreAssetUpdate/_system/governance/dishes/Name
with [ ] is not a valid topic name. Only alphanumeric characters, hyphens
(-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are
allowed.
at
org.wso2.carbon.event.core.internal.topic.registry.RegistryTopicManager.addTopic(RegistryTopicManager.java:105)


...

[2015-04-30 12:49:56,029] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.solr.common.SolrException: Failure at query [* TO *] (eval
code#1(eval)#348) (/publisher/controllers/assets-router.jag#75)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.apache.solr.common.SolrException: Failure at query [* TO *] (eval
code#1(eval)#348) (/publisher/controllers/assets-router.jag#75)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)


.

Seems this came with an issue related to subscribing to a topic.

At the moment this can be avoided by not using those square-brackets.

Will this going to be a future limitation?

Thank you!


On Thu, Apr 30, 2015 at 1:56 PM, Sameera Medagammaddegedara 
samee...@wso2.com wrote:

 Hi Buddhima,


 We have not done any changes to the create method  recently that would
 effect the above code.Is the above snippet found in a store or publisher
 extension?

 Thank You,
 Sameera

 On Thu, Apr 30, 2015 at 1:02 PM, Buddhima Wijeweera buddh...@wso2.com
 wrote:

 Hi All,

 Previously we were able to use the following code to insert an RXT
 instance dynamically.

 var asset = require('rxt').asset;
 var am = asset.createUserAssetManager(ctx.session, 'dish');
 var assetInstance = {
 name: Name with [ ],

 attributes: {

 overview_name: randomNumber +
 descriptorXML.overview.name.text(),

 ..

 }
 };

 am.create(assetInstance);


 But with latest build from ES, we were unable to do so. We get the
 following error :

 [2015-04-30 12:46:07,159] ERROR
 {org.wso2.carbon.registry.eventing.services.EventingServiceImpl} -  Unable
 to add subscription
 org.wso2.carbon.event.core.exception.EventBrokerException: Topic name
 /registry/notifications/StoreLifecycleStateChange/_system/governance/dishes/Name
 with [ ] is not a valid topic name. Only alphanumeric characters, hyphens
 (-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are
 allowed.



 So, would like to know, was there a change in createUserAssetManager
 method recently?

 Thank you!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima




 --
 Sameera Medagammaddegedara
 Software Engineer

 Contact:
 Email: samee...@wso2.com
 Mobile: + 94 077 255 3005




-- 
Buddhima Wijeweera
Software Engineer; WSO2 Inc.; http://wso2.com ,

Mobile: +94 71 427 9966
Email: buddh...@wso2.com
Blog:   https://buddhimawijeweera.wordpress.com
GitHub Profile: https://github.com/Buddhima
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppM] [EMM] Patch for EMM to work with AppM 1.0.0

2015-04-30 Thread Chathura Dilan
you can follow this[1] documentation for EMM integration.

[1] -
https://docs.wso2.com/display/APPM100/Integrating+a+Mobile+Device+Manager

On Thu, Apr 2, 2015 at 11:59 AM, Chathura Dilan chathu...@wso2.com wrote:

 Hi Yasassri,

 I attached the README with the task

 On Thu, Apr 2, 2015 at 11:23 AM, Yasassri Ratnayake yasas...@wso2.com
 wrote:

 Hi Chathura,

 I'm unable to find a READ-ME file in the patch. Can you kindly point me
 to the correct location if I have missed it. If its not there can we add a
 Read-Me with the instructions?

 With Regards,

 On Thu, Apr 2, 2015 at 11:18 AM, Chathura Dilan chathu...@wso2.com
 wrote:

 Hi All,

 I have created patch for EMM 1.1.0 to work it with AppM 1.0.0. You can
 find the patch from this JIRA[1]


 [1] - https://wso2.org/jira/browse/APPM-692


 --
 Regards,

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




 --
 Yasassri Ratnayake
 Software Engineer - QA
 WSO2 Inc ; http://wso2.com
 lean.enterprise.middleware
 *Mobile : +94715933168 %2B94715933168*
 *Blog : http://yasassriratnayake.blogspot.com/
 http://yasassriratnayake.blogspot.com/*




 --
 Regards,

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




-- 
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] [ESB] JMS Inbound Testing Scenario

2015-04-30 Thread Vanii Thiyagarajah
Hi all,

I am tesing the JMS use case with AcctiveMQ. I got the following error.
Could you please give me any suggestions on this.

 WARN - JMSConnectionFactory Could not find destination 'ordersQueue' on
connection factory for 'QueueConnectionFactory'. ordersQueue
[2015-04-30 11:45:44,418]  INFO - JMSConnectionFactory Creating destination
'ordersQueue' on connection factory for 'QueueConnectionFactory.
[2015-04-30 11:45:44,419*] ERROR - JMSConnectionFactory Created
'ordersQueue' on connection factory for 'QueueConnectionFactory'.*

Thank you.



On Tue, Apr 28, 2015 at 5:39 PM, Vanii Thiyagarajah va...@wso2.com wrote:

 Hi all,

 I have started to test the JMS use cases and I am  trying to fix the issue
 in sample 901.

 On Tue, Apr 28, 2015 at 10:29 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 Hi Vanji,

 I have configured  jndi.properties as mentioned in the [1] doc
 [1] http://activemq.apache.org/jndi-support.html
  I got the same error log.

 On Tue, Apr 28, 2015 at 10:15 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 Hi Malaka,

 I am trying to connect with ActiveMQ.

 On Tue, Apr 28, 2015 at 10:13 AM, Malaka Silva mal...@wso2.com wrote:

 Hi vanii,

 Also are you trying to connect to ActiveMQ or WSO2MB here?

 On Tue, Apr 28, 2015 at 10:08 AM, Vanjikumaran Sivajothy 
 va...@wso2.com wrote:

 Hi vanii,

 Can you please double check the jndi.properties for your right
 configuration ?

 On Tue, Apr 28, 2015 at 10:05 AM, Vanii Thiyagarajah va...@wso2.com
 wrote:

 I am doing Inbound Endpoint JMS Protocol Sample. I got the following
 error. I have done the all configurations as mentioned in the doc [1].
 Could you please give me any suggestions on this?



 https://docs.wso2.com/display/ESB490/Sample+901%3A+Inbound+Endpoint+JMS+Protocol+Sample

  ERROR - JMSConnectionFactoryManager Error setting up connection
 factory : myTopicConnectionFactory
 org.apache.axis2.transport.jms.AxisJMSException: Cannot acquire JNDI
 context, JMS Connection factory : TopicConnectionFactory or default
 destination : null for JMS CF : myTopicConnectionFactory using :
 {java.naming.provider.url=repository/conf/jndi.properties,
 java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory,
 transport.jms.ConnectionFactoryType=topic,
 transport.jms.ConnectionFactoryJNDIName=TopicConnectionFactory}
 at
 org.apache.axis2.transport.jms.JMSConnectionFactory.init(JMSConnectionFactory.java:102)
 at
 org.apache.axis2.transport.jms.JMSConnectionFactoryManager.loadConnectionFactoryDefinitions(JMSConnectionFactoryManager.java:58)
 at
 org.apache.axis2.transport.jms.JMSConnectionFactoryManager.init(JMSConnectionFactoryManager.java:45)
 at
 org.apache.axis2.transport.jms.JMSListener.doInit(JMSListener.java:65)
 at
 org.apache.axis2.transport.base.AbstractTransportListenerEx.init(AbstractTransportListenerEx.java:62)
 at
 org.apache.axis2.engine.ListenerManager.init(ListenerManager.java:84)
 at
 org.wso2.carbon.core.init.CarbonServerManager.initializeCarbon(CarbonServerManager.java:411)
 at
 org.wso2.carbon.core.init.CarbonServerManager.start(CarbonServerManager.java:219)
 at
 org.wso2.carbon.core.internal.CarbonCoreServiceComponent.activate(CarbonCoreServiceComponent.java:88)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 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
 

Re: [Dev] Android Operation APIs

2015-04-30 Thread Dulitha Wijewantha
On Thu, Apr 30, 2015 at 2:35 PM, Prabath Abeysekera praba...@wso2.com
wrote:

 Hi Milan,

 On Thu, Apr 30, 2015 at 2:13 PM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 I have added features to the relevant table. Please find the PR[1].


 The way this's already been done doesn't seem to be right. IMO, persisting
 the feature metadata corresponding to a particular device platform needs to
 be done at the point where the plugin gets registered into the device
 management framework. The current approach hides some part of business
 logic (registering device specific feature metadata) within the database
 layer as the same is done through a SQL script, which should ideally have
 been captured in the plug-in implementation itself. Please review this
 again and try to get things improved along the approach suggested above.

​Are you saying to have another script to register features separately for
each plugin?

Also Dilshan/Milan can you please update this sheet [1] with the Operation
Constants so that we can make it similar as much as possible.

[1] -
https://docs.google.com/a/wso2.com/spreadsheets/d/1MSKfzHigj6JBgW5EiH4O08A7s4owl43S9oUlx-T8Gvo/edit?usp=sharing
​


 Cheers,
 Prabath



 [1] https://github.com/wso2/carbon-device-mgt-plugins/pull/4

 Regards,

 On Thu, Apr 30, 2015 at 9:51 AM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 Features have not been added yet. Will do ASAP.

 Regards,

 On Thu, Apr 30, 2015 at 7:51 AM, Dulitha Wijewantha duli...@wso2.com
 wrote:

 Hi Milan,
 Have the features been added to the database? (Last time I checked,
 features weren't available in the database).
 Cheers~

 On Thu, Apr 30, 2015 at 3:12 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Milan, please share this via dev@.

 On Thu, Apr 30, 2015 at 1:12 AM, Milan Perera mi...@wso2.com wrote:

 Hi all,

 $subject can be found here:
 https://docs.google.com/a/wso2.com/document/d/1D5tcSh-uAT28e2nDLUzd4TQ-ohH27onekgS0E73CVHg/edit?usp=sharing

 Thanks,

 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




-- 
Dulitha Wijewantha (Chan)
Software Engineer - Mobile Development
WSO2 Inc
Lean.Enterprise.Middleware
 * ~Email   duli...@wso2.com duli...@wso2mobile.com*
*  ~Mobile +94712112165*
*  ~Website   dulitha.me http://dulitha.me*
*  ~Twitter @dulitharw https://twitter.com/dulitharw*
  *~Github @dulichan https://github.com/dulichan*
  *~SO @chan http://stackoverflow.com/users/813471/chan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Android Operation APIs

2015-04-30 Thread Dilshan Edirisuriya
Hi Prabath,

Yest its the plan. This is added as temporarily until we get that code
portion working.

Regards,

Dilshan

On Thu, Apr 30, 2015 at 2:57 PM, Prabath Abeysekera praba...@wso2.com
wrote:


 On Thu, Apr 30, 2015 at 2:54 PM, Dulitha Wijewantha duli...@wso2.com
 wrote:



 On Thu, Apr 30, 2015 at 2:35 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Milan,

 On Thu, Apr 30, 2015 at 2:13 PM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 I have added features to the relevant table. Please find the PR[1].


 The way this's already been done doesn't seem to be right. IMO,
 persisting the feature metadata corresponding to a particular device
 platform needs to be done at the point where the plugin gets registered
 into the device management framework. The current approach hides some part
 of business logic (registering device specific feature metadata) within the
 database layer as the same is done through a SQL script, which should
 ideally have been captured in the plug-in implementation itself. Please
 review this again and try to get things improved along the approach
 suggested above.

 ​Are you saying to have another script to register features separately
 for each plugin?


 What I am suggesting is to get rid of all the scripts that are currently
 used to persist metadata altogether.

 Cheers,
 Prabath



 Also Dilshan/Milan can you please update this sheet [1] with the
 Operation Constants so that we can make it similar as much as possible.

 [1] -
 https://docs.google.com/a/wso2.com/spreadsheets/d/1MSKfzHigj6JBgW5EiH4O08A7s4owl43S9oUlx-T8Gvo/edit?usp=sharing
 ​


 Cheers,
 Prabath



 [1] https://github.com/wso2/carbon-device-mgt-plugins/pull/4

 Regards,

 On Thu, Apr 30, 2015 at 9:51 AM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 Features have not been added yet. Will do ASAP.

 Regards,

 On Thu, Apr 30, 2015 at 7:51 AM, Dulitha Wijewantha duli...@wso2.com
 wrote:

 Hi Milan,
 Have the features been added to the database? (Last time I checked,
 features weren't available in the database).
 Cheers~

 On Thu, Apr 30, 2015 at 3:12 AM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Milan, please share this via dev@.

 On Thu, Apr 30, 2015 at 1:12 AM, Milan Perera mi...@wso2.com
 wrote:

 Hi all,

 $subject can be found here:
 https://docs.google.com/a/wso2.com/document/d/1D5tcSh-uAT28e2nDLUzd4TQ-ohH27onekgS0E73CVHg/edit?usp=sharing

 Thanks,

 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




-- 
Dilshan Edirisuriya
Senior Software Engineer - WSO2
Mob: + 94 777878905
http://wso2.com/
https://www.linkedin.com/profile/view?id=50486426
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [IS] Review and Merge

2015-04-30 Thread Damith Senanayake
Hi,

Fix for [1] available at [2]
[1] https://wso2.org/jira/browse/IDENTITY-3235
[2]https://github.com/wso2/carbon-identity/pull/245

-- 
*-Damith Senanayake-*
+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Android Operation APIs

2015-04-30 Thread Prabath Abeysekera
Hi Milan,

On Thu, Apr 30, 2015 at 2:13 PM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 I have added features to the relevant table. Please find the PR[1].


The way this's already been done doesn't seem to be right. IMO, persisting
the feature metadata corresponding to a particular device platform needs to
be done at the point where the plugin gets registered into the device
management framework. The current approach hides some part of business
logic (registering device specific feature metadata) within the database
layer as the same is done through a SQL script, which should ideally have
been captured in the plug-in implementation itself. Please review this
again and try to get things improved along the approach suggested above.

Cheers,
Prabath



 [1] https://github.com/wso2/carbon-device-mgt-plugins/pull/4

 Regards,

 On Thu, Apr 30, 2015 at 9:51 AM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 Features have not been added yet. Will do ASAP.

 Regards,

 On Thu, Apr 30, 2015 at 7:51 AM, Dulitha Wijewantha duli...@wso2.com
 wrote:

 Hi Milan,
 Have the features been added to the database? (Last time I checked,
 features weren't available in the database).
 Cheers~

 On Thu, Apr 30, 2015 at 3:12 AM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Milan, please share this via dev@.

 On Thu, Apr 30, 2015 at 1:12 AM, Milan Perera mi...@wso2.com wrote:

 Hi all,

 $subject can be found here:
 https://docs.google.com/a/wso2.com/document/d/1D5tcSh-uAT28e2nDLUzd4TQ-ohH27onekgS0E73CVHg/edit?usp=sharing

 Thanks,

 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Documenting Siddhi Extensions

2015-04-30 Thread Sajith Ravindra
+1 looks comprehensive.

Thanks
*,Sajith Ravindra*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/
http://lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

On Thu, Apr 30, 2015 at 2:48 PM, Lasantha Fernando lasan...@wso2.com
wrote:

 +1 from me. Looks readable and concise, and we seem to have covered for
 most requirements as well with optional fields as well.

 On 30 April 2015 at 13:04, Sriskandarajah Suhothayan s...@wso2.com
 wrote:


 On Wed, Apr 29, 2015 at 11:52 PM, Tishan Dahanayakage tis...@wso2.com
 wrote:

 What about adding sample query segment showing usage of extension. Or
 point to another page which describe 'Working with Siddhi Extensions'

 We can use the Examples section for that

 So how about the following model

 *abs*(a *int,long,float,double*)

-

Extension Type: Function
- Description: Returns the absolute value of 'a'
- Parameter a: (optional)
- Return Type(s): double
- Example: (optional) The absolute value of 3 is 3, and the absolute
value of −3 is also 3


 We can use the following model and if the Parameter is very complex we
 will use is separately and if example make sense we can use that too,

 WDYT

 Suho

 .

 Thanks,
 Tishan

 On Wed, Apr 29, 2015 at 10:26 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:



 On Wed, Apr 29, 2015 at 9:28 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,
 I like the format. Would like to suggest an improvement, marked in
 blue:
 Math

 abs(a double/int/float/long)

- Extension Type: Function
- Description: Returns the absolute value of 'a'.
- Return Type(s): double
- Example: abs(3) returns 3, and abs(−3) also returns 3.


 +1 for  Description and Example

 Example field could be optional.

 Thanks,
 Dilini

 On Wed, Apr 29, 2015 at 9:18 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:

 Hi all

 Recently we have implemented several Siddhi extensions and we thought
 of documenting them as here[1]

 Please provide you feedback on the format.

 If we need to change the format we have to change it fast else after
 adding all the functions it will be very hard to change the format.

 Regards
 Suho

 [1]https://docs.wso2.com/display/CEP400/Siddhi+Extentisions
 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | 
 linked-in:
 http://lk.linkedin.com/in/suhothayan 
 http://lk.linkedin.com/in/suhothayan*




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

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




 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 http://lk.linkedin.com/in/suhothayan*




 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

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




 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




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


Re: [Dev] Documenting Siddhi Extensions

2015-04-30 Thread Sriskandarajah Suhothayan
On Wed, Apr 29, 2015 at 11:52 PM, Tishan Dahanayakage tis...@wso2.com
wrote:

 What about adding sample query segment showing usage of extension. Or
 point to another page which describe 'Working with Siddhi Extensions'

We can use the Examples section for that

So how about the following model

*abs*(a *int,long,float,double*)

   -

   Extension Type: Function
   - Description: Returns the absolute value of 'a'
   - Parameter a: (optional)
   - Return Type(s): double
   - Example: (optional) The absolute value of 3 is 3, and the absolute
   value of −3 is also 3


We can use the following model and if the Parameter is very complex we will
use is separately and if example make sense we can use that too,

WDYT

Suho

 .

 Thanks,
 Tishan

 On Wed, Apr 29, 2015 at 10:26 AM, Sriskandarajah Suhothayan s...@wso2.com
  wrote:



 On Wed, Apr 29, 2015 at 9:28 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,
 I like the format. Would like to suggest an improvement, marked in blue:
 Math

 abs(a double/int/float/long)

- Extension Type: Function
- Description: Returns the absolute value of 'a'.
- Return Type(s): double
- Example: abs(3) returns 3, and abs(−3) also returns 3.


 +1 for  Description and Example

 Example field could be optional.

 Thanks,
 Dilini

 On Wed, Apr 29, 2015 at 9:18 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:

 Hi all

 Recently we have implemented several Siddhi extensions and we thought
 of documenting them as here[1]

 Please provide you feedback on the format.

 If we need to change the format we have to change it fast else after
 adding all the functions it will be very hard to change the format.

 Regards
 Suho

 [1]https://docs.wso2.com/display/CEP400/Siddhi+Extentisions
 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 http://lk.linkedin.com/in/suhothayan*




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

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




 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

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




-- 

*S. Suhothayan*
Technical Lead  Team Lead of WSO2 Complex Event Processor
 *WSO2 Inc. *http://wso2.com
* http://wso2.com/*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
http://suhothayan.blogspot.com/twitter: http://twitter.com/suhothayan
http://twitter.com/suhothayan | linked-in:
http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Documenting Siddhi Extensions

2015-04-30 Thread Lasantha Fernando
+1 from me. Looks readable and concise, and we seem to have covered for
most requirements as well with optional fields as well.

On 30 April 2015 at 13:04, Sriskandarajah Suhothayan s...@wso2.com wrote:


 On Wed, Apr 29, 2015 at 11:52 PM, Tishan Dahanayakage tis...@wso2.com
 wrote:

 What about adding sample query segment showing usage of extension. Or
 point to another page which describe 'Working with Siddhi Extensions'

 We can use the Examples section for that

 So how about the following model

 *abs*(a *int,long,float,double*)

-

Extension Type: Function
- Description: Returns the absolute value of 'a'
- Parameter a: (optional)
- Return Type(s): double
- Example: (optional) The absolute value of 3 is 3, and the absolute
value of −3 is also 3


 We can use the following model and if the Parameter is very complex we
 will use is separately and if example make sense we can use that too,

 WDYT

 Suho

 .

 Thanks,
 Tishan

 On Wed, Apr 29, 2015 at 10:26 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:



 On Wed, Apr 29, 2015 at 9:28 PM, Dilini Muthumala dil...@wso2.com
 wrote:

 Hi,
 I like the format. Would like to suggest an improvement, marked in blue:
 Math

 abs(a double/int/float/long)

- Extension Type: Function
- Description: Returns the absolute value of 'a'.
- Return Type(s): double
- Example: abs(3) returns 3, and abs(−3) also returns 3.


 +1 for  Description and Example

 Example field could be optional.

 Thanks,
 Dilini

 On Wed, Apr 29, 2015 at 9:18 AM, Sriskandarajah Suhothayan 
 s...@wso2.com wrote:

 Hi all

 Recently we have implemented several Siddhi extensions and we thought
 of documenting them as here[1]

 Please provide you feedback on the format.

 If we need to change the format we have to change it fast else after
 adding all the functions it will be very hard to change the format.

 Regards
 Suho

 [1]https://docs.wso2.com/display/CEP400/Siddhi+Extentisions
 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan 
 http://lk.linkedin.com/in/suhothayan*




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

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




 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




 --
 Tishan Dahanayakage
 Software Engineer
 WSO2, Inc.
 Mobile:+94 716481328

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




 --

 *S. Suhothayan*
 Technical Lead  Team Lead of WSO2 Complex Event Processor
  *WSO2 Inc. *http://wso2.com
 * http://wso2.com/*
 lean . enterprise . middleware


 *cell: (+94) 779 756 757 %28%2B94%29%20779%20756%20757 | blog:
 http://suhothayan.blogspot.com/ http://suhothayan.blogspot.com/twitter:
 http://twitter.com/suhothayan http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan http://lk.linkedin.com/in/suhothayan*




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


[Dev] Please review and merge

2015-04-30 Thread Milan Perera
Hi,

Please review and merge PR[1]

[1] https://github.com/wso2/carbon-device-mgt/pull/6

-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware
http://lk.linkedin.com/in/milanharinduperera
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Change in createUserAssetManager ?

2015-04-30 Thread Sameera Medagammaddegedara
Hi Buddhima,


We have not done any changes to the create method  recently that would
effect the above code.Is the above snippet found in a store or publisher
extension?

Thank You,
Sameera

On Thu, Apr 30, 2015 at 1:02 PM, Buddhima Wijeweera buddh...@wso2.com
wrote:

 Hi All,

 Previously we were able to use the following code to insert an RXT
 instance dynamically.

 var asset = require('rxt').asset;
 var am = asset.createUserAssetManager(ctx.session, 'dish');
 var assetInstance = {
 name: Name with [ ],

 attributes: {

 overview_name: randomNumber +
 descriptorXML.overview.name.text(),

 ..

 }
 };

 am.create(assetInstance);


 But with latest build from ES, we were unable to do so. We get the
 following error :

 [2015-04-30 12:46:07,159] ERROR
 {org.wso2.carbon.registry.eventing.services.EventingServiceImpl} -  Unable
 to add subscription
 org.wso2.carbon.event.core.exception.EventBrokerException: Topic name
 /registry/notifications/StoreLifecycleStateChange/_system/governance/dishes/Name
 with [ ] is not a valid topic name. Only alphanumeric characters, hyphens
 (-), stars(*), hash(#) ,dot(.),question mark(?) and underscores (_) are
 allowed.



 So, would like to know, was there a change in createUserAssetManager
 method recently?

 Thank you!

 --
 Buddhima Wijeweera
 Software Engineer; WSO2 Inc.; http://wso2.com ,

 Mobile: +94 71 427 9966
 Email: buddh...@wso2.com
 Blog:   https://buddhimawijeweera.wordpress.com
 GitHub Profile: https://github.com/Buddhima




-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Android Operation APIs

2015-04-30 Thread Prabath Abeysekera
On Thu, Apr 30, 2015 at 2:54 PM, Dulitha Wijewantha duli...@wso2.com
wrote:



 On Thu, Apr 30, 2015 at 2:35 PM, Prabath Abeysekera praba...@wso2.com
 wrote:

 Hi Milan,

 On Thu, Apr 30, 2015 at 2:13 PM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 I have added features to the relevant table. Please find the PR[1].


 The way this's already been done doesn't seem to be right. IMO,
 persisting the feature metadata corresponding to a particular device
 platform needs to be done at the point where the plugin gets registered
 into the device management framework. The current approach hides some part
 of business logic (registering device specific feature metadata) within the
 database layer as the same is done through a SQL script, which should
 ideally have been captured in the plug-in implementation itself. Please
 review this again and try to get things improved along the approach
 suggested above.

 ​Are you saying to have another script to register features separately for
 each plugin?


What I am suggesting is to get rid of all the scripts that are currently
used to persist metadata altogether.

Cheers,
Prabath



 Also Dilshan/Milan can you please update this sheet [1] with the Operation
 Constants so that we can make it similar as much as possible.

 [1] -
 https://docs.google.com/a/wso2.com/spreadsheets/d/1MSKfzHigj6JBgW5EiH4O08A7s4owl43S9oUlx-T8Gvo/edit?usp=sharing
 ​


 Cheers,
 Prabath



 [1] https://github.com/wso2/carbon-device-mgt-plugins/pull/4

 Regards,

 On Thu, Apr 30, 2015 at 9:51 AM, Milan Perera mi...@wso2.com wrote:

 Hi Dulitha,

 Features have not been added yet. Will do ASAP.

 Regards,

 On Thu, Apr 30, 2015 at 7:51 AM, Dulitha Wijewantha duli...@wso2.com
 wrote:

 Hi Milan,
 Have the features been added to the database? (Last time I checked,
 features weren't available in the database).
 Cheers~

 On Thu, Apr 30, 2015 at 3:12 AM, Prabath Abeysekera praba...@wso2.com
  wrote:

 Milan, please share this via dev@.

 On Thu, Apr 30, 2015 at 1:12 AM, Milan Perera mi...@wso2.com wrote:

 Hi all,

 $subject can be found here:
 https://docs.google.com/a/wso2.com/document/d/1D5tcSh-uAT28e2nDLUzd4TQ-ohH27onekgS0E73CVHg/edit?usp=sharing

 Thanks,

 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Milan Harindu Perera
 Software Engineer
 *WSO2, Inc*
 (+94) 77 309 7088
 lean . enterprise . middleware
 http://lk.linkedin.com/in/milanharinduperera




 --
 Prabath Abeysekara
 Technical Lead
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471




 --
 Dulitha Wijewantha (Chan)
 Software Engineer - Mobile Development
 WSO2 Inc
 Lean.Enterprise.Middleware
  * ~Email   duli...@wso2.com duli...@wso2mobile.com*
 *  ~Mobile +94712112165 %2B94712112165*
 *  ~Website   dulitha.me http://dulitha.me*
 *  ~Twitter @dulitharw https://twitter.com/dulitharw*
   *~Github @dulichan https://github.com/dulichan*
   *~SO @chan http://stackoverflow.com/users/813471/chan*




-- 
Prabath Abeysekara
Technical Lead
WSO2 Inc.
Email: praba...@wso2.com
Mobile: +94774171471
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Updated Invitation: [Code Review][AppM]Sample Deploy @ Tue May 5 3pm - Sun May 10, 2015 4pm (sachi...@wso2.com)

2015-04-30 Thread sachi...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20150505T093000Z
DTEND:20150510T103000Z
DTSTAMP:20150430T103129Z
ORGANIZER;CN=Sachith Herath:mailto:sachi...@wso2.com
UID:vf8ih78ccpomrkgep0lrec6...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Binali Perera;X-NUM-GUESTS=0:mailto:bin...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Sachith Herath;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lahiru Cooray;X-NUM-GUESTS=0:mailto:lahi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chathura Dilan;X-NUM-GUESTS=0:mailto:chathu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20150429T031628Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEWeid=dmY4aWg3OGNjcG9tcmtnZXAwbHJlYzZsbTAgZGV2QHdzbzIub3Jntok=MTcjc2Fj
 aGl0aHVAd3NvMi5jb20yNzE1NTAxZTY4ZGRmYWI0OTE1MWYzNDljNmFhNDc0YzEwZTkzNTFhct
 z=Asia/Colombohl=en.
LAST-MODIFIED:20150430T103129Z
LOCATION:LK 3rd Floor Meeting Room - Kernel
SEQUENCE:2
STATUS:CONFIRMED
SUMMARY:[Code Review][AppM]Sample Deploy
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] [ESB+MB] JMSSender Did not receive a JMS response

2015-04-30 Thread Hemika Kodikara
Hi Suhan,

I believe we have to add the following to the inSequence.

property name=OUT_ONLY value=true/

Implying that it is a one way message.

Also see : https://docs.wso2.com/display/MB220/Integrating+WSO2+ESB

Regards,
Hemika

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

Mobile : +9477762

On Wed, Apr 29, 2015 at 11:56 AM, Suhan Dharmasuriya suh...@wso2.com
wrote:

 Hi,

 I'm using MB 2.2.0 with ESB 4.8.1 for a specific use case.

 I'm using a proxy for the scenario [1].
 After processing payload from several class mediators (included in
 registry as sequences)
 I'm sending the messages to a MB Queue.

 Message is sent and can be seen in Queue as expected but I'm getting this
 error printed in ESB console [2].
 Please note that this error does not break the mediation flow.

 Is this caused by any missing configuration in proxy service?

 [1]
 proxy name=UC1_MessageProcessorAndQueue
   transports=https
   startOnLoad=true
   trace=disable
   description/
   target
  inSequence
 property name=FORCE_SC_ACCEPTED value=true scope=axis2/
 sequence key=conf:/BackendServiceMsgProcessorSequence/
  /inSequence
  outSequence
 sequence key=conf:/PayloadProcessorSequence/
 send
endpoint
   address
 uri=jms:/messageQueue?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactoryamp;java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactoryamp;java.naming.provider.url=repository/conf/jndi.propertiesamp;transport.jms.DestinationType=queue/
/endpoint
 /send
  /outSequence
   /target
   policy
 key=conf:/repository/axis2/service-groups/UC1_MessageProcessorAndQueue/services/UC1_MessageProcessorAndQueue/policies/policyFromRegistry/
   parameter name=disableRESTtrue/parameter
   parameter name=ScenarioIDpolicyFromRegistry/parameter
   parameter
 name=secPolicyRegistryPathconf:/policy/UTOverTransport.xml/parameter
   enableSec/
/proxy

 [2]
 [2015-04-23 23:25:18,209] DEBUG - wire  ?xml version=1.0
 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/; xmlns:esb=http://esb.wso2.org;
 xmlns:soap=soapsoapenv:Header[\n]
 [2015-04-23 23:25:18,210] DEBUG - wire[\n]
 [2015-04-23 23:25:18,210] DEBUG - wire  
 /soapenv:Headersoapenv:Body[\n]
 [2015-04-23 23:25:18,210] DEBUG - wireesb:serviceMethod[\n]
 [2015-04-23 23:25:18,210] DEBUG - wire  0[\r][\n]
 [2015-04-23 23:25:18,215] DEBUG - wire  [\r][\n]
 [2015-04-23 23:25:18,215] DEBUG - wire   [\n]
 [2015-04-23 23:25:18,215] DEBUG - wire  
  esb:args0ABCDEF/esb:args0/esb:serviceMethod[\n]
 [2015-04-23 23:25:18,215] DEBUG - wire  
 /soapenv:Body/soapenv:Envelope[\r][\n]
 [2015-04-23 23:25:18,215] DEBUG - wire  0[\r][\n]
 [2015-04-23 23:25:18,215] DEBUG - wire  [\r][\n]
 [2015-04-23 23:25:18,250] DEBUG - wire  HTTP/1.1 200 OK[\r][\n]
 [2015-04-23 23:25:18,250] DEBUG - wire  Content-Type: text/xml;
 charset=UTF-8[\r][\n]
 [2015-04-23 23:25:18,250] DEBUG - wire  Date: Thu, 23 Apr 2015 17:55:18
 GMT[\r][\n]
 [2015-04-23 23:25:18,250] DEBUG - wire  Transfer-Encoding:
 chunked[\r][\n]
 [2015-04-23 23:25:18,250] DEBUG - wire  Connection: Keep-Alive[\r][\n]
 [2015-04-23 23:25:18,251] DEBUG - wire  [\r][\n]
 [2015-04-23 23:25:18,252] DEBUG - wire  113[\r][\n]
 [2015-04-23 23:25:18,253] DEBUG - wire  ?xml version=1.0
 encoding=UTF-8?soapenv:Envelope xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;soapenv:Bodyns:serviceMethodResponse
 xmlns:ns=http://esb.wso2.org
 ns:returnPQRXYZ/ns:return/ns:serviceMethodResponse/soapenv:Body/soapenv:Envelope[\r][\n]
 [2015-04-23 23:25:18,254] DEBUG - wire  0[\r][\n]
 [2015-04-23 23:25:18,254] DEBUG - wire  [\r][\n]
 soapbody007: soapenv:Body xmlns:soapenv=
 http://schemas.xmlsoap.org/soap/envelope/;ns:serviceMethodResponse
 xmlns:ns=http://esb.wso2.org
 ns:returnPQRXYZ/ns:return/ns:serviceMethodResponse/soapenv:Body
 return: PQRXYZ
 [2015-04-23 23:25:18,266]  INFO - LogMediator elementA = PQR, elementB =
 XYZ
 [2015-04-23 23:25:48,579] ERROR - *JMSSender Did not receive a JMS
 response within 3 ms to destination* :
 direct://amq.direct/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933?routingkey='TempQueuee24f5f02-9531-4e88-ba18-834f179c9933'exclusive='true'autodelete='true'
 with JMS correlation ID : ID:36ba5b5f-ec5c-3040-b5a7-1ca722f2e379
 [2015-04-23 23:25:48,611] ERROR - Axis2Sender Unexpected error during
 sending message out
 org.apache.axis2.AxisFault: Did not receive a JMS response within 3 ms
 to destination :
 direct://amq.direct/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933/TempQueuee24f5f02-9531-4e88-ba18-834f179c9933?routingkey='TempQueuee24f5f02-9531-4e88-ba18-834f179c9933'exclusive='true'autodelete='true'
 with JMS correlation ID : 

[Dev] [AS/Carbon] Please Review and Merge

2015-04-30 Thread Thusitha Thilina Dayaratne
Hi,

Please review and merged the following PR[1]
[1] - https://github.com/wso2/product-as/pull/59

Thanks
Best Regards

-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please review and merge the pull request

2015-04-30 Thread Lasitha Wattaladeniya
Hi,

This is the fix [1] for the Jira [2]. Please review and merge.

[1]. https://wso2.org/jira/browse/IDENTITY-3229
[2]. https://github.com/wso2/carbon-identity/pull/241/

Thanks.

-- 
Lasitha Wattaladeniya
Software Engineer
WSO2, Inc. | http://wso2.com
lean. enterprise. middleware

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


Re: [Dev] [IS] Review and Merge

2015-04-30 Thread Damith Senanayake
Please pardon the mistake. The pull request is as follows :
https://github.com/wso2/carbon-identity/pull/250

On Thu, Apr 30, 2015 at 2:02 PM, Damith Senanayake dami...@wso2.com wrote:

 Hi,

 Fix for [1] available at [2]
 [1] https://wso2.org/jira/browse/IDENTITY-3235
 [2]https://github.com/wso2/carbon-identity/pull/245

 --
 *-Damith Senanayake-*
 +94712205272




-- 
*-Damith Senanayake-*
+94712205272
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS/Carbon] Please Review and Merge

2015-04-30 Thread Thusitha Thilina Dayaratne
Hi,

I've created the following JIRA issue[1] for this fix.
[1] https://wso2.org/jira/browse/WSAS-1946

Thanks
Best Regards

On Thu, Apr 30, 2015 at 4:48 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 Please review and merged the following PR[1]
 [1] - https://github.com/wso2/product-as/pull/59

 Thanks
 Best Regards

 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS/Carbon] Please Review and Merge

2015-04-30 Thread KasunG Gajasinghe
Hi Thusitha,

We will  need make the package, org.wso2.carbon.tomcat.jndi, visible to
Tomcat CRE since we have extended the default JNDi implementation of
Tomcat. Likewise, we will need to see what other packages especially inside
org.wso2.carbon.tomcat we need make visible for the Tomcat CRE.

On Thu, Apr 30, 2015 at 5:12 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 I've created the following JIRA issue[1] for this fix.
 [1] https://wso2.org/jira/browse/WSAS-1946

 Thanks
 Best Regards

 On Thu, Apr 30, 2015 at 4:48 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 Please review and merged the following PR[1]
 [1] - https://github.com/wso2/product-as/pull/59

 Thanks
 Best Regards

 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




-- 

*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] [AS/Carbon] Please Review and Merge

2015-04-30 Thread KasunG Gajasinghe
Merged.

On Thu, Apr 30, 2015 at 4:48 PM, Thusitha Thilina Dayaratne 
thusit...@wso2.com wrote:

 Hi,

 Please review and merged the following PR[1]
 [1] - https://github.com/wso2/product-as/pull/59

 Thanks
 Best Regards

 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




-- 

*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] [AS/Carbon] Please Review and Merge

2015-04-30 Thread Thusitha Thilina Dayaratne
Hi Kasun,

Noted.
I will look in to that as well.

Thanks

On Thu, Apr 30, 2015 at 5:24 PM, KasunG Gajasinghe kas...@wso2.com wrote:

 Hi Thusitha,

 We will  need make the package, org.wso2.carbon.tomcat.jndi, visible to
 Tomcat CRE since we have extended the default JNDi implementation of
 Tomcat. Likewise, we will need to see what other packages especially inside
 org.wso2.carbon.tomcat we need make visible for the Tomcat CRE.

 On Thu, Apr 30, 2015 at 5:12 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 I've created the following JIRA issue[1] for this fix.
 [1] https://wso2.org/jira/browse/WSAS-1946

 Thanks
 Best Regards

 On Thu, Apr 30, 2015 at 4:48 PM, Thusitha Thilina Dayaratne 
 thusit...@wso2.com wrote:

 Hi,

 Please review and merged the following PR[1]
 [1] - https://github.com/wso2/product-as/pull/59

 Thanks
 Best Regards

 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




 --
 Thusitha Dayaratne
 Software Engineer
 WSO2 Inc. - lean . enterprise . middleware |  wso2.com

 Mobile  +94712756809
 Blog  alokayasoya.blogspot.com
 Abouthttp://about.me/thusithathilina




 --

 *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






-- 
Thusitha Dayaratne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

Mobile  +94712756809
Blog  alokayasoya.blogspot.com
Abouthttp://about.me/thusithathilina
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using renewal/cancel WS-Trust bindings to manage SAML tokens issued by SAML 2.0 Web SSO profile

2015-04-30 Thread Selvaratnam Uthaiyashankar
Folks, There are no ack/comment for this.

Can we put this in our roadmap?

On Sun, Apr 5, 2015 at 10:23 PM, Prabath Siriwardena prab...@wso2.com
wrote:

 AFAIK the $subject is not working today.

 Can we please get that fixed...? This would lead us to many more
 useful integration patterns...

 --
 Thanks  Regards,
 Prabath

 Twitter : @prabath
 LinkedIn : http://www.linkedin.com/in/prabathsiriwardena

 Mobile : +1 650 625 7950

 http://blog.facilelogin.com
 http://blog.api-security.org
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
S.Uthaiyashankar
VP Engineering
WSO2 Inc.
http://wso2.com/ - lean . enterprise . middleware

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


[Dev] Updated Invitation: [Code Review][AppM]Sample Deploy @ Thu Apr 30, 2015 4pm - 5pm (sachi...@wso2.com)

2015-04-30 Thread sachi...@wso2.com
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTART:20150430T103000Z
DTEND:20150430T113000Z
DTSTAMP:20150430T094337Z
ORGANIZER;CN=Sachith Herath:mailto:sachi...@wso2.com
UID:vf8ih78ccpomrkgep0lrec6...@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Binali Perera;X-NUM-GUESTS=0:mailto:bin...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE
 ;CN=Sachith Herath;X-NUM-GUESTS=0:mailto:sachi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Sumedha Rubasinghe;X-NUM-GUESTS=0:mailto:sume...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Lahiru Cooray;X-NUM-GUESTS=0:mailto:lahi...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Chathura Dilan;X-NUM-GUESTS=0:mailto:chathu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Ruwan Yatawara;X-NUM-GUESTS=0:mailto:ruw...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=Dinusha Senanayaka;X-NUM-GUESTS=0:mailto:dinu...@wso2.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=
 TRUE;CN=dev@wso2.org;X-NUM-GUESTS=0:mailto:dev@wso2.org
CREATED:20150429T031628Z
DESCRIPTION:View your event at https://www.google.com/calendar/event?action
 =VIEWeid=dmY4aWg3OGNjcG9tcmtnZXAwbHJlYzZsbTAgZGV2QHdzbzIub3Jntok=MTcjc2Fj
 aGl0aHVAd3NvMi5jb20yNzE1NTAxZTY4ZGRmYWI0OTE1MWYzNDljNmFhNDc0YzEwZTkzNTFhct
 z=Asia/Colombohl=en.
LAST-MODIFIED:20150430T094337Z
LOCATION:LK 3rd Floor Meeting Room - Kernel
SEQUENCE:1
STATUS:CONFIRMED
SUMMARY:[Code Review][AppM]Sample Deploy
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR


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


Re: [Dev] WS-RM Inbound endpoint based on Apache CXF Orbit bundle

2015-04-30 Thread Sandamal Weerasinghe
Hi Prabath,

Please check if the RMConnector works with the following in place,

cxf-bundle-3.0.2.wso2v1.jar
jetty-bundle-8.1.15.v20140411.wso2v1.jar
slf4j-bundle-1.7.7.wso2v1.jar
wss4j-bundle-2.0.2.wso2v1.jar

org.apache.aries.blueprint-1.1.0.jar
org.apache.aries.proxy-1.0.1.jar
org.apache.aries.util-1.1.0.jar
stax2-api-3.1.4.jar

https://github.com/wso2/orbit/pull/71

Thanks.

Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

Mobile - +94-77-144-9640

On Thu, Apr 23, 2015 at 2:29 PM, Sandamal Weerasinghe sanda...@wso2.com
wrote:

 Hi KasunG,

 Please review and merge.

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Mon, Apr 20, 2015 at 7:48 AM, Prabath Ariyarathna prabat...@wso2.com
 wrote:

 Hi Sandamal.

 It's working with the RM connector without any issue.


 Thanks.

 On Sun, Apr 19, 2015 at 12:11 AM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi KasunG,

 I updated the pull requests according to your instructions, please have
 a look.

 PrabathA : Can you please check if the RM connector works with the new
 Bundles

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 16, 2015 at 6:01 PM, Sandamal Weerasinghe sanda...@wso2.com
  wrote:

 Hi KasunG,

 I split the cxf bundle in to 2 bundles (cxf and jetty) and now I get
 the following error when starting up the ESB

 [2015-04-16 17:55:18,448]  INFO - ServerImpl Setting the server's
 publish address to be http://localhost:8081
 [2015-04-16 17:55:18,454] FATAL - ServiceBusInitializer Failed to
 initialize ESB due to a fatal error
 java.lang.LinkageError: loader constraint violation: loader (instance
 of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously
 initiated loading for a different type with name
 javax/servlet/http/HttpServletResponse
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:327)
 at
 org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)
 at
 org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:49)
 at
 org.apache.cxf.binding.AbstractBindingFactory.addListener(AbstractBindingFactory.java:95)
 at
 org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:895)
 at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:123)
 at
 org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:215)
 at
 org.wso2.carbon.inbound.endpoint.protocol.cxf.wsrm.InboundRMHttpListener.init(InboundRMHttpListener.java:106)
 at
 org.apache.synapse.inbound.InboundEndpoint.init(InboundEndpoint.java:58)

 The javax.servlet package is exported by Tomcat. Any ideas on how to
 resolve this?

 osgi b 530
 tomcat-servlet-api_7.0.52.wso2v1 [530]
   Id=530, Status=ACTIVE  Data
 Root=/home/sandamal/Programs/RM/wso2esb-4.9.0-SNAPSHOT/repository/components/default/configuration/org.eclipse.osgi/bundles/530/data
   No registered services.
   No services in use.
   Exported packages
 javax.servlet; version=2.6.0[exported]
 javax.servlet.annotation; version=2.6.0[exported]
 javax.servlet.descriptor; version=2.6.0[exported]
 javax.servlet.http; version=2.6.0[exported]
 javax.servlet.resources; version=2.6.0[exported]
 *; version=0.0.0unwireddynamic
   No fragment bundles
   Named class space
 tomcat-servlet-api; bundle-version=7.0.52.wso2v1[provided]
   No required bundles

 Thanks.



 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640

 On Thu, Apr 9, 2015 at 10:56 AM, Kasun Gajasinghe kas...@wso2.com
 wrote:

 Hi Kasun,

 We'll review this and apply. There are some changes required.

 On Apr 9, 2015, at 10:29 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Can we please add this. We are blocked on this for adding RM-Inbound
 endpoint to ESB M8 release

 On Tue, Apr 7, 2015 at 11:21 AM, Sandamal Weerasinghe 
 sanda...@wso2.com wrote:

 Hi all,

 Please find the pull request for the orbit bundle required for the
 above feature. In the orbit bundle I embedded the dependencies because 
 many
 of them don't have osgi bundles and this would ensure that the RM
 Inboundfeature would have all the dependencies it would need.

 https://github.com/wso2/orbit/pull/71

 Thanks.

 Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd

 Mobile - +94-77-144-9640




 --
 Kasun Indrasiri
 Software Architect
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +94 77 556 5206
 Blog : http://kasunpanorama.blogspot.com/






 --

 *Prabath Ariyarathna*

 *Associate Technical Lead*

 *WSO2, Inc. *

 *lean . enterprise . middleware *


 *Email: prabat...@wso2.com prabat...@wso2.com*

 *Blog: http://prabu-lk.blogspot.com http://prabu-lk.blogspot.com*

 *Flicker : https://www.flickr.com/photos/47759189@N08
 https://www.flickr.com/photos/47759189@N08*

 *Mobile: +94 77 699 4730 *





[Dev] Is there a built-in way of getting the admin service auth cookie in Jaggery?

2015-04-30 Thread Dunith Dhanushka
Hi all,

I can get the admin service auth cookie by calling required service stubs
like below

var log = new Log();
var HTTPConstants = Packages.org.apache.axis2.transport.http.HTTPConstants;

var AuthStub =
Packages.org.wso2.carbon.authenticator.stub.AuthenticationAdminStub;
var AUTH_SERVICE = 'https://localhost:9443/services/AuthenticationAdmin';
var authAdminClient = new AuthStub(AUTH_SERVICE);

var userName = 'admin';
var password = 'admin';
if (authAdminClient.login(userName, password, localhost)) {
var serviceContext =
authAdminClient._getServiceClient().getLastOperationContext().getServiceContext();
var sessionCookie =
serviceContext.getProperty(HTTPConstants.COOKIE_STRING);
log.info('Session cookie ' + sessionCookie);
} else {
log.info('Authentication failure');
}

But is there any built-in way  to get the admin service cookie in Jaggery?

-- 
Regards,

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

Mobile - +94 71 8615744
Blog - dunithd.wordpress.com http://blog.dunith.com
Twitter - @dunithd http://twitter.com/dunithd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Architecture] WSO2 IS 5.1.0 Milestone 1 Released!

2015-04-30 Thread Malithi Edirisinghe
WSO2 IS team is pleased to announce the 1st Milestone of WSO2 IS 5.1.0.
The distribution is available at [1].

This release includes following new features.

*New Features*

   - PATCH Operation Support for SCIM 1.1
   - Renew Support for Bearer Type SAML 2.0 Token
   - Event Notifications in Identity Management
   - XACML Cache Invalidation Notification when changes are made to
   Identities
   - Support to merge Multiple User Profiles
   - OpenID Connect Core Specification Compliance
   - Loading all available Tenants to a dropdown on SSO Login Page
   - FIDO Support

Please report any issues you may find in our JIRA
https://wso2.org/jira/browse/IDENTITY

[1]
https://github.com/wso2/product-is/releases/download/product-is-5.1.0-M1/wso2is-5.1.0-SNAPSHOT.zip

- WSO2 IS Team -

-- 

*Malithi Edirisinghe*
Senior Software Engineer
WSO2 Inc.

Mobile : +94 (0) 718176807
malit...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implement a WS-Addressing and MTOM validation framework

2015-04-30 Thread Isuru Ranawaka
Hi Naasheer,

Did you able to identify use cases of the MTOM validation scenarios .Some
interesting video can be found here [1].

-As first step try to understand difference between  Base64Encoding
Decoding and  MTOM . Then you will be able to understand advantages of
MTOM.
-Try to understand Header formats of the HTTP message with MTOM and without
MTOM.
- Try to understand message sizes and how binary data is transfered over
MTOM and how it gives performance gain.
-Try to figure out how Message Builders and Formatters  works with MTOM.

After gain knowledge of above areas you will be able to fully complete the
MTOM validation framework.

[1] http://www.youtube.com/watch?v=Tfv1gNXiAuE


Thanks
IsuruR


On Wed, Apr 29, 2015 at 12:33 PM, Naasheer Ali naashe...@wso2.com wrote:

 Hi,

 Please find the pdf of the milestone.

 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com

 On Wed, Apr 29, 2015 at 12:07 PM, Naasheer Ali naashe...@wso2.com wrote:

 Hi,
I'm trying to develop MTOM validation framework. These are the meeting
 notes with Isuru Ranawaka.

 Meeting MInues :
 1. Try to understand more on WS-Addressing and MTOM.
 2. Run the ESB samples on MTOM.
 3. Write use cases and test with ESB manually.

 Please find the milestone for the test cases :
 ​
  Milestone for writing use case on MTOM
 https://docs.google.com/a/wso2.com/spreadsheets/d/1y-8vpJlSN1wqby7IJ2Z6r0lluca5IA_x1drk5oCawKQ/edit?usp=drive_web
 ​
 Regards,
 --

 *Naasheer Ali* | Associate Software Engineer

 WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka

 Email: naashe...@wso2.com





-- 
Best Regards
Isuru Ranawaka
M: +94714629880
Blog : http://isurur.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding Kryo 2.24.0 as an Orbit Bundle

2015-04-30 Thread Anjana Fernando
Hi Sameera/Kasun,

For DAS 3.0 object serialization needs, we are using Kryo, which is known
to be the best/fastest Java serializer out there. We use it mainly to keep
binary compatibility of serialized objects, between JVMs/versions, and
also, better performance.

As I'd explained in a chat with Sameera earlier, even though they have
already have an OSGi bundle in Maven, they do not have dynamic imports
enabled, so basically, we can't serialize/deserialize any external objects,
which is actually it must do.

So what they have mentioned to do here is [1], always set the class loader
of the class you're using when you're using Kryo. This is not practical to
be done always, specially when like us, we have a generic utility method
doing this task, so what's mentioned in [1] can't be done.

So I've created an orbit bundle with dynamic imports there (pull request at
[2]), to get it to work in the way we need. Please review and commit.

[1] https://code.google.com/p/kryo/issues/detail?id=117#c4
[2] https://github.com/wso2/orbit/pull/84

Cheers,
Anjana.
-- 
*Anjana Fernando*
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] API manager throttling requirement clarification.

2015-04-30 Thread Sewmini Jayaweera
Hi,

As per the offline discussion. I can explain Nirdesha what I meant by
successful hits so that she can improve document in a way user can clearly
understand how throttling works.

Cheers!

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Thu, Apr 30, 2015 at 11:21 AM, Nirdesha Munasinghe nirde...@wso2.com
wrote:

 Sewmini, will look into the JIRA. Thanks for the info.

 On Thu, Apr 30, 2015 at 11:16 AM, Nirdesha Munasinghe nirde...@wso2.com
 wrote:

 Thanks for the clarification, Ushani. I missed that it is the same API
 being invoked.

 On Thu, Apr 30, 2015 at 8:38 AM, Ushani Balasooriya ush...@wso2.com
 wrote:

 Hi Nirdesha,

 In this use case, the same API is being invoked but 2 different
 resources. E.g., GET, PUT
 So for the first resource (Bronze) it will count as 1 and next 2
 requests for the same resource  will exceed the resource level throttling.

 Next invocation for the 2nd resource will accept only 4 requests in the
 same minute since the whole API level throttling is silver (5)
 So the 5th request will not be successful due to the API level
 throttling (4+1)


 On Wed, Apr 29, 2015 at 10:06 PM, Nirdesha Munasinghe nirde...@wso2.com
  wrote:

 Hi Ushani,

 Why would the last request (5th one) fail to resource 2 please? Silver
 throttling tier allows 5 requests per minute, isn't it?

 Thanks,
 -Nirdesha

 On Wed, Apr 29, 2015 at 3:36 PM, Ushani Balasooriya ush...@wso2.com
 wrote:

 Hi Sewmini,

 I think it should work like,

 1st 3 requests to Resource  1 = 1st request successful, Next 2
 requests unsuccessful due to resource level throttling.
 Next 5 requests 2 Resource 2 = 1st 4 requests should be successful and
 last one should be unsucessful due to API level throttling.



 On Wed, Apr 29, 2015 at 3:23 PM, Chathurika De Silva 
 chathuri...@wso2.com wrote:

 Hi Sewmini

 In your case since you have sent 5 requests to the both of the
 resources these will be successful due to your API level throttling tier
 being 5. After that requests will be terminated.

 Please find the below documentation that will be a help to you

 https://docs.wso2.com/display/AM180/Key+Concepts#KeyConcepts-Throttlingtiers

 Thank You
 Erandi


 On Wed, Apr 29, 2015 at 3:14 PM, Sewmini Jayaweera sewm...@wso2.com
 wrote:

 Hi Ushani,

 When I say unsuccessful, what i meant was request fails due to
 resource level throttling exceeding.
 Say I have given

 API level throttling - silver (5)
 App level throttling - unlimited
 API resource 1 throttling - bronze (1)
 API resource 2 throttling - unlimited

 When I send first three requests to resource 1 and next 5 requests
 to resource 2, my last 3 request should fail due to API level 
 throttling is
 it ?

 Thanks  Regards,
 Sewmini

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

 On Wed, Apr 29, 2015 at 2:48 PM, Ushani Balasooriya ush...@wso2.com
  wrote:

 Hi Sewmini,

 AFAIK, throttling count will start when the API is invoked.
 Therefore it should be a successful invocation. First it checks API 
 level
 throttling limit and then Application level throttling limit and then 
 it
 goes to resource level throttling check.

 Regards,
 Ushani


 On Wed, Apr 29, 2015 at 1:59 PM, Sewmini Jayaweera 
 sewm...@wso2.com wrote:

 Hi,

 In API manager throttling functionality, How exactly the
 throttling tier exceed?

 1. At the end of 20 successful invocations/hits or
 2. When total number of hits (successful and faulty) exceeds 20?

 When I test this in both API manager 1.8.0 and 1.9.0 packs, count
 was taken using number of successful hits. Therefore I reported [1]
 documentation Jira.

 Please do verify and let me know if the functionality is wrong.

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

 Thanks  Regards,
 Sewmini

 Sewmini Jayaweera
 *Software Engineer - QA Team*
 Mobile: +94 (0) 773 381 250
 sewm...@wso2.com

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




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



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




 --
 *Chathurika Erandi*
 Software Engineer,
 WSO2 Inc.

 *E-mail:* chathuri...@wso2.com
 *Mobile: *+94714 328 612
 *Blog*: chathurikaerandi.blogspot.com




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


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




 --

 Thanks,

 Nirdesha Munasinghe,
 WSO2 Inc.
 Web:http://wso2.com

 Mobile: +94 776321920




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




 --

 Thanks,

 Nirdesha