Caoilte,

You may also look to write a @BeforeStory / @AfterStory that
starts and stops an embedded jetty server.  I've done this with
testing of JAX-RS (REST) web services where the steps methods
are clients of the server.  Since you'd be in code, you should
have access to all the Jetty configuration (including JMX) that
you need.

JBehave team - is there a @BeforeRun / @AfterRun?

Brian

----- Original message -----
From: "Mauro Talevi" <[email protected]>
To: [email protected]
Date: Sat, 20 Aug 2011 10:05:13 +0200
Subject: Re: [jbehave-user] testing JMX

Hi,

you can use the Jetty Maven Plugin

http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin

You can configure JVM via it.

Cheers

On 19/08/2011 23:10, Caoilte O'Connor wrote:
> Hi,
> One of my JBehave steps start a jetty server and I would like to be
> able to enable JMX in this jetty server but I don't think it will be
> possible using the jbehave maven plugin.
>
> I used to use sure-fire and that allows you to fork and pass JVM
> properties in there.
>
> Can anyone think of a way I might be able to start Jetty with JMX
> enabled for my tests?
>
> Thanks
>
> Caoilte
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---
Brian Repko
LearnThinkCode, Inc.
http://www.learnthinkcode.com
email: [email protected]
phone: +1 612 229 6779


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to