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 08:31 Go to next message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 145
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 08:34 Go to previous message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 145
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: Sun Dec 21 19:25:45 GMT 2014

Powered by FUDForum. Page generated in 0.03136 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software