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

2016-01-21 Thread Ishara Cooray
Hi,

Found the answer to the problem. Posting here[1] for anyone who is
interested.

[1]
http://stackoverflow.com/questions/34896087/headless-jmeter-how-to-get-printed-the-response-data-in-the-output-file

Thanks.

Ishara Cooray
Senior Software Engineer
Mobile : +9477 262 9512
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

On Wed, Jan 20, 2016 at 5:25 PM, Ishara Cooray  wrote:

>
> Thanks Dinesh and Madhawa.
>
> In my case i want to see not only the http response but also the response
> data(payload).
>
> Thanks.
> Ishara
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


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

2016-01-21 Thread Kishanthan Thangarajah
Hi Clovis,

On Wed, Jan 20, 2016 at 6:06 PM, Clovis Wichoski 
wrote:

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

This is a good thing to have with webap deployment. But we do have a
concept of hot update of webapps which is the default behaviour. If you
update the webapp, it will be redeployed by the Application Server where it
keeps track of the changes using the scheduled task which runs on every 15
seconds interval. Since this redeploys the entire webapp, all the classes
loaded will be removed and will be loaded again. Do find any issues with
this behaviour?

Thanks,
Kishanthan.


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


-- 
*Kishanthan Thangarajah*
Associate Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-21 Thread Ramith Jayasinghe
MB also elects a leader/coordinator for the cluster (based on hezelcast.)

On Fri, Jan 22, 2016 at 10:48 AM, Amila Maha Arachchi 
wrote:

> Nipun,
>
> May be you need to try it in a clustered environment or at least
> clustering enabled. I assume you tried this with a single server.
>
> On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:
>
>> Hi Krishanthan,
>>
>> Cloud team has developed three osgi components to delete tenants, but
>> tenant deletion has to be done manually by adding components to
>> dropping folder when we want to start tenant deletion. Now, my project
>> is to automate this process by making one osgi component for every
>> server and the component will be in the server every time.
>>
>> AxisConfiguration serverAxisConfig =
>>
>> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
>> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
>> boolean isCoordinator = agent.isCoordinator();
>>
>> I tried this, but this always returns false.
>>
>> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>>  wrote:
>> > IIRC, we already have a way (tool) to delete tenants in a cluster which
>> is
>> > used by cloud team. So what's the requirement for this component here?
>> >
>> > With hazelcast based clustering, we assume that the first (oldest)
>> member as
>> > the coordinator for the cluster. We set this member as the coordinator
>> and
>> > you can check whether the current node is the coordinator using
>> > ClusteringAgent#isCoordinator method.
>> >
>> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
>> wrote:
>> >>
>> >> Hi all,
>> >>
>> >> I am building an osgi component for tenant deletion task. This will be
>> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
>> requirement to
>> >> do this task in one node in the cluster while there is no single point
>> of
>> >> failure. Only one node should start deletion while other nodes waiting
>> on
>> >> the same server.
>> >> Is there a way to find the leader node/ contributor in a cluster? Any
>> help
>> >> would be appreciated.
>> >>
>> >>
>> >>
>> >> --
>> >> Nipuna Prashan
>> >> Software Engineering Intern
>> >> +94711852792
>> >
>> >
>> >
>> >
>> > --
>> > Kishanthan Thangarajah
>> > Associate Technical Lead,
>> > Platform Technologies Team,
>> > WSO2, Inc.
>> > lean.enterprise.middleware
>> >
>> > Mobile - +94773426635
>> > Blog - http://kishanthan.wordpress.com
>> > Twitter - http://twitter.com/kishanthan
>>
>>
>>
>> --
>> Nipuna Prashan
>> Software Engineering Intern
>> +94711852792
>>
>
>
>
> --
> *Amila Maharachchi*
> Senior Technical Lead
> WSO2, Inc.; http://wso2.com
>
> Blog: http://maharachchi.blogspot.com
> Mobile: +94719371446
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Ramith Jayasinghe
Technical Lead
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

