cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: how does java2ws chose the port# for service
Date Wed, 08 Sep 2010 03:27:10 GMT
On Tuesday 07 September 2010 9:26:27 pm bord wrote:
> i imagine the subject is a simple beginner question but i cannot find the
> answer.
> when i use java2ws the port number gets assigned to 9090.
> i checked the entire samples directory and in build.xml i encountered 9000
> for port number.
> 
> i would like to think that the documentation for CXF mentions this but that
> i'm too new to CXF to be able to find it.
> 
> cheers
> bord 

Seems to be burned into the code:

public static final String DEFAULT_ADDRESS = "http://localhost:9090";


String address = ToolConstants.DEFAULT_ADDRESS + "/" 
   + endpointInfo.getName().getLocalPart();

The only way to override it is to use the -address flag on the java2ws command 
line.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Mime
View raw message