On Sun, Aug 8, 2010 at 7:19 AM, Millies, Sebastian
<[email protected]> wrote:
> From: Simon Nash [mailto:[email protected]]
> Sent: Friday, August 06, 2010 3:59 PM
>>
>>Millies, Sebastian wrote:
>>> Hello there,
>>>
>>> I’m trying to implement the introducing-tours example from the 
>>> TuscanySCAInAction
>>> book.
>>>
>>> There is a tours.composite file in an Eclipse project called "Tours"
>>> which references a service like this:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"; name="tours" 
>>> targetNamespace="http://tuscanyscatours.com/";>
>>>     <sca:component name="TripBooking">
>>>
>>>         <sca:reference name="mytrips" target="TripProvider/Trips">
>>>             <sca:interface.java interface="com.tripprovider.Trips" />
>>>         </sca:reference>
>>>
>>>     </sca:component>
>>>
>>> </sca:composite>
>>>
>>> When I use the SCA Builder or try to open the composite in the graphical 
>>> SCA composite model
>>> editor, I get an UnresolvedReferenceException for mytrips.
>>>
>>> I guess this happens because the service that is referenced sits in another 
>>> Eclipse project (Trips).
>>> Adding a project reference from Tours to Trips doesn't help, neither does 
>>> adding the Trips jar file
>>> to the project libraries.
>>>
>>> Not sure if this is the right forum, because this is an Eclipse specific 
>>> question.
>>> But perhaps someone can help, or point me to the correct forum.
>>>
>>> Sebastian
>>>
>>Is it possible to put tours.composite and trips.composite in the same Eclipse 
>>project?
>>
>>   Simon
>>
>
> Well, perhaps for this example. But I was planning a larger development 
> project and was intending
> to use one Eclipse project for each composite. This seemed a natural way to 
> go. If this is technically
> not feasible, what do people usually do in Eclipse? I can't believe they are 
> letting themselves be
> forced into putting everything into one single gigantic project.
>
> -- Sebastian
>
>
>

Hi Sebastien

>From a Tuscany runtime point of view there's no problem. Separate
contributions can be built in separate Eclipse projects and can then
be deployed into a single runtime.

However you're saying that, when using the Eclipse graphical SCA
tools, there seem to be some restrictions about how you structure
you're projects. This may be the case but I have to admit that I'm not
an expert on how the Eclipse tools work. Are any of the Eclipse STP
guys tuning in here that could answer the question? If you don't get a
response here in the next day or so I'd advise posting the same
question directly to their user list.

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com

Reply via email to