This does not work either. I have tried it. See "Muse Resource not initialized" topic by MUSEME. If I try to create Resource in my capability, I get nullpointer exceptions.
Vinh Nguyen (vinguye2) wrote: > > Does this fix your issue? > > > -----Original Message----- > From: Vinh Nguyen (vinguye2) > Sent: Wednesday, June 06, 2007 11:26 AM > To: [email protected] > Subject: RE: Get Resource Manager Muse 2.2.0 > > I believe that from within a capability, you can just call: > > getResource().getResourceManager() > > > -----Original Message----- > From: Bogdan Solomon [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 06, 2007 11:16 AM > To: [email protected] > Subject: Get Resource Manager Muse 2.2.0 > > > I am trying to build a factory capability that would initialize other > capabilities when it receives requests for creation. > > My class definition looks like this: > > public class FilterManagerFactoryImpl extends > AbstractWsResourceCapability implements IFilterManagerFactoryImpl > > My call to obtain the resource manager looks like this: > > ResourceManager manager = getEnvironment().getResourceManager(); > > According to Eclipse the getEnvironment() method has the signature: > > Environment org.apache.muse.core.AbstractCapability.getEnvironment() > > However it does not find the getResourceManager() method in the > Environmnet class. > > > Based on the API provided here: > > http://ws.apache.org/muse/docs/2.2.0/javadoc/org/apache/muse/core/Enviro > nment.html > > Environment does not have a getResourceManager() class. > > > So I was wondering what am I doing wrong. Am I defining my capability > class parent incorrectly, or has the API changed between 2.1 and 2.2? > > > -- > View this message in context: > http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a10 > 994330 > Sent from the Muse User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Get-Resource-Manager-Muse-2.2.0-tf3879575.html#a11085357 Sent from the Muse User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
