Sorry Gan,
<br>
<br>I have both cases in my application, but right now I'm testing the case when I have an event sink that is a subclass of the event source, like that:
<br>
<br>eventtype InfoEventBase {string name};
<br>eventtype InfoEvent:InfoEventBase {};
<br>
<br>component Comp1 {
<br>publishes InfoEventBase comp1_pub;
<br>}
<br>
<br>component Comp2 {
<br>consumes InfoEvent comp2_cons;
<br>} 
<br>
<br>I tryied to connect them using:
<br>
<br>  <connection>
<br>    <name>comp1-comp2</name>
<br>    <internalEndpoint>
<br>      <portName>comp1_pub</portName>
<br>      <kind>EventPublisher</kind>
<br>      <instance>Comp1-idd</instance>
<br>    </internalEndpoint>
<br>    <internalEndpoint>
<br>      <portName>comp2_cons</portName>
<br>      <kind>EventConsumer</kind>
<br>      <instance>Comp2-idd</instance>
<br>    </internalEndpoint>
<br>  </connection>
<br>
<br>But I'm getting the InvalidConnection exception I mentioned before. When I change the types of both ports to InfoEventBase the deployment succeeds.
<br>
<br>Thank you.
<br>
<br>Santos
<br>---------[ Received Mail Content ]----------
<br>
<br> Subject : Re: [ciao-users] Deployment descriptor for external        component        connection
<br>
<br> Date : Thu, 02 Aug 2007 12:04:00 -0500
<br>
<br> From : Gan Deng <gan.deng@vanderbilt.edu>
<br>
<br> To : CIAO Users Mailing List <ciao-users@cse.wustl.edu>
<br>
<br>
<br>
<br>Santos,
<br>
<br>
<br>
<br>san tos wrote:
<br>
<br>> Hi Gan,
<br>
<br>> 
<br>
<br>> I did the tests you suggested and the deployment worked fine when the 
<br>
<br>> event sink and source are of the same time. It appears that when the 
<br>
<br>> event sink is a subclass of the event source port the connection doesn't 
<br>
<br>> succeed. Below are the error messages I got when tryied to do that.
<br>
<br>
<br>
<br>Uhm, what you described in this email is different from your earlier 
<br>
<br>email. In your earlier email, you mentioned that
<br>
<br>
<br>
<br>"The event source port type is a subclass of the event sink port type"
<br>
<br>
<br>
<br>, and here you mentioned the other way around.
<br>
<br>
<br>
<br>In general, the deployment should work if the event sink is a base event 
<br>
<br>type and event source is a derived type of that.
<br>
<br>
<br>
<br>Please give it another try with my suggestions above, thanks!
<br>
<br>
<br>
<br>Thanks,
<br>
<br>Gan
<br>
<br>
<br>
<br>_______________________________________________
<br>
<br>ciao-users mailing list
<br>
<br>ciao-users@mail.cse.wustl.edu
<br>
<br>http://mail.cse.wustl.edu/mailman/listinfo/ciao-users
<br>
<br><br/>
<div>
<hr style="width:85%;margin-left:0px;text-align:left"/><br/>
<b>Get all the Hottest Artists on Your Cell Phone - Plus 10 Bonus Tones Today!</b><br/>
Find Your New Ringtone at <a href="http://www.lycos.playp.biz/mobringtones/Default.aspx?StoreFrontID=0006-0006-1005-0125" target="_blank"><u>Lycos Mobile</u></a>.
</div>