Hi Gan,
<br>
<br>In the first option, do I need to describe the shared component totally in the second descriptor repeating also the implementation and artifact clauses?
<br>
<br>The externalRefEndpoint is avaiable in CIAO 0.5.10?
<br>
<br>Thank you very much.
<br>
<br>Santos
<br>
<br>---------[ Received Mail Content ]----------
<br>
<br> Subject : Re: [ciao-users] Deployment descriptor for external component        connection
<br>
<br> Date : Wed, 01 Aug 2007 09:51:42 -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>Thanks for using PRF!
<br>
<br>
<br>
<br>san tos wrote:
<br>
<br>> CIAO VERSION: 0.5.9
<br>
<br>> TAO VERSION : 1.5.9
<br>
<br>> ACE VERSION : 5.5.9
<br>
<br>> 
<br>
<br>> HOST MACHINE and OPERATING SYSTEM:
<br>
<br>> If on Windows based OS's, which version of WINSOCK do you
<br>
<br>> use?: Pentium IV, Debian linux kernel 2.6
<br>
<br>> 
<br>
<br>> TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
<br>
<br>> COMPILER NAME AND VERSION (AND PATCHLEVEL):
<br>
<br>> 
<br>
<br>> THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
<br>
<br>> specific file, simply state which one]:#include "ace/config-
<br>
<br>> linux.h"
<br>
<br>> 
<br>
<br>> THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
<br>
<br>> use a link to a platform-specific file, simply state which one
<br>
<br>> (unless this isn't used in this case, e.g., with Microsoft Visual
<br>
<br>> C++)]:
<br>
<br>> no_hidden_visibility=1
<br>
<br>> include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
<br>
<br>> 
<br>
<br>> CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
<br>
<br>> default.features
<br>
<br>> (used by MPC when you generate your own makefiles): There is no
<br>
<br>> such file.
<br>
<br>> 
<br>
<br>> AREA/CLASS/EXAMPLE AFFECTED:
<br>
<br>> [What example failed? What module failed to compile?]
<br>
<br>> 
<br>
<br>> DOES THE PROBLEM AFFECT:
<br>
<br>> COMPILATION? No.
<br>
<br>> If so, what do your $ACE_ROOT/ace/config.h and
<br>
<br>> $ACE_ROOT/include/makeinclude/platform_macros.GNU contain?
<br>
<br>> LINKING?
<br>
<br>> On Unix systems, did you run make realclean first?
<br>
<br>> EXECUTION? No.
<br>
<br>> OTHER (please specify)?
<br>
<br>> [Please indicate whether ACE/TAO/CIAO, your application, or both are
<br>
<br>> affected.]
<br>
<br>> 
<br>
<br>> Deployment descriptor for external component connection
<br>
<br>> 
<br>
<br>> SYNOPSIS:
<br>
<br>> [Brief description of the problem]
<br>
<br>> 
<br>
<br>> Deployment descriptor for external component connection
<br>
<br>> 
<br>
<br>> DESCRIPTION:
<br>
<br>> [Detailed description of problem. Don't just say "
<br>
<br>> doesn't work, here's a fix," explain what your program does
<br>
<br>> to get to the state. ]
<br>
<br>> 
<br>
<br>> Hi,
<br>
<br>> 
<br>
<br>> I need to deploy two applications described in two diferent deployment 
<br>
<br>> descriptor files. I tryied to do that by copying the ior file from one 
<br>
<br>> component (Comp2.ior) and pasting it in the directory of the other 
<br>
<br>> application. The deployment descriptor connection clause of the 
<br>
<br>> application that uses the external reference is as follows:
<br>
<br>> 
<br>
<br>> 
<br>
<br>> comp1-comp2
<br>
<br>> 
<br>
<br>> comp1_facet
<br>
<br>> Facet
<br>
<br>> Comp1-idd
<br>
<br>> 
<br>
<br>> 
<br>
<br>> Comp2
<br>
<br>> false
<br>
<br>> comp2_receptacle
<br>
<br>> IDL:Application/AppComponent:1.0
<br>
<br>> 
<br>
<br>> 
<br>
<br>> 
<br>
<br>> The first application deploys fine but the deployment of the second 
<br>
<br>> application reports an error stating that plan launcher can’t find the 
<br>
<br>> external reference (Comp2) despite I put the ior file in the application 
<br>
<br>> descriptor folder. I’m starting two Execution Managers, one for each 
<br>
<br>> application. I would appreciate if someone can give me a hint of what is 
<br>
<br>> wrong or point some example to follow.
<br>
<br>
<br>
<br>There are two ways to do this:
<br>
<br>
<br>
<br>1. Use the "shared component" feature of DAnCE
<br>
<br>
<br>
<br>    a. You deploy your first deployment plan which has "comp1" and facet
<br>
<br>       "foo".
<br>
<br>
<br>
<br>    b. In your 2nd deployment plan (with a different plan_uuid than the
<br>
<br>       first one), your still describe "comp1" in its descriptor, and
<br>
<br>       use the normal way to describe the facet/receptacle connection.
<br>
<br>
<br>
<br>    c. DAnCE will recognize that "comp1" has already been deployed, so
<br>
<br>       it won't redeploy it, but simply set up the connections between
<br>
<br>       "comp1" and "comp2". Please note that you only need one
<br>
<br>       ExecutionManager.
<br>
<br>
<br>
<br>       Please see:
<br>
<br>
<br>
<br>       CIAO\examples\Hello\descriptors_shared_components
<br>
<br>
<br>
<br>       for an example.
<br>
<br>
<br>
<br>2. Use the externalRefEndpoint
<br>
<br>
<br>
<br>    You can use "externalReferenceEndpoint" tag and supply a corbaname://
<br>
<br>    ior. Please note you still only need one ExecutionManager. This
<br>
<br>    feature is not in the CIAO VERSION: 0.5.9 yet.
<br>
<br>
<br>
<br>Thanks,
<br>
<br>Gan
<br>
<br>
<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>