users@jersey.java.net

[Jersey] Set port number for Grizzly Web Container

From: hazel8 <h.hitz_at_gmx.ch>
Date: Sat, 18 Jun 2011 06:08:11 -0700 (PDT)

Hello everybody

I'm using jersey testframework to stub services that will be used in the
project under test. Therefore I need to change the port number of the
grizzly web container.

How can I do that? Can somebody provide me a code snipplet?

Many thanks in advance
Hazel8

My code for starting grizzli web container:

public class ActivitiJerseyStubTest extends JerseyTest{

    public ActivitiJerseyStubTest() throws Exception {

            super(new WebAppDescriptor.Builder("ch.triemli.proc.hflow.srvcstub")
                .contextPath("hFlow")
                .servletPath("/rs")
                .build());

    }
    
        @Rule
        public ActivitiRule activitiRule = new ActivitiRule();
        ......

 

--
View this message in context: http://jersey.576304.n2.nabble.com/Set-port-number-for-Grizzly-Web-Container-tp6490709p6490709.html
Sent from the Jersey mailing list archive at Nabble.com.