I don't see any file called AlertsService . I am in 
theTuscany\apache-tuscany-sca-1.2.1-incubating\tuscany-sca-1.2.1-incubating\samples\feed-aggregator\src\main\java
 
dir. There are only 4 files here and the .composite file seems to be the 
only other file involved, unless I am missing something.

Where is this AlertsService file ?

I understand the promotion.  But I thought to be promoted a service must 
be declared some place - seems like in this case the service is promoted 
with out being declared any place.

Also my original questions 2 and 3 are still unclear to me. Sorry,  but I 
still don't see how  AggregatorImpl.getFeed and  AggregatorImpl.Feed are 
called when a browser hits "http://localhost:8083/rssAggregator"; or 
"http://localhost:8083/atomAggregator";



Willis C White III 
IQ Technology Projects
IBM CIO Technology & Innovation
Poughkeepsie, NY 12601
Home office 845 331-5134
Cell 845 853-3827
 

 



"Raymond Feng" <[EMAIL PROTECTED]> 
07/22/2008 01:26 PM
Please respond to
[email protected]


To
"tuscany-user" <[email protected]>
cc

Subject
Re: Questions about feed-aggregator sample






Resending as the previous message triggered the spam alert and was 
rejected


From: Raymond Feng
Sent: Tuesday, July 22, 2008 10:12 AM
To: [email protected]
Subject: Re: Questions about feed-aggregator sample


Hi,

1) This is a service promotion that makes the AtomAggregator component 
service public and further configure the binding to be ATOM (i.e., expose 
it 
as an ATOM service). You can also inline the binidng.atom configuration 
under the <component> element.  There are differences between the two 
configurations. For the promotion, the composite can be used to implement 
another SCA component (implementation.composite for recursive 
composition)and the promoted service becomes a service at the higher level 

component. For the inline case, you just configure the binding.

2) All operations on the AlertsService interface can be called.

3) The @Remotable applies to the interface instead of the component impl 
class. Please note AlertsService interface has the @Remotable.

Thanks,
Raymond


From: Willis C White
Sent: Tuesday, July 22, 2008 8:41 AM
To: [email protected]
Subject: Questions about feed-aggregator sample



I am trying to understand these lines in the FeedAggregator.composite file

<service name="rssSample" promote="RssAggregator">
                <tuscany:binding.atom 
uri="http://localhost:8083/rssAggregator"/>
        </service>
        <service name="atomSample" promote="AtomAggregator">
                <tuscany:binding.atom 
uri="http://localhost:8083/atomAggregator"/>
        </service>


These services are not declared in the component stanzas and I don't see 
an 
"@Remotable" in the AggregatorImpl.java.
1.How do these lines get wired to the java file?
2.What method to they call?
3.How is it that they talk to code out side of the domain without a 
"@Remotable"  annotation.


 


<<image/gif>>

Reply via email to