E: ram...@wso2.com
P: +94 777542851
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] How to select Leader/Contributer node in a cluster

2016-01-21 Thread Amila Maha Arachchi
Nipun,

May be you need to try it in a clustered environment or at least clustering
enabled. I assume you tried this with a single server.

On Wed, Jan 20, 2016 at 9:42 AM, Nipuna Prashan  wrote:

> Hi Krishanthan,
>
> Cloud team has developed three osgi components to delete tenants, but
> tenant deletion has to be done manually by adding components to
> dropping folder when we want to start tenant deletion. Now, my project
> is to automate this process by making one osgi component for every
> server and the component will be in the server every time.
>
> AxisConfiguration serverAxisConfig =
>
> ServiceHolder.getConfigurationContextService().getServerConfigContext().getAxisConfiguration();
> ClusteringAgent agent = serverAxisConfig.getClusteringAgent();
> boolean isCoordinator = agent.isCoordinator();
>
> I tried this, but this always returns false.
>
> On Tue, Jan 19, 2016 at 9:08 PM, Kishanthan Thangarajah
>  wrote:
> > IIRC, we already have a way (tool) to delete tenants in a cluster which
> is
> > used by cloud team. So what's the requirement for this component here?
> >
> > With hazelcast based clustering, we assume that the first (oldest)
> member as
> > the coordinator for the cluster. We set this member as the coordinator
> and
> > you can check whether the current node is the coordinator using
> > ClusteringAgent#isCoordinator method.
> >
> > On Mon, Jan 18, 2016 at 6:24 PM, Nipuna Prashan 
> wrote:
> >>
> >> Hi all,
> >>
> >> I am building an osgi component for tenant deletion task. This will be
> >> deployed in every server (APIM, AS, AF, BAM, IS..). I have a
> requirement to
> >> do this task in one node in the cluster while there is no single point
> of
> >> failure. Only one node should start deletion while other nodes waiting
> on
> >> the same server.
> >> Is there a way to find the leader node/ contributor in a cluster? Any
> help
> >> would be appreciated.
> >>
> >>
> >>
> >> --
> >> Nipuna Prashan
> >> Software Engineering Intern
> >> +94711852792
> >
> >
> >
> >
> > --
> > Kishanthan Thangarajah
> > Associate Technical Lead,
> > Platform Technologies Team,
> > WSO2, Inc.
> > lean.enterprise.middleware
> >
> > Mobile - +94773426635
> > Blog - http://kishanthan.wordpress.com
> > Twitter - http://twitter.com/kishanthan
>
>
>
> --
> Nipuna Prashan
> Software Engineering Intern
> +94711852792
>



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

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


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

2016-01-21 Thread Sajini De Silva
Hi Indrajith,

The for  username and password sections, you have to give the username and
password of the IBM MQ Queue Manager. When you create a queue manager you
can give username and password to it.

Thank you,
Sajini

On Wed, Jan 20, 2016 at 8:41 PM, Indrajith Udayakumara 
wrote:

> Hi, thank you ! I tried in that way but the still problem exists.
> I am correctly following the instructions of the documentation.
>
> nandika >
> password parameter>
>
>
> 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
>
>


-- 
Sajini De SIlva
Software Engineer; WSO2 Inc.; http://wso2.com ,
Email: saj...@wso2.com
Blog: http://sajinid.blogspot.com/
Git hub profile: https://github.com/sajinidesilva

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


[Dev] [Orbit] Request to merge eclipse-paho-mqtt 1.0.2.wso2v1 orbit

2016-01-21 Thread Shabir Mohamed
Hi,

Please review and merge the PR [1].
[1] https://github.com/wso2/orbit/pull/164

*Find library approval request mail with subject:*
*"Please Approve 3rd party library Eclipse-Paho-MQTT for MQTT support in
CDMF"*

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