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

2016-05-20 Thread Sanjiva Weerawarana
How does the webapp manage sessions and security credentials for the remote
HTTP API right now?

We know we need to do something for this for UUF .. we delayed it as a
temporary measure. IIRC also we've had issues previously with session
timeout mismatches and with security creds being not carefully handled so
we need to make sure this is done right (or at least better) this time.

So, what do you guys do right now for these two aspects of making a remote
call from the server?

Sanjiva.

On Fri, May 20, 2016 at 11:28 AM, Nandika Jayawardana 
wrote:

> In case of BPS, what we develop is similar to a web application which
> should be independent of the BPS backend. Idea is that this component has
> to be packaged into PC ( process center ) as well as BPS. Hence, native
> OSGi call's is not sufficient for our requirement.
>
> Regards
> Nandika
>
> On Fri, May 20, 2016 at 11:17 AM, Rasika Perera  wrote:
>
>> Hi,
>>
>> We have came up with this best practise. There are basically two
>> scenarios;
>>
>> 1. When the back-end is belongs to your product(eg. calling BPS runtime).
>>
>> We assume that you have written your JAX-RS based on an OSGi service.
>> JAX-RS will *not* hold any business logic and act as API interface(Facade
>> Pattern). In this case making a network call(AJAX) from UI to your own VM
>> is discouraged. You should use callOsgiService() function on the server
>> side Js.
>>
>> 2. When the back-end is external(eg. calling Twitter API).
>>
>> Here we don't provide any server side feature for handling HTTP calls
>> because this will again abuse and use to call own VM back-ends. You can
>> simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
>> in client-side Js.
>>
>> * In the edge cases that you really need to make HTTP calls from the
>> server side Js, you can initiate; apache commons 'HttpClient' or java.net
>> 'URLConnection' through Nashorn.
>>
>> * Also you might still need to write JAX-RS APIs for your OSGi services
>> for customers.
>>
>> Thanks,
>> Rasika
>>
>> On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
>> wrote:
>>
>>> So there is not separation between UI back-end and the actual server
>>> (e.g. BPS runtime)? i.e. both always run in the same jvm?
>>>
>>> On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera 
>>> wrote:
>>>
 Yes, you will be able to call OSGi services.

 On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara 
 wrote:

> Hi All,
>
> For clarification, does this mean we will be able to invoke a service
> side function(through nashorn) upon client request ? As in when a user
> clicks a button, we can call a server side function ?
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna <
> sajit...@wso2.com> wrote:
>
>> Hi Sudharma,
>>
>> In the browser (client-side), you can do AJAX calls to the necessary
>> REST APIs. However, doing HTTP requests from UI backend (which runs on 
>> the
>> server-side) to REST APIs (which also runs on the server-side) is not
>> recommended. Instead of that you should call OSGi services. Calling OSGI
>> services from server-side JS will be available in the next milestone of 
>> UUF.
>>
>> Thanks.
>>
>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
>> sudhar...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am working on developing BPMN explorer ui using Unified UI
>>> Framework.
>>>
>>> The existing BPMN explorer ui is for BPS which has built on C4 and
>>> it is used Jaggery. So, I am working on BPMN explorer ui for BPS which 
>>> is
>>> to be released on C5.
>>>
>>> We need to implement business logics in backend. For example, I need
>>> to send request to backend from browser, and from backend to BPS. Is 
>>> there
>>> functionality to achieve it in UUF?
>>>
>>> Any idea on this is appreciated.
>>>
>>> Thanks
>>> Sudharma
>>>
>>> --
>>> Sudharma Subasinghe,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: sudhar...@wso2.com 
>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>
>>
>>
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>


 --
 With regards,
 *Manu*ranga Perera.

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

 ___
 Dev 

Re: [Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released

2016-05-20 Thread Sumedha Rubasinghe
Dulitha,
Just to reconfirm. This is on Windows. right?

On Sat, May 21, 2016 at 1:04 AM, Dulitha Wijewantha 
wrote:

> Hi guys,
> Getting below error in startup. Any idea how hadoop crept into the pack?
> Cheers~
>
> [2016-05-20 14:48:48,984] ERROR - Shell Failed to locate the winutils
> binary in the hadoop binary path
> java.io.IOException: Could not locate executable null\bin\winutils.exe in
> the Hadoop binaries.
> at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:355)
> at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:370)
> at org.apache.hadoop.util.Shell.(Shell.java:363)
> at org.apache.hadoop.util.StringUtils.(StringUtils.java:79)
> at
> org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:104)
> at org.apache.hadoop.security.Groups.(Groups.java:86)
> at org.apache.hadoop.security.Groups.(Groups.java:66)
> at
> org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:280)
> at
> org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:271)
> at
> org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:248)
> at
> org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:763)
> at
> org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:748)
> at
> org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:621)
> at
> org.apache.spark.util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2042)
> at
> org.apache.spark.util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2042)
> at scala.Option.getOrElse(Option.scala:120)
> at
> org.apache.spark.util.Utils$.getCurrentUserName(Utils.scala:2042)
> at org.apache.spark.SparkContext.(SparkContext.scala:301)
> at
> org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.initializeSparkContext(SparkAnalyticsExecutor.java:346)
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.initializeClient(SparkAnalyticsExecutor.java:359)
> at
> org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.initializeSparkServer(SparkAnalyticsExecutor.java:188)
> at
> org.wso2.carbon.analytics.spark.core.internal.AnalyticsComponent.activate(AnalyticsComponent.java:77)
> 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:345)
> 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
> 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.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
> at
> 

[Dev] WSO2 ESB 5.0.0-BETA Released!

2016-05-20 Thread Buddhima Wijeweera
*WSO2 ESB 5.0.0-BETA Released*

ESB Team is pleased to announce the WSO2 ESB 5.0.0 - BETA release.

The distribution is available to download at [1].

[1] https://github.com/wso2/product-esb/releases/tag/v5.0.0-BETA


*WSO2 **ESB Tooling 5.0.0**-BETA Released*

The distribution is available to download at [3].

[3] *https://github.com/wso2/devstudio-tooling-esb/releases/tag/v5.0.0-beta
*


*WSO2 **ESB Analytics 1.0.0**-BETA Released*

The distribution is available to download at [2].

[2] https://github.com/wso2/analytics-esb/releases/tag/v1.0.0-beta


WSO2 ESB 5.0.0-BETA contains following improvement and bug fixes.

