Hi Prabath,

You can restart a server as follows.

ServerConfigurationManager  serverManager = new
ServerConfigurationManager(automationContext);
serverManager.restartGracefully();

Have to send the appropriate automation context based on the WSO2 product
mentioned in the automation.xml.

Regards,
Hemika

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

Mobile : +94777688882

On Thu, May 7, 2015 at 9:51 AM, Dharshana Warusavitharana <
[email protected]> wrote:

> Hi Prabath,
>
> You can follow Nuwan's blog post on this. Please find blog on [1].
>
> [1].
> http://nuwanwimalasekara.blogspot.com/2013/05/how-to-write-wso2-esb-and-jms.html
>
> Thank you,
> Dharshana.
>
> On Thu, May 7, 2015 at 9:47 AM, Amalka Subasinghe <[email protected]> wrote:
>
>> Hi,
>>
>> There are some JMS related integration tests in ESB project.
>> Did u follow those?
>>
>>
>> https://github.com/wso2/product-esb/tree/master/modules/integration/tests-integration/tests-sample/src/test/java/org/wso2/carbon/esb/samples/test/messaging
>>
>> Thanks
>> Amalka
>>
>> On Thu, May 7, 2015 at 9:13 AM, Prabath Ariyarathna <[email protected]>
>> wrote:
>>
>>>
>>> Looping to support dev
>>>
>>> On Thu, May 7, 2015 at 9:11 AM, Prabath Ariyarathna <[email protected]>
>>> wrote:
>>>
>>>> Looping to support dev
>>>>
>>>>
>>>> On Tue, May 5, 2015 at 3:07 PM, Prabath Ariyarathna <[email protected]
>>>> > wrote:
>>>>
>>>>> Hi Automation team
>>>>>
>>>>> I'm going to automate following scenario for the reported issue[1].
>>>>> Could you please verify whether this is possible with existing integration
>>>>> test suite capabilities.
>>>>>
>>>>> 1. Start ESB & MB(ActiveMQ/Wso2 MB)
>>>>> 2. Send Message
>>>>> 3. Restart MB
>>>>> 4. Start Backend service
>>>>> 5. Get a received messages count by the backend service.
>>>>>
>>>>> [1] = *https://wso2.org/jira/browse/ESBJAVA-3670
>>>>> <https://wso2.org/jira/browse/ESBJAVA-3670>*
>>>>>
>>>>>
>>>>> Thanks.
>>>>> --
>>>>>
>>>>> *Prabath Ariyarathna*
>>>>>
>>>>> *Associate Technical Lead*
>>>>>
>>>>> *WSO2, Inc. *
>>>>>
>>>>> *lean . enterprise . middleware *
>>>>>
>>>>>
>>>>> *Email: [email protected] <[email protected]>*
>>>>>
>>>>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com/>*
>>>>>
>>>>> *Flicker : https://www.flickr.com/photos/47759189@N08
>>>>> <https://www.flickr.com/photos/47759189@N08>*
>>>>>
>>>>> *Mobile: +94 77 699 4730 *
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> *Prabath Ariyarathna*
>>>>
>>>> *Associate Technical Lead*
>>>>
>>>> *WSO2, Inc. *
>>>>
>>>> *lean . enterprise . middleware *
>>>>
>>>>
>>>> *Email: [email protected] <[email protected]>*
>>>>
>>>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>*
>>>>
>>>> *Flicker : https://www.flickr.com/photos/47759189@N08
>>>> <https://www.flickr.com/photos/47759189@N08>*
>>>>
>>>> *Mobile: +94 77 699 4730 *
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>> *Prabath Ariyarathna*
>>>
>>> *Associate Technical Lead*
>>>
>>> *WSO2, Inc. *
>>>
>>> *lean . enterprise . middleware *
>>>
>>>
>>> *Email: [email protected] <[email protected]>*
>>>
>>> *Blog: http://prabu-lk.blogspot.com <http://prabu-lk.blogspot.com>*
>>>
>>> *Flicker : https://www.flickr.com/photos/47759189@N08
>>> <https://www.flickr.com/photos/47759189@N08>*
>>>
>>> *Mobile: +94 77 699 4730 *
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> Amalka Subasinghe
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile: +94 77 9401267
>>
>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : [email protected] <[email protected]>
> Tel  : +94 11 214 5345
> Fax :+94 11 2145300
> cell : +94770342233
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to