A configuration context represents a heirarchical view of the configuration attributes. It reads the configuration attributes from
domain.xml The configuration context has a one-to-one realationship with a configuration file. There is no public constructor. Use ConfigFactory to construct ConfigContext. Once ConfigContext is created, then, it is tied to the configuration file forever. This object can be make readOnly and autoCommit during creation but these parameters cannot be changed once the object is created. Note that this object might be shared by number of threads. Here are some examples of code to illustrate lookup: 1. If you want to specifically locate a Node in the configuration: example: jms resource in server.xml
ConfigBean conBean = ctx.exactLookup("/server/resources/jms-resource[@name='jms1']");
Follow the syntax below for creating xpath expression for use in lookup/exactLookup. This is the only syntax supported.
expression := /tagName | /tagName/tagExpression tagExpression := tagName| tagName[@name='value'] | tagName/tagExpression | tagName[@name='value']/tagExpression