Bug

   - [ESBJAVA-3117 ] - The
   bind-address feature was not implemented for Pass-through transport
   - [ESBJAVA-3801 ] -
   java.lang.IllegalStateException: Trying to set the domain from 8 to 6 when
   invoking the same service from two tenant domains
   - [ESBJAVA-4014 ] - Proxy
   services can be invoked using invalid URL in super tenant mode.
   - [ESBJAVA-4137 ] - Empty
   POST body with application/json content-type throws an Error
   - [ESBJAVA-4225 ] - Endpoint
   re-deployment issue via a CAR while invoking the same endpoint
   - [ESBJAVA-4244 ] - JsonUtil
   #newJsonPayload. Could not save JSON payload. Invalid input stream found.
   - [ESBJAVA-4297 ] - [ESB
   4.9.0]Sample 57: Error when updating from admin UI.
   - [ESBJAVA-4319 ] - WSO2 ESB
   Problems
   - [ESBJAVA-4326 ] -
   Overriding the Host Header in an HTTP Call from the ESB does not work with
   service chaining scenario
   - [ESBJAVA-4345 ] -
   Possibilities of two or more proxies trying to lock and read the same file
   at the same time.
   - [ESBJAVA-4356 ] - Inbound
   endpoint interval shows null in editInbound.jsp although source
   configuration have interval specified
   - [ESBJAVA-4384 ] - Unable to
   use multiple mailto senders
   - [ESBJAVA-4387 ] - Mediation
   debugger failed to set breakpoints for Aggragete mediator inlined sequence.
   - [ESBJAVA-4397 ] - The
   display name get disorted when a description is added to the endpoint
   - [ESBJAVA-4398 ] - When
   seperate listener is used in endpoint, the request is not sent to the
   endpoint
   - [ESBJAVA-4399 ] -
   WS-Security is not executable when associated with a WSDL endpoint
   - [ESBJAVA-4400 ] - Default
   endpoint does not work as expected
   - [ESBJAVA-4401 ] - Product
   version and relevant details should be updated on distribution files for
   ESB 4.10 release
   - [ESBJAVA-4442 ] -
   [ESB500]Error in Clustering Mode - JMS 2.0 Feature:Shared Topic Subscription
   - [ESBJAVA-4446 ] -
   [ESB500][JMS 2.0 Feature : JMSXDeliveryCount]Could not reconnect to JMS
   broker after loosing connection.
   - [ESBJAVA-4459 ] -
   [ESB500M2] Removing "enableSec" element, but keeping the "policy" element
   from a UT secured proxy
   - [ESBJAVA-4472 ] -
   [ESB500M2][LongRun][Intermittent] WSSecurityException occurred when
   invoking WS Secured Proxy with correct Credentials
   - [ESBJAVA-4485 ] -
   [ESB500][Store Mediator]- When there is no messages to send to message
   store, giving an unhandled error
   - [ESBJAVA-4492 ] - Json to
   XML conversion is wrong when json attribute name has spaces
   - [ESBJAVA-4516 ] -
   publishing to DAS from scheduled task in ESB fails
   - [ESBJAVA-4529 ] - Make sure
   ESB is using the latest drool engine
   - [ESBJAVA-4531 ] - Support
   to map tree nodes which has a number for the name of the tree node
   - [ESBJAVA-4533 ] - Cache
   mediator in cluster environment not working
   - [ESBJAVA-4536 ] - ESB
   continuously redeploy connector enabling files with backups
   - [ESBJAVA-4562 

Re: [Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released

2016-05-20 Thread Dulitha Wijewantha
Hi guys,
Getting below error in startup. Any idea how hadoop crept into the pack?
Cheers~

[2016-05-20 14:48:48,984] ERROR - Shell Failed to locate the winutils
binary in the hadoop binary path
java.io.IOException: Could not locate executable null\bin\winutils.exe in
the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:355)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:370)
at org.apache.hadoop.util.Shell.(Shell.java:363)
at org.apache.hadoop.util.StringUtils.(StringUtils.java:79)
at
org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:104)
at org.apache.hadoop.security.Groups.(Groups.java:86)
at org.apache.hadoop.security.Groups.(Groups.java:66)
at
org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:280)
at
org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:271)
at
org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:248)
at
org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:763)
at
org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:748)
at
org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:621)
at
org.apache.spark.util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2042)
at
org.apache.spark.util.Utils$$anonfun$getCurrentUserName$1.apply(Utils.scala:2042)
at scala.Option.getOrElse(Option.scala:120)
at org.apache.spark.util.Utils$.getCurrentUserName(Utils.scala:2042)
at org.apache.spark.SparkContext.(SparkContext.scala:301)
at
org.apache.spark.api.java.JavaSparkContext.(JavaSparkContext.scala:61)
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.initializeSparkContext(SparkAnalyticsExecutor.java:346)
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.initializeClient(SparkAnalyticsExecutor.java:359)
at
org.wso2.carbon.analytics.spark.core.internal.SparkAnalyticsExecutor.initializeSparkServer(SparkAnalyticsExecutor.java:188)
at
org.wso2.carbon.analytics.spark.core.internal.AnalyticsComponent.activate(AnalyticsComponent.java:77)
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:345)
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
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.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
at
org.wso2.carbon.analytics.dataservice.core.AnalyticsDataServiceComponent.activate(AnalyticsDataServiceComponent.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at

[Dev] [Architecture] WSO2 IoT Server 1.0.0-alpha Released

2016-05-20 Thread Ayyoob Hamza
*WSO2 IoT Server 1.0.0 Alpha Released*
We are pleased to announce WSO2 IoT Server 1.0.0 alpha release. It can be
downloaded from
https://github.com/wso2/product-iots/releases/tag/v1.0.0-alpha

WSO2 IoT Server is an extensible, open-source, multi tenant, Internet of
Things Platform for implementing server-side of IoT Reference Architecture.
It comes with a reference implementations for the device layer.


WSO2 IoT Server supports:



   -

   Device Management
   -

  Extensions for registering device types
  -

  Self-service enrolment and management of connected devices
  -

  Group, manage and monitor connected devices
  -

  Share device operations / data with other users
  -

  Distribution and management of applications and firmware to devices
  -

  OOTB support for some known device types such as Raspberry Pi,
  Arduino Uno, Android


   -

   IoT Protocol Support
   -

  Leverage MQTT, HTTP, Websockets and XMPP protocols for device
  communications with IoT Server
  -

  Framework extension for adding more protocols and data formats
  -

   Analytics
   -

  Support for batch, interactive, real-time and predictive analytics
  through WSO2 DAS
  -

   Pre-built visualisation support for sensor readings
   -

  View instant, visualised statistics of individual or multiple devices
  -

  Traverse through, analyse and zoom in/out of filtered data
  -

  Stats-API to write your own visualisation
  -

  Pre-built graphs for common sensor reading types like temperature,
  velocity
  -

   API Management for App Development
   -

  Devices are represented as REST APIs
  -

  Develop applications using Device APIs
  -

   Identity and Access Management
   -

  Identity Management for devices
  -

  Token based access control for devices & operations (protect back end
  services via exposing device type APIs)
  - Support for SCEP protocol (encryption and authenticity)



List of known issues

- https://wso2.org/jira/issues/?filter=13055

Bug Fixes

   - [IOTS-17 ] - MQTT endpoints are
   not secured for agent communication
   - [IOTS-19 ] - XMPP sessions not
   closed before server shutdown
   - [IOTS-21 ] - Jaggery API calls
   are not secured
   - [IOTS-34 ] - Backend Service
   Invoker Fails Intermittently with Unexpected token: <
   - [IOTS-37 ] - Could not generate
   a new access token (using refresh token) by using the current token endpoint
   - [IOTS-47 ] - Update the release
   note in the release packs as it is about EMM
   - [IOTS-50 ] - users whos
   iot-admin role is removed is shown all options for enrol devices as users
   with iot-admin role
   - [IOTS-55 ] - Considerable delay
   in server startup
   - [IOTS-57 ] - Error when starting
   the IOT pack after pointing to the mysql database
   - [IOTS-64 ] - The wso2carbon log
   file is growing rapidly
   - [IOTS-68 ] - when a tenant is
   created with the same user name as super tenant seems the super tenant data
   are shown
   - [IOTS-69 ] - until device admin
   was disabled the camera policy was in effect preventing the use of camera
   on android device
   - [IOTS-75 ] - view API throws a
   Caused by: java.lang.NullPointerException: Tenant domain has not been set
   in CarbonContext
   - [IOTS-81 ] - IOT devices are
   allways in active status
   - [IOTS-92 ] - Error in executing
   task: Table Not Found: X1234_DeviceBatterySummaryData
   java.lang.RuntimeException: Table Not Found: X1234_DeviceBatterySummaryData
   is thown when pointing to mysql
   - [IOTS-93 ] - XMPP server details
   are hardcoded in virtual fire alarm and devicemgt-config.xml file
   - [IOTS-94 ] - Virtual firealarms
   that were downloaded before xmpp was enabled can not connect to xmpp
   protocol after enabling.
   - [IOTS-100 ] - When integrating
   ActiveMQ as an external message broker IOTS fails to start
   - [IOTS-102 ] - Device analytic
   line graph does not get generated when the device type has a capital letter
   - [IOTS-104 ] - Remove the device
   type configs that is used for UI from conf directory
   - [IOTS-105 

Re: [Dev] [Architecture] Why APIM don't impose any permission for deleting an API

2016-05-20 Thread Mohanadarshan Vivekanandalingam
[adding dev]

On Fri, May 20, 2016 at 9:48 PM, Abimaran Kugathasan 
wrote:

> Hi All,
>
> API Manager has permissions for Create, Publish and Subscribe an API. Why
> API Manager don't check any permission for deleting an API?
>
> A user can create an API, another one varified the API and publish it, in
> the same way, we need to give permission for the user to delete the API.
>
> Was there any reason for allowing the user who created the API to delete
> it?
>
> --
> Thanks
> Abimaran Kugathasan
>
> Software Engineer | WSO2 Inc
> Data & APIs Technologies Team
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


-- 
*V. Mohanadarshan*
*Senior Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com  *
*lean.enterprise.middleware.*

email: mo...@wso2.com
phone:(+94) 771117673
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppCloud] [APPCLOUD-24] Streaming logs in application log page

2016-05-20 Thread Kasun De Silva
Hi Danushka,

Streaming log option is similar to tailf in unix systems. I guess you
application is not actively producing any logs. That might be the reason
you don't get any output or experiencing this.

First I would try following kube command in k8s console against my
respective pod.

# Begin streaming the logs of a pod
./kubectl logs -f 

Go to 249 or 251 and try that. You can try more options as mentioned in
[3]. but make sure you have the "*-f "* option.

Also you can try [1] from you browser against 249 or 251, that is the
direct api call to the k8s to get streaming of the logs. This is the same
call that is generated by the fabric8 when we are invoking streamRuntimeLogs()
method.

Also I would have a web app that actively generate logs to test this
option. Something like [2]. You can just download the war file from [2] and
deploy it in AppCloud setup you are testing. Then just hit "
*/logme*" from the browser and the application will start
generate logs continuously. This kind of application will help you test
this feature.


Finally I would try to see whether if we can pass tailing lines or
.sinceSeconds()
or .tailingLines() options to streamRuntimeLogs() builder pattern, better
if something like .tailingLines(10) then streaming will always starts with
last 10 lines. In that case we need to modify the back end code similar to "
getRuntimeLogs(LogQuery query)" method.

This is something I would try at the very end, if everything goes smoothly
above.

Hope this information is helpful to you regarding this JIRA. Let me know if
you have any concerns.


[1] http://*:*/api/v1/namespaces/**/pods/
**/log?container=tomcat-server&*follow=true*
=false=false

[2]
https://github.com/kasundsilva/jsp-loggin/tree/master/sample.log.app.one/target

[3] http://kubernetes.io/docs/user-guide/kubectl/kubectl_logs/


Thanks
Kasun

*Kasun de Silva*
Software Engineer

WSO2 Inc *. *|* E*mail : kas...@wso2.com | Mobile: +94 77
794 4260
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] TOKEN VALIDATION SERVICE AND CLAIMS

2016-05-20 Thread John Q
Hello,

I'm calling the service '/services/OAuth2TokenValidationService' from IS
and I'm getting the base64 JWT, but when I decode the response, I'm not
getting the claims in the data, do I have to configure something in order
to retrieve claims?

this is an example response

\/cg_unpublisher",
   "iss":"http:\/\/wso2.org\/gateway",
   "exp":1463761177,
   "iat":1463757906,
   "http:\/\/wso2.org\/gateway\/subscriber":"admin@carbon.super",
   "http:\/\/wso2.org\/gateway\/enduser":"admin@carbon.super"
}

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


Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Danushka Fernando
Its not an html its a json. Any way found a way to implement my task
without web socket.

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

On Fri, May 20, 2016 at 7:35 PM, Manuranga Perera  wrote:

> Hi,
> Seems like there is some issue with setting up the request level variables
> when you reach from Web Socket path, looks like a bug.
> But I am trying to understand why you are trying to return HTML from a
>  Web Socket. Shouldn't you be returning JSON ?
>
> On Fri, May 20, 2016 at 3:27 AM, Danushka Fernando 
> wrote:
>
>> This only works with plain jaggery. Cant use inside any framework.
>> Require function even doesn't work.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Fri, May 20, 2016 at 11:46 AM, Danushka Fernando 
>> wrote:
>>
>>> My log file rolled and tail got expired thats why I saw no logs.
>>> Actually problem is my jaggery call to modules. I am getting exception
>>> below.
>>>
>>> var logMap = mod.getFormattedRuntimeLogs(applicationKey, selectedRevision, 
>>> "");
>>>
>>> Is there a way to ged rid of this?
>>>
>>> TID: [0] [AS] [2016-05-20 11:42:09,784] ERROR
>>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>>> reading request, ignored {org.apache.co
>>> yote.AbstractProtocol$AbstractConnectionHandler}
>>> org.mozilla.javascript.WrappedException: Wrapped
>>> java.util.NoSuchElementException (/appmgt/jagg/jagg.jag#377)
>>>at
>>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>>at
>>> org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>>>at
>>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>>at
>>> org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_37(/appmgt/jagg/jagg.jag:377)
>>>
>>>at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag)
>>>at
>>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>>>at
>>> org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0._c_anonymous_2(/appmgt/modules/runtimeLogs/module.jag:26)
>>>
>>>at
>>> org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0.call(/appmgt/modules/runtimeLogs/module.jag)
>>>
>>>at
>>> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>>at
>>> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0._c_anonymous_1(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag:37)
>>>
>>>at
>>> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)
>>>
>>>at
>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>>>at
>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>>>at
>>> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)
>>>
>>>at
>>> org.jaggeryjs.hostobjects.web.WebSocketHostObject.processText(WebSocketHostObject.java:139)
>>>
>>>at
>>> org.jaggeryjs.jaggery.core.websocket.WSMessageInBound.onTextMessage(WSMessageInBound.java:36)
>>>
>>>at
>>> org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74)
>>>
>>>at
>>> org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186)
>>>
>>>at
>>> org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134)
>>>at
>>> org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)
>>>
>>>at
>>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:587)
>>>
>>>at
>>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>>
>>>at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>
>>>at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>
>>>at java.lang.Thread.run(Thread.java:744)
>>> Caused by: java.util.NoSuchElementException
>>>at java.util.Vector.lastElement(Vector.java:499)
>>>at
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:226)
>>>
>>>at
>>> org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:318)
>>>
>>>at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
>>>at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>
>>>at java.lang.reflect.Method.invoke(Method.java:606)
>>>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>>... 24 more
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Senior Software Engineer
>>> WSO2 

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Manuranga Perera
Hi,
Seems like there is some issue with setting up the request level variables
when you reach from Web Socket path, looks like a bug.
But I am trying to understand why you are trying to return HTML from a  Web
Socket. Shouldn't you be returning JSON ?

On Fri, May 20, 2016 at 3:27 AM, Danushka Fernando 
wrote:

