Hi Lasantha, Thanks for the solution.
logging in as a tenant user solved the problem. Now new artifacts that I add after tenant is loaded get deployed. But, the artifacts that were already there in my tenant artifact directory neither gets deployed at server startup nor when a tenant user is logged in. But these artifacts get deployed if I do some change to them after a tenant user logs in. What may be the reason for this? Thanks On Sat, Nov 15, 2014 at 12:08 AM, Lasantha Fernando <lasan...@wso2.com> wrote: > Hi Lahiru, > > Can you verify whether your tenant is loaded in the server? (If you simply > login as a tenant user, the tenant should be loaded) > > If your tenant is not loaded, the deployment of artifacts for that > particular tenant will not happen. AFAIK, this is the expected behaviour > for a carbon server since we load tenants lazily. > > Thanks, > Lasantha > > On 14 November 2014 22:58, Lahiru Chandima <lahi...@wso2.com> wrote: > >> 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 <firz...@wso2.com> 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 <lahi...@wso2.com> >>> 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 >>>> lahi...@wso2.com >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >> >> >> -- >> Lahiru Chandima >> *Senior Software Engineer* >> Mobile : +94 (0) 772 253283 >> lahi...@wso2.com >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Lasantha Fernando* > Software Engineer - Data Technologies Team > WSO2 Inc. http://wso2.com > > email: lasan...@wso2.com > mobile: (+94) 71 5247551 > -- Lahiru Chandima *Senior Software Engineer* Mobile : +94 (0) 772 253283 lahi...@wso2.com
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev