Igor Kozlov wrote:

Hi all!

Answer me please on this questions.

1. What difference between Context and Configuration?

At an object level:

* a Configuration is basically an interface to an DOM tree (elements and attributes). Normally one would use configuration values to declare static information. * a Context is basically a map of keyed objects.

At the lifecycle level:

* a Configuration is supplied by a container at the beggining of the deployment lifecycel
* a Context instance is supplied after configuration

At the oprational level in Merlin:

* configuration information can be packaged with component types and component profiles which means that you can seperatte out default configuration information from actually configuration information that really needs to be monidifed by end-users - Merlin uses conscading confurations to capture multiple layers of configuration information and simplify the overall component deployment process for th end-user

* inside Merlin there are two distic context notions - one concerns conext used within the internal service management engine, and another concerns context supplied in a particular deployment scenario - this allows end-user to introduce new context types and values without having to do anything dramatic

2. Can I add in context my own data differ from String type?


You can include anything derived from java.lang.Object.

Cheers, Steve.

--

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:[EMAIL PROTECTED]
http://www.osm.net




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to