> This only works with plain jaggery. Cant use inside any framework. Require
> function even doesn't work.
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Fri, May 20, 2016 at 11:46 AM, Danushka Fernando 
> wrote:
>
>> My log file rolled and tail got expired thats why I saw no logs. Actually
>> problem is my jaggery call to modules. I am getting exception below.
>>
>> var logMap = mod.getFormattedRuntimeLogs(applicationKey, selectedRevision, 
>> "");
>>
>> Is there a way to ged rid of this?
>>
>> TID: [0] [AS] [2016-05-20 11:42:09,784] ERROR
>> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
>> reading request, ignored {org.apache.co
>> yote.AbstractProtocol$AbstractConnectionHandler}
>> org.mozilla.javascript.WrappedException: Wrapped
>> java.util.NoSuchElementException (/appmgt/jagg/jagg.jag#377)
>>at
>> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>>at
>> org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>>at
>> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>>at
>> org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_37(/appmgt/jagg/jagg.jag:377)
>>
>>at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag)
>>at
>> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>>at
>> org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0._c_anonymous_2(/appmgt/modules/runtimeLogs/module.jag:26)
>>
>>at
>> org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0.call(/appmgt/modules/runtimeLogs/module.jag)
>>
>>at
>> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>>at
>> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0._c_anonymous_1(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag:37)
>>
>>at
>> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)
>>
>>at
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>>at
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>>at
>> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)
>>
>>at
>> org.jaggeryjs.hostobjects.web.WebSocketHostObject.processText(WebSocketHostObject.java:139)
>>
>>at
>> org.jaggeryjs.jaggery.core.websocket.WSMessageInBound.onTextMessage(WSMessageInBound.java:36)
>>
>>at
>> org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74)
>>
>>at
>> org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186)
>>
>>at
>> org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134)
>>at
>> org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)
>>
>>at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:587)
>>
>>at
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>>
>>at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>
>>at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>
>>at java.lang.Thread.run(Thread.java:744)
>> Caused by: java.util.NoSuchElementException
>>at java.util.Vector.lastElement(Vector.java:499)
>>at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:226)
>>
>>at
>> org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:318)
>>
>>at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
>>at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>
>>at java.lang.reflect.Method.invoke(Method.java:606)
>>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>>... 24 more
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729
>>
>> On Fri, May 20, 2016 at 11:18 AM, Danushka Fernando 
>> wrote:
>>
>>> This is my server side looks like
>>>
>>>
>>> <%
>>> /*
>>>  * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
>>>  *
>>>  *   WSO2 Inc. licenses this file to you under the Apache License,
>>>  *   Version 2.0 (the "License"); you may 

Re: [Dev] Time series data summarization

2016-05-20 Thread Dulitha Wijewantha
Yeh that's exactly what I am doing right now (forgot to attach the query to
the email).

insert into table CORE_USER_ROLE_YEARLY_ACTIVITY_SUMMERY select
y.dateHourly as date, count(distinct userid) as activity, appKey as appKey,
role as role from (select clientUserId as userid, timestamp as date,
dateFormatter(timestamp, "-MM", "") as dateHourly, appKey as
appKey, role as role from eventStatData) as y group by y.dateHourly,
y.appKey, y.role;

I was wondering whether this was the right step for scenarios where data is
summarized using time stamp.


While looking into this I found out another interesting project which deals
with time series data [1].

[1] - https://github.com/prometheus/prometheus

On Thu, May 19, 2016 at 10:00 PM, Srinath Perera  wrote:

> schedule a spark query that aggregate the data per year and write to new
> table, and you can query from that table?
>
> On Fri, May 20, 2016 at 12:06 AM, Dulitha Wijewantha 
> wrote:
>
>> Hi guys,
>> I have a bunch of data streams that have time stamps (like event logs) -
>> currently in DAS 3.0.1 - is there a way to efficiently query these?
>>
>> Right now I am summarizing them based on string manipulation to the
>> timestamp. An example query I have is -
>>
>> 1) How many unique user events do we have in the last year.
>>
>> Cheers~
>>
>> --
>> Dulitha Wijewantha (Chan)
>> Software Engineer - Mobile Development
>> WSO2 Inc
>> Lean.Enterprise.Middleware
>>  * ~Email   duli...@wso2.com *
>> *  ~Mobile +94712112165 <%2B94712112165>*
>> *  ~Website   dulitha.me *
>> *  ~Twitter @dulitharw *
>>   *~Github @dulichan *
>>   *~SO @chan *
>>
>
>
>
> --
> 
> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
> Site: http://home.apache.org/~hemapani/
> Photos: http://www.flickr.com/photos/hemapani/
> Phone: 0772360902
>



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


[Dev] [ESB Tooling] Freezing repositories for ESB Tooling Beta release

2016-05-20 Thread Nuwan Pallewela
Hi All,

We are moving towards to release ESB Tooling 5.0.0 beta and please let us
know if you have any improvement to merge before the release.

Thanks,
Nuwan

-- 
--

*Nuwan Chamara Pallewela*


*Software Engineer*

*WSO2, Inc. *http://wso2.com
*lean . enterprise . middleware*

Email   *nuw...@wso2.com *
Mobile  *+94719079739@*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 Identity Server 5.3.0 Milestone 1 Released!

2016-05-20 Thread Malithi Edirisinghe
*WSO2 Identity Server 5.3.0 Milestone 1 Released!*

The WSO2 Identity Server team is pleased to announce the 1st Milestone of
WSO2 Identity Server 5.3.0. You can download this distribution from
https://github.com/wso2/product-is/releases/tag/v5.3.0-m1

Following list [1] contains all bug fixes and improvements available with
this milestone. We encourage you to report issues, improvements and feature
requests regarding WSO2 Identity Server through the public WSO2 Identity
Server JIRA.

~* The WSO2 Identity Server Team ~*

[1] Release Notes - WSO2 Identity Server - Version 5.3.0-M1

New Feature

   - [IDENTITY-2952 ] - Email
   template internationalization
   - [IDENTITY-2989 ] - HTML
   templating support for email notifications
   - [IDENTITY-4451 ] - Support
   for user claim values in email templates



-- 

*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] [Architecture] Common configuration for publishing events from carbon servers to DAS/CEP

2016-05-20 Thread Niranjan Karunanandham
Hi Pulasthi,

Did you add the feature to the p2-repo generation section in the pom? Can
you check if the feature is there in your p2-repo?

Regards,
Nira

On Fri, May 20, 2016 at 2:46 PM, Pulasthi Mahawithana 
wrote:

> Hi Niranjan,
>
> It was failing with the p2 repo that is created in p2-profile-gen.
> Looking at the pom at [1], this feature only imports the org.wso2.carbon.core
> which is available in IS but as a different patch release version. Does the
> difference in the patch release version matter here? Or is it due to
> something else?
>
> [1]
> https://github.com/wso2/carbon-analytics-common/blob/v5.0.11/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature/pom.xml
>
> On Fri, May 20, 2016 at 2:10 PM, Niranjan Karunanandham  > wrote:
>
>> Hi Pulasthi,
>>
>> When building the product, are you referring to the p2-repo of the
>> locally built carbon-feature-repository or to a p2-repo that you create in
>> p2-profile-gen. If so this issue can happen if the feature that you are
>> installing has import features which are not there in your p2-repo.
>>
>> @Malith: As per the previous mail, can you close this PR since it need to
>> come from the PR from the product team which will be using the feature.
>>
>> Regards,
>> Nira
>>
>> Regards,
>> Nira
>>
>> On Fri, May 20, 2016 at 12:47 PM, Pulasthi Mahawithana <
>> pulast...@wso2.com> wrote:
>>
>>> I tried to add this feature to product-is 's p2-profile-gen. But it
>>> fails saying,
>>>
>>> Installation failed.
>>> The installable unit
>>> org.wso2.carbon.event.publisher.aggregate.feature.group/5.0.11 has not been
>>> found.
>>>
>>> However I can install it from feature management UI when I merged and
>>> built the carbon feature repository locally with the PR at [1] and point
>>> that as a local repository. Any possible causes for this?
>>>
>>> [1] https://github.com/wso2/carbon-feature-repository/pull/46
>>>
>>> On Wed, Apr 27, 2016 at 9:08 AM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Malith,

 Since this feature will be included in the next ESB release, IMO it
 would be better to close the current PR and have it included in the same PR
 after the product release.

 Regards,
 Nira

 On Mon, Apr 25, 2016 at 6:05 PM, Malith Dhanushka 
 wrote:

> Hi Niranjan,
>
> Correction on my previous reply. we have to ship this feature by
> default with ESB and APIM. So this needs to be released with the immediate
> ESB or APIM release.
>
> @Viraj - Please include this feature in next ESB release. I have
> already sent a pull request by including this to 
> carbon-feature-repository.
>
> Thanks,
> Malith
>
> On Mon, Apr 25, 2016 at 5:44 PM, Malith Dhanushka 
> wrote:
>
>> Hi Niranjan,
>>
>> Since this feature doesn't ship by default in any of the products,
>> please go ahead and merge this as an special case.
>>
>> Thanks,
>> Malith
>>
>> On Tue, Apr 12, 2016 at 10:56 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Malith,
>>>
>>> On Fri, Mar 18, 2016 at 11:42 AM, Malith Dhanushka 
>>> wrote:
>>>


 On Fri, Mar 18, 2016 at 11:38 AM, Kishanthan Thangarajah <
 kishant...@wso2.com> wrote:

> This new change is only for OSGi based servers in the platform
> right? Are there any changes for standalone data publishing API's 
> used with
> non-OSGi servers in the platform or is it still the same as before? 
> We have
> AS 6.0.0 which is based on pure tomcat and currently we are using the
> minimum required data publishing libs and the standalone data 
> publishing
> API's to publish HTTP stats to DAS.
>

 Yes this new change is only for OSGi based servers and no change in
 standalone data publishing API's.


> On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka  > wrote:
>
>> Hi all,
>>
>> Please follow the steps bellow when publishing events from carbon
>> servers to DAS/CEP. Here we keep the DAS/CEP server location in
>> CARBON_HOME/repository/deployment/server/eventpublishers directory 
>> and this
>> is common across platform.
>>
>> - Install the Event Publisher Aggregate feature from p2_repo [1]
>>
>> - Install Registry Core feature if not installed
>>
>> - Create event stream and deploy that to
>> CARBON_HOME/repository/deployment/server/eventstreams
>>
>> - Create publishers for the created stream and deploy that to
>>  CARBON_HOME/repository/deployment/server/eventpublishers
>> Following is a sample 

Re: [Dev] [Architecture] Common configuration for publishing events from carbon servers to DAS/CEP

2016-05-20 Thread Pulasthi Mahawithana
Hi Niranjan,

It was failing with the p2 repo that is created in p2-profile-gen. Looking
at the pom at [1], this feature only imports the org.wso2.carbon.core which
is available in IS but as a different patch release version. Does the
difference in the patch release version matter here? Or is it due to
something else?

[1]
https://github.com/wso2/carbon-analytics-common/blob/v5.0.11/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature/pom.xml

On Fri, May 20, 2016 at 2:10 PM, Niranjan Karunanandham 
wrote:

> Hi Pulasthi,
>
> When building the product, are you referring to the p2-repo of the locally
> built carbon-feature-repository or to a p2-repo that you create in
> p2-profile-gen. If so this issue can happen if the feature that you are
> installing has import features which are not there in your p2-repo.
>
> @Malith: As per the previous mail, can you close this PR since it need to
> come from the PR from the product team which will be using the feature.
>
> Regards,
> Nira
>
> Regards,
> Nira
>
> On Fri, May 20, 2016 at 12:47 PM, Pulasthi Mahawithana  > wrote:
>
>> I tried to add this feature to product-is 's p2-profile-gen. But it fails
>> saying,
>>
>> Installation failed.
>> The installable unit
>> org.wso2.carbon.event.publisher.aggregate.feature.group/5.0.11 has not been
>> found.
>>
>> However I can install it from feature management UI when I merged and
>> built the carbon feature repository locally with the PR at [1] and point
>> that as a local repository. Any possible causes for this?
>>
>> [1] https://github.com/wso2/carbon-feature-repository/pull/46
>>
>> On Wed, Apr 27, 2016 at 9:08 AM, Niranjan Karunanandham <
>> niran...@wso2.com> wrote:
>>
>>> Hi Malith,
>>>
>>> Since this feature will be included in the next ESB release, IMO it
>>> would be better to close the current PR and have it included in the same PR
>>> after the product release.
>>>
>>> Regards,
>>> Nira
>>>
>>> On Mon, Apr 25, 2016 at 6:05 PM, Malith Dhanushka 
>>> wrote:
>>>
 Hi Niranjan,

 Correction on my previous reply. we have to ship this feature by
 default with ESB and APIM. So this needs to be released with the immediate
 ESB or APIM release.

 @Viraj - Please include this feature in next ESB release. I have
 already sent a pull request by including this to carbon-feature-repository.

 Thanks,
 Malith

 On Mon, Apr 25, 2016 at 5:44 PM, Malith Dhanushka 
 wrote:

> Hi Niranjan,
>
> Since this feature doesn't ship by default in any of the products,
> please go ahead and merge this as an special case.
>
> Thanks,
> Malith
>
> On Tue, Apr 12, 2016 at 10:56 AM, Niranjan Karunanandham <
> niran...@wso2.com> wrote:
>
>> Hi Malith,
>>
>> On Fri, Mar 18, 2016 at 11:42 AM, Malith Dhanushka 
>> wrote:
>>
>>>
>>>
>>> On Fri, Mar 18, 2016 at 11:38 AM, Kishanthan Thangarajah <
>>> kishant...@wso2.com> wrote:
>>>
 This new change is only for OSGi based servers in the platform
 right? Are there any changes for standalone data publishing API's used 
 with
 non-OSGi servers in the platform or is it still the same as before? We 
 have
 AS 6.0.0 which is based on pure tomcat and currently we are using the
 minimum required data publishing libs and the standalone data 
 publishing
 API's to publish HTTP stats to DAS.

>>>
>>> Yes this new change is only for OSGi based servers and no change in
>>> standalone data publishing API's.
>>>
>>>
 On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka 
 wrote:

> Hi all,
>
> Please follow the steps bellow when publishing events from carbon
> servers to DAS/CEP. Here we keep the DAS/CEP server location in
> CARBON_HOME/repository/deployment/server/eventpublishers directory 
> and this
> is common across platform.
>
> - Install the Event Publisher Aggregate feature from p2_repo [1]
>
> - Install Registry Core feature if not installed
>
> - Create event stream and deploy that to
> CARBON_HOME/repository/deployment/server/eventstreams
>
> - Create publishers for the created stream and deploy that to
>  CARBON_HOME/repository/deployment/server/eventpublishers
> Following is a sample configuration,
>
> 
>  trace="disable" xmlns="http://wso2.org/carbon/eventpublisher;>
>   
>   
>   
> admin
> thrift
> non-blocking
> 0
> tcp://localhost:7611
> X
>   
> 
>
> - Publish events to the created stream using
> 

Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Waruna Jayaweera
Hi all,
Yes. It worked for me as well.

Thanks,
Waruna

On Fri, May 20, 2016 at 2:29 PM, Vinod Kavinda  wrote:

> Hi Waruna,
>
> 
>
> 
>
> 
>
> 
>
> 
>
> Worked for me. Ypuu need to have expression tag.
>
> Regards,
>
> Vinod
>
> On Fri, May 20, 2016 at 2:16 PM, Milinda Perera  wrote:
>
>> Hi,
>>
>> Try this:
>>
>> 
>> "Dynamic content "+ ${variable}
>> 
>>
>> Thanks,
>> Mili
>>
>> On Fri, May 20, 2016 at 1:51 PM, Waruna Jayaweera 
>> wrote:
>>
>>> Hi,
>>> Thanks. Non html is working but we cannot add dynamic values to mail
>>> body.
>>> ex.
>>>  
>>>   
>>> 
>>>
>>> I am getting plain text as email body.
>>>
>>> Thanks,
>>> Waruna
>>>
>>> On Fri, May 20, 2016 at 1:00 PM, Himasha Guruge 
>>> wrote:
>>>
 Hi Waruna,

 You can send the content if you pass the message body from 'non html'
 field.  For example,

  
   
 

 Thanks,
 Himasha

 On Fri, May 20, 2016 at 12:50 PM, Waruna Jayaweera 
 wrote:

> Hi,
> I tried the same sample but I am receiving empty mail body. I get the
> mail subject correctly but mail body is missing. Appreciate any help on
> this.
>
> Thanks,
> Waruna
>
> On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge 
> wrote:
>
>> Hi Luis,
>>
>> I have tested email task in BPS 3.5.1 server with following steps.
>>
>> 1. Add the configurations in /repository/conf/activti.xml.
>> Please look into attached, for further reference.
>> 2. Add required jars mentioned in [1]  into
>> /repository/components/lib.
>> 3. Deploy the sample, and start the process from bpmn-explorer.
>>
>> As Amal mentioned make sure you have enabled less secure apps to
>> access. I'm also attaching the sample I used. (MyProcess.bar)
>>
>> [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task
>>
>> Thanks,
>> Himasha
>>
>>
>> On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana <
>> nand...@wso2.com> wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Amal Gunatilake 
>>> Date: Wed, May 18, 2016 at 9:29 PM
>>> Subject: Re: WSO2 BPS - Email Task
>>> To: Luis Calderon Rodríguez 
>>> Cc: Nandika Jayawardana , Hasitha Hiranya <
>>> hasit...@wso2.com>, Miler Alberto García Villanueva <
>>> miler.gar...@proxus.pe>
>>>
>>>
>>> Hi Luis,
>>>
>>> Seems like you have everything in order from BPS side
>>> configurations.
>>>
>>> I can only think of one more configuration that is missing on your
>>> steps. Have you enabled Gmail security settings[1] to allow less secure
>>> apps to access?
>>>
>>> [1] https://support.google.com/accounts/answer/6010255?hl=en
>>>
>>> Best regards,
>>> Amal.
>>>
>>> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
>>> luis.calde...@proxus.pe> wrote:
>>>
 Hi Amal,


 Thanks for answering this mail.


 If I have installed the latest version:
 /opt/wso2bps-3.5.1/repository/deployment/server/


 Copy the dependencies jar :
 /opt/wso2bps-3.5.1./repository/components/lib/


 org.apache.commons:commons-email:jar:1.3

 javax.mail:mail:jar:1.4.7

 javax.activation:activation:jar:1.1


 Then, set the parameters in the file activiti.xml:
 /opt/wso2bps-3.5.1./repository/conf/


 

 

 

 

 

 



 Finally restart the server, but still the problem persists.


 Best regards
 Luis

 2016-05-18 1:09 GMT-05:00 Amal Gunatilake :

> Hi Luis,
>
> There was a dependency issue[1] in email task which we fixed in
> BPS 3.5.1 release. Could you please try it out with the latest BPS 
> release?
> This should probably resolve the error.
>
> [1] https://wso2.org/jira/browse/BPS-978
>
> Best regards,
> Amal.
>
> On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
> luis.calde...@proxus.pe> wrote:
>
>> Hi guys,
>>
>>
>> I hope you are very well.
>>
>>
>> I've had some problems with mail tasks,I have this error
>> message: “Error starting process:
>> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
>> ”
>>
>>
>>
>> I 'm using these jar:
>>
>>

Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Vinod Kavinda
Hi Waruna,











Worked for me. Ypuu need to have expression tag.

Regards,

Vinod

On Fri, May 20, 2016 at 2:16 PM, Milinda Perera  wrote:

> Hi,
>
> Try this:
>
> 
> "Dynamic content "+ ${variable}
> 
>
> Thanks,
> Mili
>
> On Fri, May 20, 2016 at 1:51 PM, Waruna Jayaweera 
> wrote:
>
>> Hi,
>> Thanks. Non html is working but we cannot add dynamic values to mail body.
>> ex.
>>  
>>   
>> 
>>
>> I am getting plain text as email body.
>>
>> Thanks,
>> Waruna
>>
>> On Fri, May 20, 2016 at 1:00 PM, Himasha Guruge 
>> wrote:
>>
>>> Hi Waruna,
>>>
>>> You can send the content if you pass the message body from 'non html'
>>> field.  For example,
>>>
>>>  
>>>   
>>> 
>>>
>>> Thanks,
>>> Himasha
>>>
>>> On Fri, May 20, 2016 at 12:50 PM, Waruna Jayaweera 
>>> wrote:
>>>
 Hi,
 I tried the same sample but I am receiving empty mail body. I get the
 mail subject correctly but mail body is missing. Appreciate any help on
 this.

 Thanks,
 Waruna

 On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge 
 wrote:

> Hi Luis,
>
> I have tested email task in BPS 3.5.1 server with following steps.
>
> 1. Add the configurations in /repository/conf/activti.xml.
> Please look into attached, for further reference.
> 2. Add required jars mentioned in [1]  into
> /repository/components/lib.
> 3. Deploy the sample, and start the process from bpmn-explorer.
>
> As Amal mentioned make sure you have enabled less secure apps to
> access. I'm also attaching the sample I used. (MyProcess.bar)
>
> [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task
>
> Thanks,
> Himasha
>
>
> On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana <
> nand...@wso2.com> wrote:
>
>>
>> -- Forwarded message --
>> From: Amal Gunatilake 
>> Date: Wed, May 18, 2016 at 9:29 PM
>> Subject: Re: WSO2 BPS - Email Task
>> To: Luis Calderon Rodríguez 
>> Cc: Nandika Jayawardana , Hasitha Hiranya <
>> hasit...@wso2.com>, Miler Alberto García Villanueva <
>> miler.gar...@proxus.pe>
>>
>>
>> Hi Luis,
>>
>> Seems like you have everything in order from BPS side configurations.
>>
>> I can only think of one more configuration that is missing on your
>> steps. Have you enabled Gmail security settings[1] to allow less secure
>> apps to access?
>>
>> [1] https://support.google.com/accounts/answer/6010255?hl=en
>>
>> Best regards,
>> Amal.
>>
>> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
>> luis.calde...@proxus.pe> wrote:
>>
>>> Hi Amal,
>>>
>>>
>>> Thanks for answering this mail.
>>>
>>>
>>> If I have installed the latest version:
>>> /opt/wso2bps-3.5.1/repository/deployment/server/
>>>
>>>
>>> Copy the dependencies jar :
>>> /opt/wso2bps-3.5.1./repository/components/lib/
>>>
>>>
>>> org.apache.commons:commons-email:jar:1.3
>>>
>>> javax.mail:mail:jar:1.4.7
>>>
>>> javax.activation:activation:jar:1.1
>>>
>>>
>>> Then, set the parameters in the file activiti.xml:
>>> /opt/wso2bps-3.5.1./repository/conf/
>>>
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>>
>>>
>>> Finally restart the server, but still the problem persists.
>>>
>>>
>>> Best regards
>>> Luis
>>>
>>> 2016-05-18 1:09 GMT-05:00 Amal Gunatilake :
>>>
 Hi Luis,

 There was a dependency issue[1] in email task which we fixed in BPS
 3.5.1 release. Could you please try it out with the latest BPS release?
 This should probably resolve the error.

 [1] https://wso2.org/jira/browse/BPS-978

 Best regards,
 Amal.

 On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
 luis.calde...@proxus.pe> wrote:

> Hi guys,
>
>
> I hope you are very well.
>
>
> I've had some problems with mail tasks,I have this error message:
> “Error starting process:
> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
> ”
>
>
>
> I 'm using these jar:
>
>
>
> org.apache.commons:commons-email:jar:1.3
>
> javax.mail:mail:jar:1.4.7
>
> javax.activation:activation:jar:1.1
>
>
> activity.xml
>
> ==
>
> http://www.springframework.org/schema/beans;

Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Milinda Perera
Hi,

Try this:


"Dynamic content "+ ${variable}


Thanks,
Mili

On Fri, May 20, 2016 at 1:51 PM, Waruna Jayaweera  wrote:

> Hi,
> Thanks. Non html is working but we cannot add dynamic values to mail body.
> ex.
>  
>   
> 
>
> I am getting plain text as email body.
>
> Thanks,
> Waruna
>
> On Fri, May 20, 2016 at 1:00 PM, Himasha Guruge  wrote:
>
>> Hi Waruna,
>>
>> You can send the content if you pass the message body from 'non html'
>> field.  For example,
>>
>>  
>>   
>> 
>>
>> Thanks,
>> Himasha
>>
>> On Fri, May 20, 2016 at 12:50 PM, Waruna Jayaweera 
>> wrote:
>>
>>> Hi,
>>> I tried the same sample but I am receiving empty mail body. I get the
>>> mail subject correctly but mail body is missing. Appreciate any help on
>>> this.
>>>
>>> Thanks,
>>> Waruna
>>>
>>> On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge 
>>> wrote:
>>>
 Hi Luis,

 I have tested email task in BPS 3.5.1 server with following steps.

 1. Add the configurations in /repository/conf/activti.xml.
 Please look into attached, for further reference.
 2. Add required jars mentioned in [1]  into
 /repository/components/lib.
 3. Deploy the sample, and start the process from bpmn-explorer.

 As Amal mentioned make sure you have enabled less secure apps to
 access. I'm also attaching the sample I used. (MyProcess.bar)

 [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task

 Thanks,
 Himasha


 On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana  wrote:

>
> -- Forwarded message --
> From: Amal Gunatilake 
> Date: Wed, May 18, 2016 at 9:29 PM
> Subject: Re: WSO2 BPS - Email Task
> To: Luis Calderon Rodríguez 
> Cc: Nandika Jayawardana , Hasitha Hiranya <
> hasit...@wso2.com>, Miler Alberto García Villanueva <
> miler.gar...@proxus.pe>
>
>
> Hi Luis,
>
> Seems like you have everything in order from BPS side configurations.
>
> I can only think of one more configuration that is missing on your
> steps. Have you enabled Gmail security settings[1] to allow less secure
> apps to access?
>
> [1] https://support.google.com/accounts/answer/6010255?hl=en
>
> Best regards,
> Amal.
>
> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
> luis.calde...@proxus.pe> wrote:
>
>> Hi Amal,
>>
>>
>> Thanks for answering this mail.
>>
>>
>> If I have installed the latest version:
>> /opt/wso2bps-3.5.1/repository/deployment/server/
>>
>>
>> Copy the dependencies jar :
>> /opt/wso2bps-3.5.1./repository/components/lib/
>>
>>
>> org.apache.commons:commons-email:jar:1.3
>>
>> javax.mail:mail:jar:1.4.7
>>
>> javax.activation:activation:jar:1.1
>>
>>
>> Then, set the parameters in the file activiti.xml:
>> /opt/wso2bps-3.5.1./repository/conf/
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>> Finally restart the server, but still the problem persists.
>>
>>
>> Best regards
>> Luis
>>
>> 2016-05-18 1:09 GMT-05:00 Amal Gunatilake :
>>
>>> Hi Luis,
>>>
>>> There was a dependency issue[1] in email task which we fixed in BPS
>>> 3.5.1 release. Could you please try it out with the latest BPS release?
>>> This should probably resolve the error.
>>>
>>> [1] https://wso2.org/jira/browse/BPS-978
>>>
>>> Best regards,
>>> Amal.
>>>
>>> On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
>>> luis.calde...@proxus.pe> wrote:
>>>
 Hi guys,


 I hope you are very well.


 I've had some problems with mail tasks,I have this error message: 
 “Error
 starting process:
 org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
 ”



 I 'm using these jar:



 org.apache.commons:commons-email:jar:1.3

 javax.mail:mail:jar:1.4.7

 javax.activation:activation:jar:1.1


 activity.xml

 ==

 http://www.springframework.org/schema/beans;

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation="
 http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans.xsd;>



 >>> 

Re: [Dev] [Architecture] Common configuration for publishing events from carbon servers to DAS/CEP

2016-05-20 Thread Niranjan Karunanandham
Hi Pulasthi,

When building the product, are you referring to the p2-repo of the locally
built carbon-feature-repository or to a p2-repo that you create in
p2-profile-gen. If so this issue can happen if the feature that you are
installing has import features which are not there in your p2-repo.

@Malith: As per the previous mail, can you close this PR since it need to
come from the PR from the product team which will be using the feature.

Regards,
Nira

Regards,
Nira

On Fri, May 20, 2016 at 12:47 PM, Pulasthi Mahawithana 
wrote:

> I tried to add this feature to product-is 's p2-profile-gen. But it fails
> saying,
>
> Installation failed.
> The installable unit
> org.wso2.carbon.event.publisher.aggregate.feature.group/5.0.11 has not been
> found.
>
> However I can install it from feature management UI when I merged and
> built the carbon feature repository locally with the PR at [1] and point
> that as a local repository. Any possible causes for this?
>
> [1] https://github.com/wso2/carbon-feature-repository/pull/46
>
> On Wed, Apr 27, 2016 at 9:08 AM, Niranjan Karunanandham  > wrote:
>
>> Hi Malith,
>>
>> Since this feature will be included in the next ESB release, IMO it would
>> be better to close the current PR and have it included in the same PR after
>> the product release.
>>
>> Regards,
>> Nira
>>
>> On Mon, Apr 25, 2016 at 6:05 PM, Malith Dhanushka 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Correction on my previous reply. we have to ship this feature by default
>>> with ESB and APIM. So this needs to be released with the immediate ESB or
>>> APIM release.
>>>
>>> @Viraj - Please include this feature in next ESB release. I have already
>>> sent a pull request by including this to carbon-feature-repository.
>>>
>>> Thanks,
>>> Malith
>>>
>>> On Mon, Apr 25, 2016 at 5:44 PM, Malith Dhanushka 
>>> wrote:
>>>
 Hi Niranjan,

 Since this feature doesn't ship by default in any of the products,
 please go ahead and merge this as an special case.

 Thanks,
 Malith

 On Tue, Apr 12, 2016 at 10:56 AM, Niranjan Karunanandham <
 niran...@wso2.com> wrote:

> Hi Malith,
>
> On Fri, Mar 18, 2016 at 11:42 AM, Malith Dhanushka 
> wrote:
>
>>
>>
>> On Fri, Mar 18, 2016 at 11:38 AM, Kishanthan Thangarajah <
>> kishant...@wso2.com> wrote:
>>
>>> This new change is only for OSGi based servers in the platform
>>> right? Are there any changes for standalone data publishing API's used 
>>> with
>>> non-OSGi servers in the platform or is it still the same as before? We 
>>> have
>>> AS 6.0.0 which is based on pure tomcat and currently we are using the
>>> minimum required data publishing libs and the standalone data publishing
>>> API's to publish HTTP stats to DAS.
>>>
>>
>> Yes this new change is only for OSGi based servers and no change in
>> standalone data publishing API's.
>>
>>
>>> On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka 
>>> wrote:
>>>
 Hi all,

 Please follow the steps bellow when publishing events from carbon
 servers to DAS/CEP. Here we keep the DAS/CEP server location in
 CARBON_HOME/repository/deployment/server/eventpublishers directory and 
 this
 is common across platform.

 - Install the Event Publisher Aggregate feature from p2_repo [1]

 - Install Registry Core feature if not installed

 - Create event stream and deploy that to
 CARBON_HOME/repository/deployment/server/eventstreams

 - Create publishers for the created stream and deploy that to
  CARBON_HOME/repository/deployment/server/eventpublishers
 Following is a sample configuration,

 
 >>> xmlns="http://wso2.org/carbon/eventpublisher;>
   
   
   
 admin
 thrift
 non-blocking
 0
 tcp://localhost:7611
 X
   
 

 - Publish events to the created stream using
 org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
 Following is a sample code snippet.

 Event event = new Event();
 event.setTimeStamp(System.currentTimeMillis());
 event.setStreamId("streamTest:1.0.0");
 event.setPayloadData(new Object[]{data});
 eventStreamService.publish(event);

 Please note that Event Publisher Aggregate feature is not yet
 included in carbon feature repo. It will be available with the 
 immediate
 analytics feature release.

>>> Usually features are added to the p2-repo (carbon-feature-repository
> repo) when products are released. The product team has to send a PR of all

[Dev] [MSF4J] Clarification on debugging a micro service

2016-05-20 Thread Sabra Ossen
Hi All,

I am trying the example in [1] and trying to debug the micro service and
identify details of events being published to WSO2 DAS. I set a debug point
in [2] and I could see that the HTTPMonitoringInterceptor is initialized
and then the HTTPMonitoringDataPublisher is initialized.

The data has been published to the DAS. But during debugging the code
doesn't reach debug point [3] when I invoke the micro service.

Am I debugging the micro service correctly. Any clarification on the issue
is appreciated.

[1]
https://github.com/wso2/msf4j/tree/master/samples/metrics-httpmon/metrics-httpmon-fatjar
[2]
https://github.com/wso2/msf4j/blob/master/samples/metrics-httpmon/metrics-httpmon-fatjar/src/main/java/org/wso2/msf4j/example/Application.java#L36
[3]
https://github.com/wso2/msf4j/blob/master/analytics/msf4j-analytics/src/main/java/org/wso2/msf4j/analytics/httpmonitoring/HTTPMonitoringDataPublisher.java#L182

Thanks and Regards.

-- 
*Sabra Ossen*
*Software Engineer*
Email: sa...@wso2.com
Mobile: +94 767 837356
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Waruna Jayaweera
Hi,
Thanks. Non html is working but we cannot add dynamic values to mail body.
ex.
 
  


I am getting plain text as email body.

Thanks,
Waruna

On Fri, May 20, 2016 at 1:00 PM, Himasha Guruge  wrote:

> Hi Waruna,
>
> You can send the content if you pass the message body from 'non html'
> field.  For example,
>
>  
>   
> 
>
> Thanks,
> Himasha
>
> On Fri, May 20, 2016 at 12:50 PM, Waruna Jayaweera 
> wrote:
>
>> Hi,
>> I tried the same sample but I am receiving empty mail body. I get the
>> mail subject correctly but mail body is missing. Appreciate any help on
>> this.
>>
>> Thanks,
>> Waruna
>>
>> On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge 
>> wrote:
>>
>>> Hi Luis,
>>>
>>> I have tested email task in BPS 3.5.1 server with following steps.
>>>
>>> 1. Add the configurations in /repository/conf/activti.xml.
>>> Please look into attached, for further reference.
>>> 2. Add required jars mentioned in [1]  into
>>> /repository/components/lib.
>>> 3. Deploy the sample, and start the process from bpmn-explorer.
>>>
>>> As Amal mentioned make sure you have enabled less secure apps to access.
>>> I'm also attaching the sample I used. (MyProcess.bar)
>>>
>>> [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task
>>>
>>> Thanks,
>>> Himasha
>>>
>>>
>>> On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana 
>>> wrote:
>>>

 -- Forwarded message --
 From: Amal Gunatilake 
 Date: Wed, May 18, 2016 at 9:29 PM
 Subject: Re: WSO2 BPS - Email Task
 To: Luis Calderon Rodríguez 
 Cc: Nandika Jayawardana , Hasitha Hiranya <
 hasit...@wso2.com>, Miler Alberto García Villanueva <
 miler.gar...@proxus.pe>


 Hi Luis,

 Seems like you have everything in order from BPS side configurations.

 I can only think of one more configuration that is missing on your
 steps. Have you enabled Gmail security settings[1] to allow less secure
 apps to access?

 [1] https://support.google.com/accounts/answer/6010255?hl=en

 Best regards,
 Amal.

 On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
 luis.calde...@proxus.pe> wrote:

> Hi Amal,
>
>
> Thanks for answering this mail.
>
>
> If I have installed the latest version:
> /opt/wso2bps-3.5.1/repository/deployment/server/
>
>
> Copy the dependencies jar :
> /opt/wso2bps-3.5.1./repository/components/lib/
>
>
> org.apache.commons:commons-email:jar:1.3
>
> javax.mail:mail:jar:1.4.7
>
> javax.activation:activation:jar:1.1
>
>
> Then, set the parameters in the file activiti.xml:
> /opt/wso2bps-3.5.1./repository/conf/
>
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> Finally restart the server, but still the problem persists.
>
>
> Best regards
> Luis
>
> 2016-05-18 1:09 GMT-05:00 Amal Gunatilake :
>
>> Hi Luis,
>>
>> There was a dependency issue[1] in email task which we fixed in BPS
>> 3.5.1 release. Could you please try it out with the latest BPS release?
>> This should probably resolve the error.
>>
>> [1] https://wso2.org/jira/browse/BPS-978
>>
>> Best regards,
>> Amal.
>>
>> On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
>> luis.calde...@proxus.pe> wrote:
>>
>>> Hi guys,
>>>
>>>
>>> I hope you are very well.
>>>
>>>
>>> I've had some problems with mail tasks,I have this error message: “Error
>>> starting process:
>>> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
>>> ”
>>>
>>>
>>>
>>> I 'm using these jar:
>>>
>>>
>>>
>>> org.apache.commons:commons-email:jar:1.3
>>>
>>> javax.mail:mail:jar:1.4.7
>>>
>>> javax.activation:activation:jar:1.1
>>>
>>>
>>> activity.xml
>>>
>>> ==
>>>
>>> http://www.springframework.org/schema/beans;
>>>
>>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>>>
>>>xsi:schemaLocation="
>>> http://www.springframework.org/schema/beans
>>> http://www.springframework.org/schema/beans/spring-beans.xsd;>
>>>
>>>
>>>
>>> >> class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
>>>
>>>
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>  
>>>
>>>
>>>
>>> 
>>>
>>>
>>>

Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Himasha Guruge
Hi Waruna,

You can send the content if you pass the message body from 'non html'
field.  For example,

 
  


Thanks,
Himasha

On Fri, May 20, 2016 at 12:50 PM, Waruna Jayaweera  wrote:

> Hi,
> I tried the same sample but I am receiving empty mail body. I get the mail
> subject correctly but mail body is missing. Appreciate any help on this.
>
> Thanks,
> Waruna
>
> On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge 
> wrote:
>
>> Hi Luis,
>>
>> I have tested email task in BPS 3.5.1 server with following steps.
>>
>> 1. Add the configurations in /repository/conf/activti.xml.
>> Please look into attached, for further reference.
>> 2. Add required jars mentioned in [1]  into
>> /repository/components/lib.
>> 3. Deploy the sample, and start the process from bpmn-explorer.
>>
>> As Amal mentioned make sure you have enabled less secure apps to access.
>> I'm also attaching the sample I used. (MyProcess.bar)
>>
>> [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task
>>
>> Thanks,
>> Himasha
>>
>>
>> On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana 
>> wrote:
>>
>>>
>>> -- Forwarded message --
>>> From: Amal Gunatilake 
>>> Date: Wed, May 18, 2016 at 9:29 PM
>>> Subject: Re: WSO2 BPS - Email Task
>>> To: Luis Calderon Rodríguez 
>>> Cc: Nandika Jayawardana , Hasitha Hiranya <
>>> hasit...@wso2.com>, Miler Alberto García Villanueva <
>>> miler.gar...@proxus.pe>
>>>
>>>
>>> Hi Luis,
>>>
>>> Seems like you have everything in order from BPS side configurations.
>>>
>>> I can only think of one more configuration that is missing on your
>>> steps. Have you enabled Gmail security settings[1] to allow less secure
>>> apps to access?
>>>
>>> [1] https://support.google.com/accounts/answer/6010255?hl=en
>>>
>>> Best regards,
>>> Amal.
>>>
>>> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
>>> luis.calde...@proxus.pe> wrote:
>>>
 Hi Amal,


 Thanks for answering this mail.


 If I have installed the latest version:
 /opt/wso2bps-3.5.1/repository/deployment/server/


 Copy the dependencies jar :
 /opt/wso2bps-3.5.1./repository/components/lib/


 org.apache.commons:commons-email:jar:1.3

 javax.mail:mail:jar:1.4.7

 javax.activation:activation:jar:1.1


 Then, set the parameters in the file activiti.xml:
 /opt/wso2bps-3.5.1./repository/conf/


 

 

 

 

 

 



 Finally restart the server, but still the problem persists.


 Best regards
 Luis

 2016-05-18 1:09 GMT-05:00 Amal Gunatilake :

> Hi Luis,
>
> There was a dependency issue[1] in email task which we fixed in BPS
> 3.5.1 release. Could you please try it out with the latest BPS release?
> This should probably resolve the error.
>
> [1] https://wso2.org/jira/browse/BPS-978
>
> Best regards,
> Amal.
>
> On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
> luis.calde...@proxus.pe> wrote:
>
>> Hi guys,
>>
>>
>> I hope you are very well.
>>
>>
>> I've had some problems with mail tasks,I have this error message: “Error
>> starting process:
>> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
>> ”
>>
>>
>>
>> I 'm using these jar:
>>
>>
>>
>> org.apache.commons:commons-email:jar:1.3
>>
>> javax.mail:mail:jar:1.4.7
>>
>> javax.activation:activation:jar:1.1
>>
>>
>> activity.xml
>>
>> ==
>>
>> http://www.springframework.org/schema/beans;
>>
>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>>
>>xsi:schemaLocation="
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans.xsd;>
>>
>>
>>
>> > class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>>
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>
>>
>> 
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>>
>>
>> 
>>
>> ==
>>
>>
>> Thanks
>>
>> Luis
>>
>>
>>
>>
>> 2016-04-12 16:17 GMT-05:00 Luis 

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Danushka Fernando
This only works with plain jaggery. Cant use inside any framework. Require
function even doesn't work.

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

On Fri, May 20, 2016 at 11:46 AM, Danushka Fernando 
wrote:

> My log file rolled and tail got expired thats why I saw no logs. Actually
> problem is my jaggery call to modules. I am getting exception below.
>
> var logMap = mod.getFormattedRuntimeLogs(applicationKey, selectedRevision, 
> "");
>
> Is there a way to ged rid of this?
>
> TID: [0] [AS] [2016-05-20 11:42:09,784] ERROR
> {org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
> reading request, ignored {org.apache.co
> yote.AbstractProtocol$AbstractConnectionHandler}
> org.mozilla.javascript.WrappedException: Wrapped
> java.util.NoSuchElementException (/appmgt/jagg/jagg.jag#377)
>at
> org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
>at
> org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
>at
> org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
>at
> org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_37(/appmgt/jagg/jagg.jag:377)
>
>at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag)
>at
> org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
>at
> org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0._c_anonymous_2(/appmgt/modules/runtimeLogs/module.jag:26)
>
>at
> org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0.call(/appmgt/modules/runtimeLogs/module.jag)
>
>at
> org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
>at
> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0._c_anonymous_1(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag:37)
>
>at
> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)
>
>at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
>at
> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
>at
> org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)
>
>at
> org.jaggeryjs.hostobjects.web.WebSocketHostObject.processText(WebSocketHostObject.java:139)
>
>at
> org.jaggeryjs.jaggery.core.websocket.WSMessageInBound.onTextMessage(WSMessageInBound.java:36)
>
>at
> org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74)
>
>at
> org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186)
>
>at
> org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134)
>at
> org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)
>
>at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:587)
>
>at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
>
>at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>
>at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>at java.lang.Thread.run(Thread.java:744)
> Caused by: java.util.NoSuchElementException
>at java.util.Vector.lastElement(Vector.java:499)
>at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:226)
>
>at
> org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:318)
>
>at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>at java.lang.reflect.Method.invoke(Method.java:606)
>at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
>... 24 more
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Fri, May 20, 2016 at 11:18 AM, Danushka Fernando 
> wrote:
>
>> This is my server side looks like
>>
>>
>> <%
>> /*
>>  * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
>>  *
>>  *   WSO2 Inc. licenses this file to you under the Apache License,
>>  *   Version 2.0 (the "License"); you may not use this file except
>>  *   in compliance with the License.
>>  *   You may obtain a copy of the License at
>>  *
>>  *  http://www.apache.org/licenses/LICENSE-2.0
>>  *
>>  *   Unless required by applicable law or agreed to in writing,
>>  *   software distributed under the License is distributed on an
>>  *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>>  *   KIND, either express or implied.  See the License for the
>>  *   specific 

Re: [Dev] WSO2 BPS - Email Task

2016-05-20 Thread Waruna Jayaweera
Hi,
I tried the same sample but I am receiving empty mail body. I get the mail
subject correctly but mail body is missing. Appreciate any help on this.

Thanks,
Waruna

On Thu, May 19, 2016 at 11:10 AM, Himasha Guruge  wrote:

> Hi Luis,
>
> I have tested email task in BPS 3.5.1 server with following steps.
>
> 1. Add the configurations in /repository/conf/activti.xml.
> Please look into attached, for further reference.
> 2. Add required jars mentioned in [1]  into
> /repository/components/lib.
> 3. Deploy the sample, and start the process from bpmn-explorer.
>
> As Amal mentioned make sure you have enabled less secure apps to access.
> I'm also attaching the sample I used. (MyProcess.bar)
>
> [1] https://docs.wso2.com/display/BPS351/Working+With+Email+Task
>
> Thanks,
> Himasha
>
>
> On Thu, May 19, 2016 at 10:08 AM, Nandika Jayawardana 
> wrote:
>
>>
>> -- Forwarded message --
>> From: Amal Gunatilake 
>> Date: Wed, May 18, 2016 at 9:29 PM
>> Subject: Re: WSO2 BPS - Email Task
>> To: Luis Calderon Rodríguez 
>> Cc: Nandika Jayawardana , Hasitha Hiranya <
>> hasit...@wso2.com>, Miler Alberto García Villanueva <
>> miler.gar...@proxus.pe>
>>
>>
>> Hi Luis,
>>
>> Seems like you have everything in order from BPS side configurations.
>>
>> I can only think of one more configuration that is missing on your steps.
>> Have you enabled Gmail security settings[1] to allow less secure apps to
>> access?
>>
>> [1] https://support.google.com/accounts/answer/6010255?hl=en
>>
>> Best regards,
>> Amal.
>>
>> On Wed, May 18, 2016 at 9:05 PM, Luis Calderon Rodríguez <
>> luis.calde...@proxus.pe> wrote:
>>
>>> Hi Amal,
>>>
>>>
>>> Thanks for answering this mail.
>>>
>>>
>>> If I have installed the latest version:
>>> /opt/wso2bps-3.5.1/repository/deployment/server/
>>>
>>>
>>> Copy the dependencies jar :
>>> /opt/wso2bps-3.5.1./repository/components/lib/
>>>
>>>
>>> org.apache.commons:commons-email:jar:1.3
>>>
>>> javax.mail:mail:jar:1.4.7
>>>
>>> javax.activation:activation:jar:1.1
>>>
>>>
>>> Then, set the parameters in the file activiti.xml:
>>> /opt/wso2bps-3.5.1./repository/conf/
>>>
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>> 
>>>
>>>
>>>
>>> Finally restart the server, but still the problem persists.
>>>
>>>
>>> Best regards
>>> Luis
>>>
>>> 2016-05-18 1:09 GMT-05:00 Amal Gunatilake :
>>>
 Hi Luis,

 There was a dependency issue[1] in email task which we fixed in BPS
 3.5.1 release. Could you please try it out with the latest BPS release?
 This should probably resolve the error.

 [1] https://wso2.org/jira/browse/BPS-978

 Best regards,
 Amal.

 On Wed, May 18, 2016 at 11:13 AM, Luis Calderon Rodríguez <
 luis.calde...@proxus.pe> wrote:

> Hi guys,
>
>
> I hope you are very well.
>
>
> I've had some problems with mail tasks,I have this error message: “Error
> starting process:
> org.apache.commons.mail.Email.setSSLOnConnect(Z)Lorg/apache/commons/mail/Email
> ”
>
>
>
> I 'm using these jar:
>
>
>
> org.apache.commons:commons-email:jar:1.3
>
> javax.mail:mail:jar:1.4.7
>
> javax.activation:activation:jar:1.1
>
>
> activity.xml
>
> ==
>
> http://www.springframework.org/schema/beans;
>
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
>
>xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd;>
>
>
>
>  class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
>
>
>
> 
>
> 
>
> 
>
>
>
>
>
>  
>
>  
>
>  
>
>  
>
>  
>
>  
>
>
>
> 
>
>
>
> 
>
> 
>
> 
>
>
>
> 
>
> 
>
> 
>
> 
>
>
>
> 
>
> 
>
> 
>
>
>
> 
>
> ==
>
>
> Thanks
>
> Luis
>
>
>
>
> 2016-04-12 16:17 GMT-05:00 Luis Calderon Rodríguez <
> luis.calde...@proxus.pe>:
>
>> I'm very grateful for your answers.
>>
>> Thanks
>>
>> 2016-04-12 2:12 GMT-05:00 Nandika Jayawardana :
>>
>>> Hi Luis,
>>>
>>> A BPMN process executed in a transactional manner from one wait
>>> state to another wait state, Please refer to [1] for more details. 
>>> Hence,
>>> the bpmn db which keeps the state of the process instance will 

Re: [Dev] [Architecture] Common configuration for publishing events from carbon servers to DAS/CEP

2016-05-20 Thread Pulasthi Mahawithana
I tried to add this feature to product-is 's p2-profile-gen. But it fails
saying,

Installation failed.
The installable unit
org.wso2.carbon.event.publisher.aggregate.feature.group/5.0.11 has not been
found.

However I can install it from feature management UI when I merged and built
the carbon feature repository locally with the PR at [1] and point that as
a local repository. Any possible causes for this?

[1] https://github.com/wso2/carbon-feature-repository/pull/46

On Wed, Apr 27, 2016 at 9:08 AM, Niranjan Karunanandham 
wrote:

> Hi Malith,
>
> Since this feature will be included in the next ESB release, IMO it would
> be better to close the current PR and have it included in the same PR after
> the product release.
>
> Regards,
> Nira
>
> On Mon, Apr 25, 2016 at 6:05 PM, Malith Dhanushka  wrote:
>
>> Hi Niranjan,
>>
>> Correction on my previous reply. we have to ship this feature by default
>> with ESB and APIM. So this needs to be released with the immediate ESB or
>> APIM release.
>>
>> @Viraj - Please include this feature in next ESB release. I have already
>> sent a pull request by including this to carbon-feature-repository.
>>
>> Thanks,
>> Malith
>>
>> On Mon, Apr 25, 2016 at 5:44 PM, Malith Dhanushka 
>> wrote:
>>
>>> Hi Niranjan,
>>>
>>> Since this feature doesn't ship by default in any of the products,
>>> please go ahead and merge this as an special case.
>>>
>>> Thanks,
>>> Malith
>>>
>>> On Tue, Apr 12, 2016 at 10:56 AM, Niranjan Karunanandham <
>>> niran...@wso2.com> wrote:
>>>
 Hi Malith,

 On Fri, Mar 18, 2016 at 11:42 AM, Malith Dhanushka 
 wrote:

>
>
> On Fri, Mar 18, 2016 at 11:38 AM, Kishanthan Thangarajah <
> kishant...@wso2.com> wrote:
>
>> This new change is only for OSGi based servers in the platform right?
>> Are there any changes for standalone data publishing API's used with
>> non-OSGi servers in the platform or is it still the same as before? We 
>> have
>> AS 6.0.0 which is based on pure tomcat and currently we are using the
>> minimum required data publishing libs and the standalone data publishing
>> API's to publish HTTP stats to DAS.
>>
>
> Yes this new change is only for OSGi based servers and no change in
> standalone data publishing API's.
>
>
>> On Mon, Mar 14, 2016 at 4:51 PM, Malith Dhanushka 
>> wrote:
>>
>>> Hi all,
>>>
>>> Please follow the steps bellow when publishing events from carbon
>>> servers to DAS/CEP. Here we keep the DAS/CEP server location in
>>> CARBON_HOME/repository/deployment/server/eventpublishers directory and 
>>> this
>>> is common across platform.
>>>
>>> - Install the Event Publisher Aggregate feature from p2_repo [1]
>>>
>>> - Install Registry Core feature if not installed
>>>
>>> - Create event stream and deploy that to
>>> CARBON_HOME/repository/deployment/server/eventstreams
>>>
>>> - Create publishers for the created stream and deploy that to
>>>  CARBON_HOME/repository/deployment/server/eventpublishers
>>> Following is a sample configuration,
>>>
>>> 
>>> >> xmlns="http://wso2.org/carbon/eventpublisher;>
>>>   
>>>   
>>>   
>>> admin
>>> thrift
>>> non-blocking
>>> 0
>>> tcp://localhost:7611
>>> X
>>>   
>>> 
>>>
>>> - Publish events to the created stream using
>>> org.wso2.carbon.event.stream.core.EventStreamService OSGI service.
>>> Following is a sample code snippet.
>>>
>>> Event event = new Event();
>>> event.setTimeStamp(System.currentTimeMillis());
>>> event.setStreamId("streamTest:1.0.0");
>>> event.setPayloadData(new Object[]{data});
>>> eventStreamService.publish(event);
>>>
>>> Please note that Event Publisher Aggregate feature is not yet
>>> included in carbon feature repo. It will be available with the immediate
>>> analytics feature release.
>>>
>> Usually features are added to the p2-repo (carbon-feature-repository
 repo) when products are released. The product team has to send a PR of all
 the features they are using in the product (from the p2-profile-gen pom).
 Therefore this feature should come from the PR from the products which are
 using this feature when the product is released.


>
>>> [1]
>>> https://github.com/wso2/carbon-analytics-common/tree/master/features/event-publisher/org.wso2.carbon.event.publisher.aggregate.feature
>>>
>>> Thanks,
>>> Malith
>>> --
>>> Malith Dhanushka
>>> Senior Software Engineer - Data Technologies
>>> *WSO2, Inc. : wso2.com *
>>> *Mobile*  : +94 716 506 693
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org

[Dev] [C5] StartOrderResolverException in carbon deployment engine

2016-05-20 Thread Hasitha Aravinda
Hi Kasun,

We are getting following exception when starting the server. It seems like
Carbon deployment wasn't updated for latest kernel startupresolver. Could
you please check. ?

osgi> [2016-05-20 12:36:19,676] ERROR {org.wso2.carbon.core} -
FrameworkEvent ERROR - org.wso2.carbon.core
org.wso2.carbon.kernel.internal.startupresolver.StartOrderResolverException:
componentName value is missing in the services registered with the key
org.wso2.carbon.kernel.startupresolver.RequiredCapabilityListener,
implementation class name is
org.wso2.carbon.deployment.engine.internal.DeploymentEngineListenerComponent
at
org.wso2.carbon.kernel.internal.startupresolver.OSGiServiceCapabilityTracker$CapabilityServiceTrackerCustomizer.addingService(OSGiServiceCapabilityTracker.java:142)
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)
at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
at
org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:914)
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:862)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
at
org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
at
org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
at
org.eclipse.equinox.internal.ds.InstanceProcess.registerService(InstanceProcess.java:536)
at
org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:213)
at
org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at
org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at
org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at
org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at
org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)

Thanks,
Hasitha.

-- 
--
Hasitha Aravinda,
Senior Software Engineer,
WSO2 Inc.
Email: hasi...@wso2.com
Mobile : +94 718 210 200
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-20 Thread Chathura Ekanayake
Yes, we will have to go with REST calls. We need to run UI-backend and
server in separate jvms, when running the BPMN explorer in PC.

Regards,
Chathura

On Fri, May 20, 2016 at 11:28 AM, Nandika Jayawardana 
wrote:

> In case of BPS, what we develop is similar to a web application which
> should be independent of the BPS backend. Idea is that this component has
> to be packaged into PC ( process center ) as well as BPS. Hence, native
> OSGi call's is not sufficient for our requirement.
>
> Regards
> Nandika
>
> On Fri, May 20, 2016 at 11:17 AM, Rasika Perera  wrote:
>
>> Hi,
>>
>> We have came up with this best practise. There are basically two
>> scenarios;
>>
>> 1. When the back-end is belongs to your product(eg. calling BPS runtime).
>>
>> We assume that you have written your JAX-RS based on an OSGi service.
>> JAX-RS will *not* hold any business logic and act as API interface(Facade
>> Pattern). In this case making a network call(AJAX) from UI to your own VM
>> is discouraged. You should use callOsgiService() function on the server
>> side Js.
>>
>> 2. When the back-end is external(eg. calling Twitter API).
>>
>> Here we don't provide any server side feature for handling HTTP calls
>> because this will again abuse and use to call own VM back-ends. You can
>> simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
>> in client-side Js.
>>
>> * In the edge cases that you really need to make HTTP calls from the
>> server side Js, you can initiate; apache commons 'HttpClient' or java.net
>> 'URLConnection' through Nashorn.
>>
>> * Also you might still need to write JAX-RS APIs for your OSGi services
>> for customers.
>>
>> Thanks,
>> Rasika
>>
>> On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
>> wrote:
>>
>>> So there is not separation between UI back-end and the actual server
>>> (e.g. BPS runtime)? i.e. both always run in the same jvm?
>>>
>>> On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera 
>>> wrote:
>>>
 Yes, you will be able to call OSGi services.

 On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara 
 wrote:

> Hi All,
>
> For clarification, does this mean we will be able to invoke a service
> side function(through nashorn) upon client request ? As in when a user
> clicks a button, we can call a server side function ?
>
> Regards,
> Hemika
>
> Hemika Kodikara
> Software Engineer
> WSO2 Inc.
> lean . enterprise . middleware
> http://wso2.com
>
> Mobile : +9477762
>
> On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna <
> sajit...@wso2.com> wrote:
>
>> Hi Sudharma,
>>
>> In the browser (client-side), you can do AJAX calls to the necessary
>> REST APIs. However, doing HTTP requests from UI backend (which runs on 
>> the
>> server-side) to REST APIs (which also runs on the server-side) is not
>> recommended. Instead of that you should call OSGi services. Calling OSGI
>> services from server-side JS will be available in the next milestone of 
>> UUF.
>>
>> Thanks.
>>
>> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
>> sudhar...@wso2.com> wrote:
>>
>>> Hi all,
>>>
>>> I am working on developing BPMN explorer ui using Unified UI
>>> Framework.
>>>
>>> The existing BPMN explorer ui is for BPS which has built on C4 and
>>> it is used Jaggery. So, I am working on BPMN explorer ui for BPS which 
>>> is
>>> to be released on C5.
>>>
>>> We need to implement business logics in backend. For example, I need
>>> to send request to backend from browser, and from backend to BPS. Is 
>>> there
>>> functionality to achieve it in UUF?
>>>
>>> Any idea on this is appreciated.
>>>
>>> Thanks
>>> Sudharma
>>>
>>> --
>>> Sudharma Subasinghe,
>>> Software Engineer,
>>> WSO2 Inc.
>>> Email: sudhar...@wso2.com 
>>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>>
>>
>>
>>
>> --
>> Sajith Janaprasad Ariyarathna
>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>
>> ___
>> Architecture mailing list
>> architect...@wso2.org
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>


 --
 With regards,
 *Manu*ranga Perera.

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

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


>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> With Regards,
>>
>> *Rasika Perera*
>> Software Engineer
>> M: +94 71 680 9060 E: 

Re: [Dev] Time series data summarization

2016-05-20 Thread Niranda Perera
Hi Chan,

Agree with the above comments. Additionally, you can refer to the log
analyzer scenarios as well, because I feel like their use case is somewhat
similar to yours.

Best

On Fri, May 20, 2016 at 9:02 AM, Sachith Withana  wrote:

> To add to what Srinath said.
> If you enable indexing for that summary table, you'll be able to get the
> data through the REST API as well using lucene queries,.
>
> Regards,
> Sachith
>
> On Fri, May 20, 2016 at 7:30 AM, Srinath Perera  wrote:
>
>> schedule a spark query that aggregate the data per year and write to new
>> table, and you can query from that table?
>>
>> On Fri, May 20, 2016 at 12:06 AM, Dulitha Wijewantha 
>> wrote:
>>
>>> Hi guys,
>>> I have a bunch of data streams that have time stamps (like event logs) -
>>> currently in DAS 3.0.1 - is there a way to efficiently query these?
>>>
>>> Right now I am summarizing them based on string manipulation to the
>>> timestamp. An example query I have is -
>>>
>>> 1) How many unique user events do we have in the last year.
>>>
>>> Cheers~
>>>
>>> --
>>> Dulitha Wijewantha (Chan)
>>> Software Engineer - Mobile Development
>>> WSO2 Inc
>>> Lean.Enterprise.Middleware
>>>  * ~Email   duli...@wso2.com *
>>> *  ~Mobile +94712112165 <%2B94712112165>*
>>> *  ~Website   dulitha.me *
>>> *  ~Twitter @dulitharw *
>>>   *~Github @dulichan *
>>>   *~SO @chan *
>>>
>>
>>
>>
>> --
>> 
>> Blog: http://srinathsview.blogspot.com twitter:@srinath_perera
>> Site: http://home.apache.org/~hemapani/
>> Photos: http://www.flickr.com/photos/hemapani/
>> Phone: 0772360902
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sachith Withana
> Software Engineer; WSO2 Inc.; http://wso2.com
> E-mail: sachith AT wso2.com
> M: +94715518127
> Linked-In: 
> https://lk.linkedin.com/in/sachithwithana
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Niranda Perera*
Software Engineer, WSO2 Inc.
Mobile: +94-71-554-8430
Twitter: @n1r44 
https://pythagoreanscript.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Danushka Fernando
My log file rolled and tail got expired thats why I saw no logs. Actually
problem is my jaggery call to modules. I am getting exception below.

var logMap = mod.getFormattedRuntimeLogs(applicationKey, selectedRevision, "");

Is there a way to ged rid of this?

TID: [0] [AS] [2016-05-20 11:42:09,784] ERROR
{org.apache.coyote.AbstractProtocol$AbstractConnectionHandler} -  Error
reading request, ignored {org.apache.co
yote.AbstractProtocol$AbstractConnectionHandler}
org.mozilla.javascript.WrappedException: Wrapped
java.util.NoSuchElementException (/appmgt/jagg/jagg.jag#377)
   at
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
   at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386)
   at
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)
   at
org.jaggeryjs.rhino.appmgt.jagg.c0._c_anonymous_37(/appmgt/jagg/jagg.jag:377)

   at org.jaggeryjs.rhino.appmgt.jagg.c0.call(/appmgt/jagg/jagg.jag)
   at
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)
   at
org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0._c_anonymous_2(/appmgt/modules/runtimeLogs/module.jag:26)

   at
org.jaggeryjs.rhino.appmgt.modules.runtimeLogs.c0.call(/appmgt/modules/runtimeLogs/module.jag)

   at
org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:52)
   at
org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0._c_anonymous_1(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag:37)

   at
org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)

   at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
   at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
   at
org.jaggeryjs.rhino.appmgt.site.blocks.runtimeLogs.ws.c0.call(/appmgt/site/blocks/runtimeLogs/ws/runtimeLogs.jag)

   at
org.jaggeryjs.hostobjects.web.WebSocketHostObject.processText(WebSocketHostObject.java:139)

   at
org.jaggeryjs.jaggery.core.websocket.WSMessageInBound.onTextMessage(WSMessageInBound.java:36)

   at
org.apache.catalina.websocket.MessageInbound.onTextData(MessageInbound.java:74)

   at
org.apache.catalina.websocket.StreamInbound.doOnTextData(StreamInbound.java:186)

   at
org.apache.catalina.websocket.StreamInbound.onData(StreamInbound.java:134)
   at
org.apache.coyote.http11.upgrade.UpgradeProcessor.upgradeDispatch(UpgradeProcessor.java:83)

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

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

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

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

   at java.lang.Thread.run(Thread.java:744)
Caused by: java.util.NoSuchElementException
   at java.util.Vector.lastElement(Vector.java:499)
   at
org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:226)

   at
org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:318)

   at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
   ... 24 more

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

On Fri, May 20, 2016 at 11:18 AM, Danushka Fernando 
wrote:

> This is my server side looks like
>
>
> <%
> /*
>  * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
>  *
>  *   WSO2 Inc. licenses this file to you under the Apache License,
>  *   Version 2.0 (the "License"); you may not use this file except
>  *   in compliance with the License.
>  *   You may obtain a copy of the License at
>  *
>  *  http://www.apache.org/licenses/LICENSE-2.0
>  *
>  *   Unless required by applicable law or agreed to in writing,
>  *   software distributed under the License is distributed on an
>  *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>  *   KIND, either express or implied.  See the License for the
>  *   specific language governing permissions and limitations
>  *   under the License.
>  */
>
> include("/jagg/jagg.jag");
> include("/jagg/constants.jag");
>
> var mod, obj,
> log = new Log(),
> action = request.getParameter("action"),
> site = require("/site/conf/site.json");
>
> var applicationKey = request.getParameter("applicationKey");
> var selectedRevision = request.getParameter("selectedRevision");
> var mod = jagg.module("runtimeLogs");
> webSocket.onbinary = function (data) {
> log.info('Client 

Re: [Dev] Clarification on Availability of API

2016-05-20 Thread Fazlan Nazeem
Hi Shavantha,

We are using both the request and response stream in order to check the
availability of an API. We identified a bug in API-M where the api_version
takes two different values as in the screenshot, for the request and the
response stream of the same API. Thanks for reporting this issue. I have
created a Jira[1] in API-M to track this.

[1] https://wso2.org/jira/browse/APIMANAGER-4865

On Fri, May 20, 2016 at 10:30 AM, Shavantha Weerasinghe 
wrote:

> Hi Fazlan
>
> The attached image has the PizzaShackAPI listed under 2 statuses
>
> 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, May 20, 2016 at 10:21 AM, Fazlan Nazeem  wrote:
>
>> Hi Shavantha,
>>
>> Can you send a screenshot, so that we can look into what the problem is.
>>
>> On Fri, May 20, 2016 at 10:10 AM, Shavantha Weerasinghe <
>> shavan...@wso2.com> wrote:
>>
>>> Hi All
>>>
>>> When APIs are invoked continuously, the availability of the same API is
>>> shown as available and also  busy. Is this the expected behavior or should
>>> the only 1 status be shown for an API at one time
>>>
>>> admin--TestAPO:v1.0.0Available*admin--PizzaShackAPI:v1.0.0*AvailableTestAPO:v1.0.0Response
>>> time is too high*PizzaShackAPI:v1.0.0*Response time is too
>>> highCalculatorAPI:v1.0Available
>>>
>>>
>>> regards,
>>> Shavantha Weerasinghe
>>> Senior Software Engineer QA
>>> WSO2, Inc.
>>> lean.enterprise.middle ware.
>>> http://wso2.com
>>> http://wso2.org
>>> Tel : 94 11 214 5345
>>> Fax :94 11 2145300
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>>
>> Fazlan Nazeem
>>
>> *Software Engineer*
>>
>> *WSO2 Inc*
>> Mobile : +94772338839
>> <%2B94%20%280%29%20773%20451194>
>> fazl...@wso2.com
>>
>
>


-- 
Thanks & Regards,

Fazlan Nazeem

*Software Engineer*

*WSO2 Inc*
Mobile : +94772338839
<%2B94%20%280%29%20773%20451194>
fazl...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-05-20 Thread Nandika Jayawardana
In case of BPS, what we develop is similar to a web application which
should be independent of the BPS backend. Idea is that this component has
to be packaged into PC ( process center ) as well as BPS. Hence, native
OSGi call's is not sufficient for our requirement.

Regards
Nandika

On Fri, May 20, 2016 at 11:17 AM, Rasika Perera  wrote:

> Hi,
>
> We have came up with this best practise. There are basically two scenarios;
>
> 1. When the back-end is belongs to your product(eg. calling BPS runtime).
>
> We assume that you have written your JAX-RS based on an OSGi service.
> JAX-RS will *not* hold any business logic and act as API interface(Facade
> Pattern). In this case making a network call(AJAX) from UI to your own VM
> is discouraged. You should use callOsgiService() function on the server
> side Js.
>
> 2. When the back-end is external(eg. calling Twitter API).
>
> Here we don't provide any server side feature for handling HTTP calls
> because this will again abuse and use to call own VM back-ends. You can
> simply write AJAX calls from UI using $.ajax() in jquery or XMLHttpRequest
> in client-side Js.
>
> * In the edge cases that you really need to make HTTP calls from the
> server side Js, you can initiate; apache commons 'HttpClient' or java.net
> 'URLConnection' through Nashorn.
>
> * Also you might still need to write JAX-RS APIs for your OSGi services
> for customers.
>
> Thanks,
> Rasika
>
> On Fri, May 20, 2016 at 10:42 AM, Chathura Ekanayake 
> wrote:
>
>> So there is not separation between UI back-end and the actual server
>> (e.g. BPS runtime)? i.e. both always run in the same jvm?
>>
>> On Thu, May 19, 2016 at 11:47 PM, Manuranga Perera  wrote:
>>
>>> Yes, you will be able to call OSGi services.
>>>
>>> On Thu, May 19, 2016 at 12:53 PM, Hemika Kodikara 
>>> wrote:
>>>
 Hi All,

 For clarification, does this mean we will be able to invoke a service
 side function(through nashorn) upon client request ? As in when a user
 clicks a button, we can call a server side function ?

 Regards,
 Hemika

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

 Mobile : +9477762

 On Thu, May 19, 2016 at 3:43 PM, SajithAR Ariyarathna <
 sajit...@wso2.com> wrote:

> Hi Sudharma,
>
> In the browser (client-side), you can do AJAX calls to the necessary
> REST APIs. However, doing HTTP requests from UI backend (which runs on the
> server-side) to REST APIs (which also runs on the server-side) is not
> recommended. Instead of that you should call OSGi services. Calling OSGI
> services from server-side JS will be available in the next milestone of 
> UUF.
>
> Thanks.
>
> On Thu, May 19, 2016 at 2:21 PM, Sudharma Subasinghe <
> sudhar...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am working on developing BPMN explorer ui using Unified UI
>> Framework.
>>
>> The existing BPMN explorer ui is for BPS which has built on C4 and it
>> is used Jaggery. So, I am working on BPMN explorer ui for BPS which is to
>> be released on C5.
>>
>> We need to implement business logics in backend. For example, I need
>> to send request to backend from browser, and from backend to BPS. Is 
>> there
>> functionality to achieve it in UUF?
>>
>> Any idea on this is appreciated.
>>
>> Thanks
>> Sudharma
>>
>> --
>> Sudharma Subasinghe,
>> Software Engineer,
>> WSO2 Inc.
>> Email: sudhar...@wso2.com 
>> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
>>
>
>
>
> --
> Sajith Janaprasad Ariyarathna
> Software Engineer; WSO2, Inc.;  http://wso2.com/
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>

>>>
>>>
>>> --
>>> With regards,
>>> *Manu*ranga Perera.
>>>
>>> phone : 071 7 70 20 50
>>> mail : m...@wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: rasi...@wso2.com
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nandika Jayawardana
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org