Re: Classpath error when embedding merlin into a commandline application

Niclas Hedhman <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Organization Private
Message-ID <[email protected]>
On Saturday 11 September 2004 03:10, Rajamani Saravanan wrote:
> One question though : after calling addContainmentModel(), I suppose I
> have to call assemble() and then commission() on the returned model
> instance before being able to use any of the services provided by the
> component, right?

Nah... For deployment, commission() is enough.

ContainmentModel newContainer = container.addContainmentModel( blockUrl );
newContainer.commission();

However, for undeployment you need;

container.decommission();
container.disassemble();
parent.removeModel( name );


A bit inconsistent, I know... We might look into this in the future.

Cheers
Niclas

-- 
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org / 
+------//-------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.