Re: [Dev] Handling time-consuming processes within Carbon Metrics Gauges

2016-01-20 Thread Sriskandarajah Suhothayan
You have not answered my Qn

whats the impact on this when it comes to Siddhi's runtime performance ?

Suho

On Wednesday, January 20, 2016, Sajith Ravindra  wrote:

> Hi Granier, Suho
>
> The memory calculation will be a time consuming issue since it has to
> traverse through the complete object tree. IMO, we should have the option
> of executing matrix calculation in a separate thread and report back to the
> caller with the result.
>
> I think it's a valid case to have matrices which consume time/resources to
> calculate. Therefore, it will be a good idea to make available the option
> of matrix calculation to be asynchronous and report back once done in
> carbon metrics library it self.
>
> WDYT?
>
> Thanks
> *,Sajith Ravindra*
> Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273550
> blog: http://sajithr.blogspot.com/
> 
>
> On Wed, Jan 20, 2016 at 10:32 AM, Sriskandarajah Suhothayan  > wrote:
>
>> I understand that Matrics reporting it getting slow.
>>
>> At the meantime whats the impact on this when it comes to Siddhi
>> performance ?
>> If Siddhi query is also getting halted for 3 sec, then this is going to
>> be a bigger problem.
>>
>> Suho
>>
>> On Wed, Jan 20, 2016 at 12:25 PM, Grainier Perera > > wrote:
>>
>>> Currently, the memory usage calculation mechanism used on a Siddhi query
>>> takes around 3 seconds. Therefore, when it comes to complex flow with
>>> several of execution plans, it takes around (# of queries * 3) seconds.
>>> Moreover, we have integrated carbon-metrics [1] (Gauges in this scenario)
>>> with CEP for metrics calculation and reporting. Therefore, if we were to
>>> use the same mechanism within the getValue() method of carbon-metrics
>>> Gauges, it will increase the reporting time consumed by scheduled reporters
>>> (per iteration) by ~(# of queries * 3) seconds. That might cause issues
>>> such as reporters does not report according to the defined PollingPeriod,
>>> takes a considerable amount of time to update and render Carbon Metrics UI,
>>> etc. Therefore, is there a way to handle such time-consuming process within
>>> Carbon Metrics Gauges?
>>>
>>> Gauge.getValue() Implementation:
>>>
>>> new Gauge() {
>>> @Override
>>> public Long getValue() {
>>> *// Below process takes ~3 seconds.*
>>> ObjectGraphMeasurer.Footprint footprint =
>>> ObjectGraphMeasurer.measure(object);
>>> return MemoryMeasurerUtil.footprintSizeEstimate(footprint);
>>> }
>>> });
>>>
>>> [1] https://github.com/wso2/carbon-metrics
>>>
>>> Thanks,
>>> Grainier.
>>> --
>>> Grainier Perera
>>> Software Engineer
>>> Mobile : +94716122384
>>> WSO2 Inc. | http://wso2.com
>>> lean.enterprise.middleware
>>>
>>
>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>
>

-- 

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


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


Re: [Dev] Handling time-consuming processes within Carbon Metrics Gauges

2016-01-20 Thread Grainier Perera
Hi suho,

It does not have any impact on Siddhi's runtime performance. It just
affects on metrics reporting, which runs separately.

Thanks,
Grainier.

On Thu, Jan 21, 2016 at 10:09 AM, Sriskandarajah Suhothayan 
wrote:

> You have not answered my Qn
>
> whats the impact on this when it comes to Siddhi's runtime performance ?
>
> Suho
>
> On Wednesday, January 20, 2016, Sajith Ravindra  wrote:
>
>> Hi Granier, Suho
>>
>> The memory calculation will be a time consuming issue since it has to
>> traverse through the complete object tree. IMO, we should have the option
>> of executing matrix calculation in a separate thread and report back to the
>> caller with the result.
>>
>> I think it's a valid case to have matrices which consume time/resources
>> to calculate. Therefore, it will be a good idea to make available the
>> option of matrix calculation to be asynchronous and report back once done
>> in carbon metrics library it self.
>>
>> WDYT?
>>
>> Thanks
>> *,Sajith Ravindra*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273550
>> blog: http://sajithr.blogspot.com/
>> 
>>
>> On Wed, Jan 20, 2016 at 10:32 AM, Sriskandarajah Suhothayan <
>> s...@wso2.com> wrote:
>>
>>> I understand that Matrics reporting it getting slow.
>>>
>>> At the meantime whats the impact on this when it comes to Siddhi
>>> performance ?
>>> If Siddhi query is also getting halted for 3 sec, then this is going to
>>> be a bigger problem.
>>>
>>> Suho
>>>
>>> On Wed, Jan 20, 2016 at 12:25 PM, Grainier Perera 
>>> wrote:
>>>
 Currently, the memory usage calculation mechanism used on a Siddhi
 query takes around 3 seconds. Therefore, when it comes to complex flow with
 several of execution plans, it takes around (# of queries * 3) seconds.
 Moreover, we have integrated carbon-metrics [1] (Gauges in this scenario)
 with CEP for metrics calculation and reporting. Therefore, if we were to
 use the same mechanism within the getValue() method of carbon-metrics
 Gauges, it will increase the reporting time consumed by scheduled reporters
 (per iteration) by ~(# of queries * 3) seconds. That might cause issues
 such as reporters does not report according to the defined PollingPeriod,
 takes a considerable amount of time to update and render Carbon Metrics UI,
 etc. Therefore, is there a way to handle such time-consuming process within
 Carbon Metrics Gauges?

 Gauge.getValue() Implementation:

 new Gauge() {
 @Override
 public Long getValue() {
 *// Below process takes ~3 seconds.*
 ObjectGraphMeasurer.Footprint footprint =
 ObjectGraphMeasurer.measure(object);
 return MemoryMeasurerUtil.footprintSizeEstimate(footprint);
 }
 });

 [1] https://github.com/wso2/carbon-metrics

 Thanks,
 Grainier.
 --
 Grainier Perera
 Software Engineer
 Mobile : +94716122384
 WSO2 Inc. | http://wso2.com
 lean.enterprise.middleware

>>>
>>>
>>>
>>> --
>>>
>>> *S. Suhothayan*
>>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>>> *WSO2 Inc. *http://wso2.com
>>> * *
>>> lean . enterprise . middleware
>>>
>>>
>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>>> http://suhothayan.blogspot.com/ twitter:
>>> http://twitter.com/suhothayan  | linked-in:
>>> http://lk.linkedin.com/in/suhothayan *
>>>
>>
>>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
>


-- 
Grainier Perera
Software Engineer
Mobile : +94716122384
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling time-consuming processes within Carbon Metrics Gauges

2016-01-20 Thread Sajith Ravindra
I think it will be a good idea to run several rounds of testing to see if
this memory calculation is CPU intensive. And If this is CPU intensive then
this might have an adverse affect the overall performance of CEP/Siddhi as
well when executing in a limited resource setup.

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

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/


On Wed, Jan 20, 2016 at 9:59 PM, Grainier Perera  wrote:

> Hi suho,
>
> It does not have any impact on Siddhi's runtime performance. It just
> affects on metrics reporting, which runs separately.
>
> Thanks,
> Grainier.
>
> On Thu, Jan 21, 2016 at 10:09 AM, Sriskandarajah Suhothayan  > wrote:
>
>> You have not answered my Qn
>>
>> whats the impact on this when it comes to Siddhi's runtime performance ?
>>
>> Suho
>>
>> On Wednesday, January 20, 2016, Sajith Ravindra  wrote:
>>
>>> Hi Granier, Suho
>>>
>>> The memory calculation will be a time consuming issue since it has to
>>> traverse through the complete object tree. IMO, we should have the option
>>> of executing matrix calculation in a separate thread and report back to the
>>> caller with the result.
>>>
>>> I think it's a valid case to have matrices which consume time/resources
>>> to calculate. Therefore, it will be a good idea to make available the
>>> option of matrix calculation to be asynchronous and report back once done
>>> in carbon metrics library it self.
>>>
>>> WDYT?
>>>
>>> Thanks
>>> *,Sajith Ravindra*
>>> Senior Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273550
>>> blog: http://sajithr.blogspot.com/
>>> 
>>>
>>> On Wed, Jan 20, 2016 at 10:32 AM, Sriskandarajah Suhothayan <
>>> s...@wso2.com> wrote:
>>>
 I understand that Matrics reporting it getting slow.

 At the meantime whats the impact on this when it comes to Siddhi
 performance ?
 If Siddhi query is also getting halted for 3 sec, then this is going to
 be a bigger problem.

 Suho

 On Wed, Jan 20, 2016 at 12:25 PM, Grainier Perera 
 wrote:

> Currently, the memory usage calculation mechanism used on a Siddhi
> query takes around 3 seconds. Therefore, when it comes to complex flow 
> with
> several of execution plans, it takes around (# of queries * 3) seconds.
> Moreover, we have integrated carbon-metrics [1] (Gauges in this scenario)
> with CEP for metrics calculation and reporting. Therefore, if we were to
> use the same mechanism within the getValue() method of carbon-metrics
> Gauges, it will increase the reporting time consumed by scheduled 
> reporters
> (per iteration) by ~(# of queries * 3) seconds. That might cause issues
> such as reporters does not report according to the defined PollingPeriod,
> takes a considerable amount of time to update and render Carbon Metrics 
> UI,
> etc. Therefore, is there a way to handle such time-consuming process 
> within
> Carbon Metrics Gauges?
>
> Gauge.getValue() Implementation:
>
> new Gauge() {
> @Override
> public Long getValue() {
> *// Below process takes ~3 seconds.*
> ObjectGraphMeasurer.Footprint footprint =
> ObjectGraphMeasurer.measure(object);
> return MemoryMeasurerUtil.footprintSizeEstimate(footprint);
> }
> });
>
> [1] https://github.com/wso2/carbon-metrics
>
> Thanks,
> Grainier.
> --
> Grainier Perera
> Software Engineer
> Mobile : +94716122384
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



 --

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


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

>>>
>>>
>>
>> --
>>
>> *S. Suhothayan*
>> Technical Lead & Team Lead of WSO2 Complex Event Processor
>> *WSO2 Inc. *http://wso2.com
>> * *
>> lean . enterprise . middleware
>>
>>
>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
>> http://suhothayan.blogspot.com/ twitter:
>> http://twitter.com/suhothayan  | linked-in:
>> http://lk.linkedin.com/in/suhothayan *
>>
>>
>
>
> --
> Grainier Perera
> Software Engineer
> Mobile : +94716122384
> WSO2 

Re: [Dev] How to resolve SVN errors of worker nodes at server startup

2016-01-20 Thread Kalpa Welivitigoda
Hi all,

I encountered the same issue mentioned with ESB 4.9.0 clustered setup. The
worker node didn't start properly and produced the same error even for the
second restart. Have we come across this scenario earlier?

The temporary solution was to replace the worker's server directory with
that of the manager and restart the worker. Then the worker started
properly and dep sync was working there after.

On Sat, May 30, 2015 at 7:07 PM, Evanthika Amarasiri 
wrote:

> Hi all,
>
> For products like ESB/API-M when we are replacing the packs with new ones,
> we continuously see this behaviour while starting up the worker nodes. The
> solution we have given is to clean the repo, start the server once, when
> you get the exception '*The synapse.xml location
> ././repository/deployment/server/synapse-configs/default doesn't exist*', 
> restart
> the server once again. I'm wondering whether this the correct solution?
>
> Also, will we be seeing the same behaviour with Carbon 4.3.0 products as
> well?
>
> Regards,
> Evanthika
>
> On Thu, Dec 4, 2014 at 11:23 AM, Samuel Gnaniah  wrote:
>
>> Updated the note for API-M [1] and ESB [2] to include instructions to
>> restart the server once again.
>>
>> [1] - https://docs.wso2.com/display/CLUSTER420/Clustering+the+Gateway
>> [2] - https://docs.wso2.com/display/CLUSTER420/Clustering+ESB
>>
>> *Samuel Gnaniah*
>> Senior Technical Writer
>>
>> WSO2 (pvt.) Ltd.
>> Colombo, Sri Lanka
>> (+94) 773131798
>>
>> On Wed, Dec 3, 2014 at 12:03 PM, Evanthika Amarasiri 
>> wrote:
>>
>>> This note is applicable for products like AS/BPS/etc. But for products
>>> like API-M & ESB, the first time you restart the server after cleaning the
>>> *server* folder will throw the exception - '*The synapse.xml location
>>> ././repository/deployment/server/synapse-configs/default doesn't exist*'
>>> .
>>>
>>> So to resolve that, you have to restart the server once again. We need
>>> to find a proper solution for that.
>>>
>>> Regards,
>>> Evanthika Amarasiri
>>> Senior Technical Lead  - Quality Assurance
>>> Mobile: +94773125935
>>> Blog: evanthika.blogspot.com
>>>
>>> wso2.com lean.enterprise.middleware
>>>
>>> On Wed, Dec 3, 2014 at 11:53 AM, Samuel Gnaniah  wrote:
>>>
 Added a small note on this in [1], [2] and [3]. Thanks for bringing
 this up!

 [1] -
 https://docs.wso2.com/display/CLUSTER420/Configuring+the+Worker+Node
 [2] -
 https://docs.wso2.com/display/CLUSTER420/Clustering+WSO2+Products+without+WSO2+ELB
 [3] - https://docs.wso2.com/display/CLUSTER420/Clustering+the+Gateway

 Thanks,
 Sam

 *Samuel Gnaniah*
 Senior Technical Writer

 WSO2 (pvt.) Ltd.
 Colombo, Sri Lanka
 (+94) 773131798

 On Wed, Dec 3, 2014 at 11:35 AM, Evanthika Amarasiri <
 evanth...@wso2.com> wrote:

> Yes. This is only for worker nodes.
>
> Regards,
> Evanthika
>
> On Wed, Dec 3, 2014 at 9:39 AM, Samuel Gnaniah 
> wrote:
>
>> Just to confirm, are we recommending this only in the worker nodes?
>>
>> *Samuel Gnaniah*
>> Senior Technical Writer
>>
>> WSO2 (pvt.) Ltd.
>> Colombo, Sri Lanka
>> (+94) 773131798
>>
>> On Wed, Dec 3, 2014 at 8:34 AM, Sameera Jayasoma 
>> wrote:
>>
>>> Even for Carbon 4.3.0 testing, we followed the same method. We will
>>> try to fix these errors during the AS 6.0.0 release. But for 4.2.0 based
>>> products, lets document this step.
>>>
>>> Thanks,
>>> Sameera.
>>>
>>>
>>> On Wed, Dec 3, 2014 at 7:47 AM, Evanthika Amarasiri <
>>> evanth...@wso2.com> wrote:
>>>
 ​Yes Sameera, I got this continuously on

 ​API-M worker nodes yesterday.​ So, after this SVN error, I see
 another exception with regard to service initialisation due to a 
 missing
 module as below.

 So I suppose there are can be functionality breaks once you get
 this svn issue. Anyhow, throwing such ERRORs at startup is not right. 
 So if
 these are harmless errors we can make them warnings instead without
 printing a whole stack trace like this?

 ​However, in this case, what I feel is that there can be
 functionality issues. I will investigate on this further.​

 ​Also, if this is what we recommend to users (removing the content
 inside the server folder before starting worker nodes), shall we add 
 this
 to our documentation?


 TID: [0] [AM] [2014-12-02 06:30:15,390] ERROR
 {org.wso2.carbon.core.persistence.AbstractPersistenceManager} -  
 Unable to
 handle service initialization. Service: WSRegistryService
 {org.wso2.carbon.core.persistence.AbstractPersistenceManager}
 

Re: [Dev] Handling time-consuming processes within Carbon Metrics Gauges

2016-01-20 Thread Sajith Ravindra
Hi Granier, Suho

The memory calculation will be a time consuming issue since it has to
traverse through the complete object tree. IMO, we should have the option
of executing matrix calculation in a separate thread and report back to the
caller with the result.

I think it's a valid case to have matrices which consume time/resources to
calculate. Therefore, it will be a good idea to make available the option
of matrix calculation to be asynchronous and report back once done in
carbon metrics library it self.

WDYT?

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

mobile: +94 77 2273550
blog: http://sajithr.blogspot.com/


On Wed, Jan 20, 2016 at 10:32 AM, Sriskandarajah Suhothayan 
wrote:

> I understand that Matrics reporting it getting slow.
>
> At the meantime whats the impact on this when it comes to Siddhi
> performance ?
> If Siddhi query is also getting halted for 3 sec, then this is going to be
> a bigger problem.
>
> Suho
>
> On Wed, Jan 20, 2016 at 12:25 PM, Grainier Perera 
> wrote:
>
>> Currently, the memory usage calculation mechanism used on a Siddhi query
>> takes around 3 seconds. Therefore, when it comes to complex flow with
>> several of execution plans, it takes around (# of queries * 3) seconds.
>> Moreover, we have integrated carbon-metrics [1] (Gauges in this scenario)
>> with CEP for metrics calculation and reporting. Therefore, if we were to
>> use the same mechanism within the getValue() method of carbon-metrics
>> Gauges, it will increase the reporting time consumed by scheduled reporters
>> (per iteration) by ~(# of queries * 3) seconds. That might cause issues
>> such as reporters does not report according to the defined PollingPeriod,
>> takes a considerable amount of time to update and render Carbon Metrics UI,
>> etc. Therefore, is there a way to handle such time-consuming process within
>> Carbon Metrics Gauges?
>>
>> Gauge.getValue() Implementation:
>>
>> new Gauge() {
>> @Override
>> public Long getValue() {
>> *// Below process takes ~3 seconds.*
>> ObjectGraphMeasurer.Footprint footprint =
>> ObjectGraphMeasurer.measure(object);
>> return MemoryMeasurerUtil.footprintSizeEstimate(footprint);
>> }
>> });
>>
>> [1] https://github.com/wso2/carbon-metrics
>>
>> Thanks,
>> Grainier.
>> --
>> Grainier Perera
>> Software Engineer
>> Mobile : +94716122384
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
>
> *S. Suhothayan*
> Technical Lead & Team Lead of WSO2 Complex Event Processor
> *WSO2 Inc. *http://wso2.com
> * *
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog:
> http://suhothayan.blogspot.com/ twitter:
> http://twitter.com/suhothayan  | linked-in:
> http://lk.linkedin.com/in/suhothayan *
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Handling time-consuming processes within Carbon Metrics Gauges

2016-01-20 Thread Sriskandarajah Suhothayan
I understand that Matrics reporting it getting slow.

At the meantime whats the impact on this when it comes to Siddhi
performance ?
If Siddhi query is also getting halted for 3 sec, then this is going to be
a bigger problem.

Suho

On Wed, Jan 20, 2016 at 12:25 PM, Grainier Perera  wrote:

> Currently, the memory usage calculation mechanism used on a Siddhi query
> takes around 3 seconds. Therefore, when it comes to complex flow with
> several of execution plans, it takes around (# of queries * 3) seconds.
> Moreover, we have integrated carbon-metrics [1] (Gauges in this scenario)
> with CEP for metrics calculation and reporting. Therefore, if we were to
> use the same mechanism within the getValue() method of carbon-metrics
> Gauges, it will increase the reporting time consumed by scheduled reporters
> (per iteration) by ~(# of queries * 3) seconds. That might cause issues
> such as reporters does not report according to the defined PollingPeriod,
> takes a considerable amount of time to update and render Carbon Metrics UI,
> etc. Therefore, is there a way to handle such time-consuming process within
> Carbon Metrics Gauges?
>
> Gauge.getValue() Implementation:
>
> new Gauge() {
> @Override
> public Long getValue() {
> *// Below process takes ~3 seconds.*
> ObjectGraphMeasurer.Footprint footprint =
> ObjectGraphMeasurer.measure(object);
> return MemoryMeasurerUtil.footprintSizeEstimate(footprint);
> }
> });
>
> [1] https://github.com/wso2/carbon-metrics
>
> Thanks,
> Grainier.
> --
> Grainier Perera
> Software Engineer
> Mobile : +94716122384
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>



-- 

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


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


Re: [Dev] Related to Configuring WSO2 ESB JMS transport

2016-01-20 Thread Indrajith Udayakumara
Hi, thank you ! I tried in that way but the still problem exists.
I am correctly following the instructions of the documentation.

nandika
password


The above code was extracted from the documentation.

*From where do these username and password come from?What should I enter
there ?*





On Wed, Jan 20, 2016 at 3:23 PM, Senduran Balasubramaniyam <
sendu...@wso2.com> wrote:

> axis2.xml is always enabled.
> Make sure you have restarted the server once you un commented the relevant
> axis2 xml entry
>
> Regards
> Senduran
>
> On Wed, Jan 20, 2016 at 3:16 PM, Indrajith Udayakumara <
> aiukum...@gmail.com> wrote:
>
>> Hi,
>> I am referring to  Configure with IBM WebSphere MQ
>>  in
>> the ESB documentation.
>> I already added transport receiver and transport reciever to 
>> */repository/conf/axis2/axis2.xml
>> file.*
>>
>> But, Still I cannot add the JMSListener  proxy service (EXB 4.9 ) it
>> gives the following exception.
>>
>> Unable to configure the service MyJMSProxy for the JMS transport: Service
>> doesn't have configuration information for transport jms. This service is
>> being marked as faulty and will not be available over the JMS transport.
>>
>> How  to enable the axis.xml file ?
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ 
> Mobile: +94 77 952 6548
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-01-20 Thread Shabir Mohamed
Hi Chamara,

Yes, I am aware that uninstalling of features needs to be done from the UI
and cannot be done by just deleting them from the features folder.

However, what i want to clarify is "what is the purpose of having the
already installed features inside the features-folder in a product"??

Doesn't it only contribute to increasing the pack size?? Or is there any
other purpose I am missing??

Thanks...

On Tuesday, 19 January 2016, Chamara Philips  wrote:

> Deleting the folders from "repository/components/features" folder will
> not uninstall the feature properly. If you need to reinstall a feature the
> best way to do is to uninstall it from the UI and then reinstall it.
>
> Thanks.
>
> On Tue, Jan 19, 2016 at 4:49 PM, Shabir Mohamed  > wrote:
>
>> Hi,
>>
>> No. I just want to know what happens if I delete the features copied into
>> the "repository/components/features" folder during the p2-profile-gen goal
>> of the p2 pom after they have been installed?
>>
>> After the features have been installed, is it required for these features
>> to still be there inside the features folder in the pack?
>>
>> Well one scenario which I could think of for it to be there is if someone
>> wants to install a feature that he/she already uninstalled.
>>
>> Thanks
>>
>> -
>> *Shabir Mohamed*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> Email: sha...@wso2.com 
>> Mobile: +94 77 3516019 | +94 71 6583393
>>
>> On Tue, Jan 19, 2016 at 3:58 PM, Irham Iqbal > > wrote:
>>
>>> Hi Shabir,
>>>
>>> Do you want to remove a installed feature from a product ?.
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> On Tue, Jan 19, 2016 at 9:54 AM, Shabir Mohamed >> > wrote:
>>>
 Hi All,

 What could be the implications of $subject?

 Thanks
 -
 *Shabir Mohamed*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 Email: sha...@wso2.com
 
 Mobile: +94 77 3516019 | +94 71 6583393

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


>>>
>>>
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org 
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hareendra Chamara Philips
> *Software  Engineer*
> Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
> chama...@wso2.com 
>
>

-- 
Sent from Shabirmean's Gmail Mobile
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Effects of removing the already installed features from the "features" folder of a Product-Pack?

2016-01-20 Thread Shabir Mohamed
Hi Chamara,

Yes, I am aware that uninstalling of features needs to be done from the UI
and cannot be done by just deleting them from the features folder.

However, what i want to clarify is "what is the purpose of having the
already installed features inside the features-folder in a product"??

Doesn't it only contribute to increasing the pack size?? Or is there any
other purpose I am missing??

Thanks...

-
*Shabir Mohamed*
*Software Engineer*
WSO2 Inc.; http://wso2.com
Email: sha...@wso2.com 
Mobile: +94 77 3516019 | +94 71 6583393

On Tue, Jan 19, 2016 at 7:59 PM, Chamara Philips  wrote:

> Deleting the folders from "repository/components/features" folder will
> not uninstall the feature properly. If you need to reinstall a feature the
> best way to do is to uninstall it from the UI and then reinstall it.
>
> Thanks.
>
> On Tue, Jan 19, 2016 at 4:49 PM, Shabir Mohamed  wrote:
>
>> Hi,
>>
>> No. I just want to know what happens if I delete the features copied into
>> the "repository/components/features" folder during the p2-profile-gen goal
>> of the p2 pom after they have been installed?
>>
>> After the features have been installed, is it required for these features
>> to still be there inside the features folder in the pack?
>>
>> Well one scenario which I could think of for it to be there is if someone
>> wants to install a feature that he/she already uninstalled.
>>
>> Thanks
>>
>> -
>> *Shabir Mohamed*
>> *Software Engineer*
>> WSO2 Inc.; http://wso2.com
>> Email: sha...@wso2.com 
>> Mobile: +94 77 3516019 | +94 71 6583393
>>
>> On Tue, Jan 19, 2016 at 3:58 PM, Irham Iqbal  wrote:
>>
>>> Hi Shabir,
>>>
>>> Do you want to remove a installed feature from a product ?.
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> On Tue, Jan 19, 2016 at 9:54 AM, Shabir Mohamed  wrote:
>>>
 Hi All,

 What could be the implications of $subject?

 Thanks
 -
 *Shabir Mohamed*
 *Software Engineer*
 WSO2 Inc.; http://wso2.com
 Email: sha...@wso2.com 
 Mobile: +94 77 3516019 | +94 71 6583393

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


>>>
>>>
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Hareendra Chamara Philips
> *Software  Engineer*
> Mobile : +94 (0) 767 184161 <%2B94%20%280%29%20773%20451194>
> chama...@wso2.com 
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Efficient way to represent tree data structure

2016-01-20 Thread Nuwan Pallewela
Hi All,

I 'am currently working on Data Mapper feature, data mapping algorithm
development. While implementing I want to store input data in a tree data
structure so that I could access data efficiently. This tree *will not
restructured* *or write *often. But it will be *read heavily*. I'm
wandering is there any better way to implement other than using objects as
nodes. For example : We can use adjacency lists to represent graph like
data structures so that graph operations can be done efficiently.

This tree is basically represent a AVRO schema related data object. ( We
can think of a xml request with converted to a JSON object ) So there can
be lists inside lists and complex data representations.

We may required to navigate and retrieve data's from one of the sibling or
one of the parent node's child or etc.

Is there any *improved , efficient way of storing and do above operations
on this kind of data  tree which will not restructured or written often but
will read heavily* , other than using objects as nodes.

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] [DEV] Headless JMeter -How to get printed the response data in the output file.

2016-01-20 Thread Ishara Cooray
I am running a load test by using a jmeter script in non gui mode.

I use the following command to run the JMeter in non gui mode and result is
stored in a file Test.jtl
*sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl*

Sample data written to Test.jtl is as below and there it does not print
response data. Is there a way to get printed the response data as well may
be by altering jmeter script or above command?

Any help would be appreciated.





*1453272193899,231,HTTP Request-staging-qqq-customer1,200,OK,Thread Group
two 1-6,text,true,466,2311453272193927,227,HTTP
Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
1-1,text,false,751,2271453272193963,222,HTTP
Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
1-2,text,false,604,2221453272194026,238,HTTP
Request-staging-TT1-customer1,200,OK,Thread Group two
1-3,text,true,448,2381453272194131,233,HTTP
Request-staging-qqq-customer2,200,OK,Thread Group two 1-6,text,true,466,233*


Thanks & Regards.
Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Related to Configuring WSO2 ESB JMS transport

2016-01-20 Thread Indrajith Udayakumara
Hi,
I am referring to  Configure with IBM WebSphere MQ
 in
the ESB documentation.
I already added transport receiver and transport reciever to
*/repository/conf/axis2/axis2.xml
file.*

But, Still I cannot add the JMSListener  proxy service (EXB 4.9 ) it gives
the following exception.

Unable to configure the service MyJMSProxy for the JMS transport: Service
doesn't have configuration information for transport jms. This service is
being marked as faulty and will not be available over the JMS transport.

How  to enable the axis.xml file ?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Headless JMeter -How to get printed the response data in the output file.

2016-01-20 Thread Dinesh J Weerakkody
Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Jan 20, 2016 at 3:12 PM, Dinesh J Weerakkody 
wrote:

> Hi Ishara,
>
> I think you should be able to get the output by following below steps.
>
>
>- Add a Listener > "View result tree" element to your script
>- provide a full file path to "Write results to file / read from file"
>-  place to save the result file
>
>
> then when you run the script jmeter should write the responses to the file.
> Please note that writing responses to file will slow the process and also
> will increase the result file size.
>
> To view the results, once your script completed
>
>- open a jemter window and add a new Listener > "View result tree"
>element
>- Browse your result file to the same "Write results to file text box
>/ read from file"
>
> this might take some time if the result file is huge.
>
> Hope this will help you.
>
>
> Thanks
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com
>
> On Wed, Jan 20, 2016 at 2:55 PM, Ishara Cooray  wrote:
>
>> I am running a load test by using a jmeter script in non gui mode.
>>
>> I use the following command to run the JMeter in non gui mode and result
>> is stored in a file Test.jtl
>> *sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl*
>>
>> Sample data written to Test.jtl is as below and there it does not print
>> response data. Is there a way to get printed the response data as well may
>> be by altering jmeter script or above command?
>>
>> Any help would be appreciated.
>>
>>
>>
>>
>>
>> *1453272193899,231,HTTP Request-staging-qqq-customer1,200,OK,Thread Group
>> two 1-6,text,true,466,2311453272193927,227,HTTP
>> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
>> 1-1,text,false,751,2271453272193963,222,HTTP
>> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
>> 1-2,text,false,604,2221453272194026,238,HTTP
>> Request-staging-TT1-customer1,200,OK,Thread Group two
>> 1-3,text,true,448,2381453272194131,233,HTTP
>> Request-staging-qqq-customer2,200,OK,Thread Group two 1-6,text,true,466,233*
>>
>>
>> Thanks & Regards.
>> Ishara Cooray
>> Senior Software Engineer
>> Mobile : +9477 262 9512
>> WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] Headless JMeter -How to get printed the response data in the output file.

2016-01-20 Thread Dinesh J Weerakkody
Hi Ishara,

I think you should be able to get the output by following below steps.


   - Add a Listener > "View result tree" element to your script
   - provide a full file path to "Write results to file / read from file"


then when you run the script jmeter should write the responses to the file.
Please note that writing responses to file will slow the process and also
will increase the result file size.

To view the results, once your script completed

   - open a jemter window and add a new Listener > "View result tree"
   element
   - Browse your result file to the same "Write results to file text box /
   read from file"

this might take some time if the result file is huge.

Hope this will help you.


Thanks

*Dinesh J. Weerakkody*
Software Engineer
WSO2 Inc.
lean | enterprise | middleware
M : +94 727 868676 | E : dine...@wso2.com | W : www.wso2.com

On Wed, Jan 20, 2016 at 2:55 PM, Ishara Cooray  wrote:

> I am running a load test by using a jmeter script in non gui mode.
>
> I use the following command to run the JMeter in non gui mode and result
> is stored in a file Test.jtl
> *sh jmeter.sh -n -t ThreadGroup.jmx -l Test.jtl*
>
> Sample data written to Test.jtl is as below and there it does not print
> response data. Is there a way to get printed the response data as well may
> be by altering jmeter script or above command?
>
> Any help would be appreciated.
>
>
>
>
>
> *1453272193899,231,HTTP Request-staging-qqq-customer1,200,OK,Thread Group
> two 1-6,text,true,466,2311453272193927,227,HTTP
> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
> 1-1,text,false,751,2271453272193963,222,HTTP
> Request-staging-TT2-customer1,503,Service Unavailable,Thread Group two
> 1-2,text,false,604,2221453272194026,238,HTTP
> Request-staging-TT1-customer1,200,OK,Thread Group two
> 1-3,text,true,448,2381453272194131,233,HTTP
> Request-staging-qqq-customer2,200,OK,Thread Group two 1-6,text,true,466,233*
>
>
> Thanks & Regards.
> Ishara Cooray
> Senior Software Engineer
> Mobile : +9477 262 9512
> WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Related to Configuring WSO2 ESB JMS transport

2016-01-20 Thread Senduran Balasubramaniyam
axis2.xml is always enabled.
Make sure you have restarted the server once you un commented the relevant
axis2 xml entry

Regards
Senduran

On Wed, Jan 20, 2016 at 3:16 PM, Indrajith Udayakumara 
wrote:

> Hi,
> I am referring to  Configure with IBM WebSphere MQ
>  in
> the ESB documentation.
> I already added transport receiver and transport reciever to 
> */repository/conf/axis2/axis2.xml
> file.*
>
> But, Still I cannot add the JMSListener  proxy service (EXB 4.9 ) it gives
> the following exception.
>
> Unable to configure the service MyJMSProxy for the JMS transport: Service
> doesn't have configuration information for transport jms. This service is
> being marked as faulty and will not be available over the JMS transport.
>
> How  to enable the axis.xml file ?
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Senduran *
Software Engineer,
WSO2, Inc.;  http://wso2.com/ 
Mobile: +94 77 952 6548
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][AS] Ideas and ways to integrate with Hot Swap Agent

2016-01-20 Thread Clovis Wichoski
Hi,

I'm researching for some ways to improve speed of development and redeploy
on WSO2 Application Server, for example I have a scenario here where a
simple change on a class, to test, get about 5 minutes. (as the test must
pass by web interfaces in Jaggery, until reach the REST Api implemented in
JAX-RS with Jersey and some JPA using EclipseLink.

The Jaggery part is very easy, just rsync files, and all works fine.

For the java part, in this research I found the HotSwapAgent -
http://www.hotswapagent.org/

My first try was to follow HotSwapAgent quick start as is, and check if it
works with WSO2 AS 5.2.1 out of the box, but dont worked, HotSwapAgent dont
detect changes when I copy one updated .class file to WEB-INF/classes.

Then my question is about, if anyone tried this before with WSO2, and if is
a good way to invest time to implement a WSO2 plugin that work better with
HotSwapAgent and what is the steps I must follow to implement this plugin
or integrate this type of speed with redeploy with WSO2 AS? Maybe some
problems with OSGi?

ps: Note that the idea, is just change one class, rsync the binary .class
file over respective WEB-INF/classes and got the results.

Best regards

Clóvis Wichoski
CEO, Neoinix
Mobile: +554588233181
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] SCIM missing members when list groups

2016-01-20 Thread Xavier Pegenaute M2M

Hi all,

I've been trying to follow the SCIM documentation [1] to manage user and 
groups but apparently the groups members are not visualized after the 
group creation phase. These are my steps:


1) Create user
|curl -v -k --user admin:admin --data 
||"{"||schemas||":[],"||name||":{"||familyName||":"||gunasinghe||","||givenName||":"||hasinitg||"},"||userName||":"||hasinitg||","||password||":"||hasinitg||","||emails||":[{"||primary||":true,"||value||":"||hasini_home.com||","||type||":"||home||"},{"||value||":"||hasini_work.com||","||type||":"||work||"}]}"||--header 
||"Content-Type:application/json"||https:||//localhost:9443/wso2/scim/Users 
OUTPUT { "meta": { "created": "2016-01-20T13:41:51", "location": 
"https://localhost:9443/wso2/scim/Users/c3561007-5174-4b7d-9d6f-db523164a370;, 
"lastModified": "2016-01-20T13:41:51" }, "emails": [ { "type": "home", 
"value": "hasini_home.com" }, { "type": "work", "value": 
"hasini_work.com" } ], "userName": "hasinitg", "name": { "givenName": 
"hasinitg", "familyName": "gunasinghe" }, "schemas": [ 
"urn:scim:schemas:core:1.0" ], "id": 
"c3561007-5174-4b7d-9d6f-db523164a370" } 2) Create group adding the user 
|curl -k --user admin:admin --data "{"displayName": 
"engineer","members": 
[{"value":"c3561007-5174-4b7d-9d6f-db523164a370","display": 
"hasinitg"}]}" --header "Content-Type:application/json" 
https://localhost:9443/wso2/scim/Groups


