On Tue, Jan 27, 2009 at 10:58 AM, Sebastian Luksch <[email protected]> wrote:
> Hi,
>
> I'm using the tuscany libs four our sca-project.
> We have the problem that we can not use the port 8080 - but it seems to be
> the tuscany default "RUNNING_PORT". How can I configurate this port?
> Maybe with a *.properties - file ?
>
> Regards Sebastian
>
>
Hi Sebastien
It depends on how you are running the tuscany runtime. Two particular cases
some to mind.
1/ If you are running Tuscany from the command line and, for example, you
are using binding.ws then the host.jetty/tomcat that gets started
automtically will create ports based on the configuration of the binding.
So, for example,
<component name="HelloWorldServiceComponent">
<implementation.java class="helloworld.HelloWorldImpl" />
<service name="HelloWorldService">
<binding.ws uri="http://localhost:8085/HelloWorldService"/>
</service>
</component>
will provide a web service endpoint at
http://localhost:8085/HelloWorldService.
2/ If you are running Tuscany in a web app then Tuscany relies on the
container to set up whatever ports are required and the configuration in the
bindings will not override the configuration of the container.
Simon