Hi Firzhan, Thanks for the reply.
Tried your method and its working for files deployed in repository/deployment/server/event-sinks. But still no luck with deploying for a tenant (in repository/tenants/1/event-sinks) Any idea why? Thanks On Fri, Nov 14, 2014 at 8:10 PM, Firzhan Naqash <[email protected]> wrote: > Hi Lahiru, > > Rathern than defining them in axis2.xml, you can define them in > compnent.xml and pom.xml file which worked for me [1] > > [1] http://architects.dzone.com/articles/writing-axis2-custom-deployers > > Regards, > Firzhan > > On Fri, Nov 14, 2014 at 7:14 PM, Lahiru Chandima <[email protected]> wrote: > >> Hi All, >> >> I have created an Axis2 deployer to deploy an xml artifact. I have added >> following to repository/conf/axis2/axis2.xml >> >> <deployer extension=".xml" >> class="org.wso2.carbon.event.sink.EventSinkDeployer" >> directory="event-sinks"/> >> >> And I have created a directory named event-sinks for my new artifact type >> in repository/deployment/server >> >> When I add a new xml artifact to the event-sinks directory, >> deploy(DeploymentFileData deploymentFileData) in my deployer gets called >> without a problem. >> >> But, if I deploy an artifact for a tenant (eg: in directory >> repository/tenants/1/event-sinks for tenant 1), deploy() method of my >> deployer doesn't get called. >> >> What have I done wrong? Have I created event-sinks directory in the wrong >> location for tenant 1? >> >> Thanks >> >> -- >> Lahiru Chandima >> *Senior Software Engineer* >> Mobile : +94 (0) 772 253283 >> [email protected] >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 [email protected]
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