OUTPUT
{
  "meta": {
"location": 
"https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a;,

"created": "2016-01-20T13:47:20",
"lastModified": "2016-01-20T13:47:20"
  },
  "members": [
{
  "display": "hasinitg",
  "value": "c3561007-5174-4b7d-9d6f-db523164a370"
}
  ],
  "displayName": "PRIMARY/engineer",
  "schemas": [
"urn:scim:schemas:core:1.0"
  ],
  "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
}

As you can notice, in member the hasinitg user is shown.

3) List groups (missing the members field)
curl -k --user admin:admin --header "Content-Type:application/json" 
https://localhost:9443/wso2/scim/Groups



OUTPUT
{
  "Resources": [
{
  "meta": {
"location": 
"https://localhost:9443/wso2/scim/Groups/b2e69f12-1b6a-4277-b3f5-b2536da1303a;,

"created": "2016-01-20T13:47:20",
"lastModified": "2016-01-20T13:47:20"
  },
  "displayName": "PRIMARY/engineer",
  "id": "b2e69f12-1b6a-4277-b3f5-b2536da1303a"
}
  ],
  "totalResults": 1,
  "schemas": [
"urn:scim:schemas:core:1.0"
  ]
}

Any one of you have any similar experience?, as it is stated in the 
documentation [1], this output should show the members field.


Thanks & Regards,

[1] - https://docs.wso2.com/display/IS510/SCIM+APIs
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev