2 Replies Latest reply on Dec 29, 2008 8:59 PM by (Yog)

    component.xml and adobe-component-ext.properties

      Hi, Can anyone you put more light on HOW TO USE / HOW IT WORKS<br />1) component.xml's tags<br />    <export-packages><br />    <import-packages><br />    <supports-export> <br />2) adobe-component-ext.properties under app-server-root/bin<br /><br />I know there is a documentation on above on Adobe LCES page but found it is limited.<br />I would like to share classes between multiple custom components so that if one component exports its classes get redeployed then all the other component(s) that uses the exported classes start utilizing the new redeployed code/classes.<br /><br />I would like to keep common class libraries at one place and all component just should define the class path pointing to that dir/jars and therefore not required to include these common lib into each component-jar file while deploying it.<br />Any thoughts?<br /><br />Thanks<br />Yog
        • 1. Re: component.xml and adobe-component-ext.properties
          Hi Yog,<br /><br />A DSC may offer to export all the classes and resources in a package by specifying the package names in the export-packages element of component.xml. <br />Example:<br /><export-packages><br /><package>com.adobe.mypackage1</package><br /><package>com.adobe.mypackage2</package><br /></export-packages><br /><br />A DSC may import a package by specifying the package name in the import-packages element of component.xml:<br />Example:<br /><import-packages><br /><package>com.adobe.mypackage1</package><br /><package>com.adobe.mypackage2</package><br /></import -packages><br /><br />A DSC may opt to import whole packages and sub packages using the * convention. <br />Example:<br /><dynamic-import-packages><br /><package>com.adobe.*</package><br /></dynamic-import-packages><br /><br />All the shared classes can be exported from a single DSC. The other DSCs are not required to bundle these classes they can simply import these classes.<br /><br />supports-export: specifies whether a component can be exported as part of an LCA file or not.<br /><br />Thanks,<br />Kapil
          • 2. Re: component.xml and adobe-component-ext.properties
            Level 1
            Thanks Kapil,
            Does this exported class can be shared with script DSC component and other web component such as servlet? (script editor is very basic to code much :( )
            Can you elaborate on how to use adobe-component-ext.properties under app-server-root/bin ?

            I would like to reuse the DSC component(s) as much as possible also like to keep the shared code at one place so that all component can use it and do not have to re write.
            I have to keep in mind different clients such as Flex client, servlet, processes etc. what is the best approach?
            Thanks again
            -yog