Thanks, keep me in the loop.

- Rohan

On Wed, Mar 18, 2009 at 6:57 AM, ant elder <ant.el...@gmail.com> wrote:
> This is an issue about the base uri of the domain/node that we've
> never really had a very good story for in Tuscany, its not specific to
> the DWR binding, and I agree with you it would be nice to avoid hard
> coding the port in the composite.
>
> Its interesting that you assumed setting the domain uri ( i.e. with
> SCADomain.newInstance("http://localhost:9090","/","Calculator.composite";);
> ) might change the port that is used by default, that doesn't work but
> it seems like it could be a useful and harmless thing to do. I've not
> tried but i think that shouldn't be too hard to add, I've CC'd the dev
> list on this email so see what others think about adding that feature?
>
>   ...ant
>
> On Tue, Mar 10, 2009 at 11:58 PM, Rohan Sahgal <rohansah...@gmail.com> wrote:
>> I was trying to use the DWR binding.
>> I dont think it has a uri attribute.
>>
>> Even if it did, I want to leave the port configurable (if we run into
>> similar issues again). Having it hardcoded in the composite will make
>> the application highly unmaintainable.
>>
>> Long back, I was trying to get the distributed sample working. I think
>> that starts the server on a different port. Do you think I can use
>> something of that sort even though I dont really have a distributed
>> application (its all just specified in one composite file).
>>
>> Thanks,
>> Rohan
>>
>> On Tue, Mar 10, 2009 at 2:10 PM, Luciano Resende <luckbr1...@gmail.com> 
>> wrote:
>>> How does your composite look like ?
>>> Most of the times, you could set a binding uri and set the proper port
>>> there, as the example below
>>>
>>> <component name="Store">
>>>        <t:implementation.widget location="uiservices/store.html"/>
>>>        <service name="Widget">
>>>                <t:binding.http uri="http://localhost:8085/store"/>
>>>        </service>
>>>                <reference name="catalog" target="Catalog">
>>>                        <t:binding.jsonrpc/>
>>>                 </reference>
>>>                 <reference name="shoppingCart" target="ShoppingCart/Cart">
>>>                        <t:binding.atom/>
>>>                 </reference>
>>>                 <reference name="shoppingTotal" target="ShoppingCart/Total">
>>>                        <t:binding.jsonrpc/>
>>>                 </reference>
>>>    </component>
>>>
>>>
>>> On Tue, Mar 10, 2009 at 12:04 PM, Rohan Sahgal <rohansah...@gmail.com> 
>>> wrote:
>>>> Hi all,
>>>> I have been using SCADomain.newInstance to start a domain and deploy a
>>>> composite file.
>>>>
>>>> This always starts a jetty server on port 8080.
>>>>
>>>> Now, I have run into issues where the port 8080 is already being used
>>>> by some other application (and I cannot change that). I was wondering
>>>> whether there's a way to make it start on a different port.
>>>>
>>>> I was trying something like
>>>> SCADomain.newInstance("http://localhost:9090","/","Calculator.composite";);
>>>>
>>>> but that still starts a server at 8080.
>>>>
>>>> Thanks,
>>>> Rohan
>>>>
>>>
>>>
>>>
>>> --
>>> Luciano Resende
>>> Apache Tuscany, Apache PhotArk
>>> http://people.apache.org/~lresende
>>> http://lresende.blogspot.com/
>>>
>>
>

Reply via email to