Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Process Manager (Stardust) » Accessing Configuration Variables in a Java class
Accessing Configuration Variables in a Java class [message #924918] Thu, 27 September 2012 04:31 Go to next message
Robert Emsbach is currently offline Robert Emsbach
Messages: 113
Registered: October 2011
Location: Singapore
Senior Member

I am working on fetching configuration variables into the java classes in a model. I found from documentation that ConfigurationVariables class can be used to get this information. I have tried multiple ways to get this information and it always returns null. Can you please let me know how this can be solved ?
Re: Accessing Configuration Variables in a Java class [message #924920 is a reply to message #924918] Thu, 27 September 2012 04:34 Go to previous message
Robert Emsbach is currently offline Robert Emsbach
Messages: 113
Registered: October 2011
Location: Singapore
Senior Member

Following code snippet works and returns me the configuration variables defined for model id "ProductionOrTestVarDemo"

ConfigurationVariables configVars = sf.getAdministrationService().getConfigurationVariables("ProductionOrTestVarDemo");
List<ConfigurationVariable> configVarList = configVars.getConfigurationVariables();
//assertEquals(modelConfigVarList.size(), configVarList.size());
for (ConfigurationVariable cv : configVarList)
{
System.out.println("cv.getName()***********" + cv.getName());
}
Previous Topic:Unable to log in stardust
Next Topic:Sporadic NPEs thrown while parsing Camel Spring configuration during server startup
Goto Forum:
  


Current Time: Thu Apr 17 08:45:43 EDT 2014

Powered by FUDForum. Page generated in 0.01711 seconds