[cosmic-users] Modeling + IORs

William Otte wotte at dre.vanderbilt.edu
Thu Apr 19 01:12:29 CDT 2007


Hi Abdul -

On Apr 18, 2007, at 5:28 PM, Sowayan, Abdullah (N-DUA) wrote:

> CosMIC Version: 0.5.7
>
> An example would better explain my point. Consider
> $CIAO_ROOT/docs/tutorial/Quoter/Simple example in the distrubtion
>
> We have a Stock Broker with the following IDL:
>
>   component StockBroker supports StockSubscriber
>   {
>     consumes StockName notify_in;
>     uses StockQuoter read_quoter;
>   };
>
> Assume that I added an attribute to StockBroker, perhaps a string to
> assign the StockBroker a unique name.
>
> Now, assume I have 3 StockBrokers; so I instantiate 3 components in
> CosMIC. Everything works, life is great :-). However, if I actually  
> need
> the IORs for some reason, life is not so easy anymore. Under the  
> current
> CosMIC scheme, all 3 StockBrokers would have the same IOR file name,
> namely StockBroker.ior. There is no way for me in the model to assign
> them separate IOR names. The only way I can get around this is to
> hand-edit the generated XML file, and I would lose the modifications
> every time I change the model and regenerate XML descriptors.
>

Right!

> IOR names get assigned in the ComponentImplementations section of
> CosMIC. Perhaps this is not the appropriate place to assign IOR names.
> Maybe we should consider setting such an attribute on the component
> instance instead.

This is a bug in the interpreter that we have known about for well  
over a year.  You should be able to assign ConfigProperties on the  
instance level, not just the implementation level.

Thanks,
/-Will




-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2472 bytes
Desc: not available
Url : http://list.isis.vanderbilt.edu/pipermail/cosmic-users/attachments/20070419/9f9903e5/smime.bin


More information about the cosmic-users mailing list