Global Attributes

I need to access a global attribute (for example Database Connection String)from some of my Channels. Is there some way I can set this in the Profiling Service (before I even start up IPS) and use/read it from all my applications. I tried something like:

creating XML file (iwtMyDBInfo.xml) with single attr, iwtMyDBInfo-connectstring.

I imported it ipsadmin -import ./iwtMyDBInfo.xml and restarted IPS Server.

However, I cannot read the attribute using:

getAttributeString(component name, key, default) or

getAttributeString(key, default). I know I could getUserProperty or getProperty, but that implies is the Property is somehow being set somewhere else. I want the property to be set/accessible without any User intervention. Can I do this and is so I'm looking for suggestions.

Mike

[838 byte] By [708801] at [2007-11-25 4:35:47]
# 1

I will answer my own question. I basically created and XML file, iwtDBConnection.xml that contained an String valued attribute defining my DB connection string, "dbConnection. I imported the xml file into the profiling service. And I created a method that does

loadProperties("iwtDBConnection*")

return getStringProperty("iwtDBConnection", "dbConnection", "@myDB:abcd1")

Mike

708801 at 2007-6-29 2:48:19 > top of Java-index,Web & Directory Servers,Portal Servers...