Hi Sandamal, If it's a carbon component, you can use the ApplicationManagerService OSGI service to get the capp list.
/** * @scr.component name="application.mgt.dscomponent" immediate="true" * @scr.reference name="application.manager" interface="org.wso2.carbon.application.deployer.service.ApplicationManagerService" * cardinality="1..1" policy="dynamic" bind="setAppManager" unbind="unsetAppManager" */ Regards, Aruna On Wed, Nov 26, 2014 at 12:44 PM, Supun Malinga <[email protected]> wrote: > Hi, > > Where do you intend to have the code which needs to get the list of CApps > ?. More context would be helpful. > If its within a carbon component you don't need to authenticate. Otherwise > you need to authenticate. > > thanks, > > On Wed, Nov 26, 2014 at 12:23 PM, Sandamal Weerasinghe <[email protected]> > wrote: > >> Hi all, >> >> I need to get a list of the un-deployed car files in WSO2 ESB, which can >> be done using the following class >> <https://github.com/wso2-dev/carbon-commons/blob/master/components/application-mgt/org.wso2.carbon.application.mgt/src/main/java/org/wso2/carbon/application/mgt/ApplicationAdmin.java>. >> Is there a way to do this without using the AuthenticationAdminStub? >> Basically what I want to do is, call an Admin Service without using the >> usename and pw inside the Java class. >> >> Thanks. >> >> Sandamal Weerasinghe | Software Engineer | WSO2 Lanka (Pvt) Ltd >> >> Mobile - +94-77-144-9640 >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Supun Malinga, > > Senior Software Engineer, > WSO2 Inc. > http://wso2.com > email: [email protected] <[email protected]> > mobile: +94 (0)71 56 91 321 > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Aruna Sujith Karunarathna* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 9040362 | Work: +94 112145345 Email: [email protected] | Web: www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
