...
Create the top level
artifacts.xml
file of the C-App which defines the set of folders included in it as shown below.Code Block language xml <artifacts> <artifact name="SampleC-App" version="1.0.0" type="carbon/application"> <dependency artifact="WSO2EventReceiver" version="1.0.0" include="true" serverRole="ComplexEventProcessor"/> <dependency artifact="HighFrequentTweetsLogger" version="1.0.0" include="true" serverRole="ComplexEventProcessor"/> </artifact> </artifacts>
Create separate directories in the top level of the C-App for the two dependencies (WSO2EventReceiver_1.0.0 and HighFrequentTweetsLogger_1.0.0) defined in the
artifacts.xml
file.Info You can have multiple dependencies as required with a directory for each of them in the same level as the
artifacts.xml
file in the C-App. Include the name and the version of the artifact in the name of the directory.Note Each dependency directory should contain an artifact.xml file.
Create an
artifact.xml
file inside all dependency directories. For example, theartifact.xml
file of the WSO2EventReceiver_1.0.0 dependency directory is as follows.Code Block language xml <artifact name="WSO2EventReceiver" version="1.0.0" type="event/receiver" serverRole="ComplexEventProcessor"> <file>WSO2EventReceiver-1.0.0.xml</file> </artifact>
Create the
WSO2EventReceiver-1.0.0.xml
file, which is the actual event receiver file that you deploy in WSO2 CEP inside the WSO2EventReceiver_1.0.0 directory.Create the
HighFrequentTweetsLogger-1.0.0.xml
file, which is the actual event publisher file that you deploy in WSO2 CEP inside theHighFrequentTweetsLogger_1.0.0
directory.
...