Fernando Padilla wrote:
Hello.
I have searched through and through on Merlin Embedding, and have been able to create startup my own kernel succesfully. ( Thank you everybody for this great piece of code :)
The next thing that I would like to accomplish is to dynamically
load/unload blocks from this running kernel. I tried to do some searches
on the mailing list, but I couldn't find it ( I might not have the right
terminology ). My current test setup is below - you see how I have to add
blocks before I startup the kernel. But below that is process that I
would like to take - to add/remove blocks to an already running kernel.
Remove selected deployment and containment models is not currently supported - more stuff needed in the api on the Block interface and ContainmentModel interface and corresponding enhancements to the DefaultContainmentModel and CompositeBlock implementation classes.
I also tried to shutdown the kernel, then startup it up again, but that didn't work either.
This should be ok - but on the otherhand this entire area has changed. Could you post the details of the error report you get when doing this.
Stephen.
Could anyone please comment on this? :):)
Fernando
// WORKING SETUP
// -- createKernel // .... going off of the sample code from kernel/servlet // .... m_criteria( "merlin.autostart", "false" );
// -- addModel m_block.addModel( new URL( "http://www.ibiblio.org/maven/merlin/tutorial/jars/hello-1.1.jar" ) );
// -- statup m_kernel.startup();
// -- locate and use m_kernel.locate( "/tutorial/hello" );
// -- shutdown m_kernel.shutdown();
// DESIRED SETUP
// -- createKernel // .... going off of the sample code from kernel/servlet // .... m_criteria( "merlin.autostart", "false" );
// -- statup m_kernel.startup();
// -- addModel m_block.addModel( new URL( "http://www.ibiblio.org/maven/merlin/tutorial/jars/hello-1.1.jar" ) );
// -- locate and use m_kernel.locate( "/tutorial/hello" );
// -- removeModel, once not needed anymore, or to upgrade.. etc m_block.removeModel( "/tutorial" );
// -- shutdown m_kernel.shutdown();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Stephen J. McConnell mailto:[EMAIL PROTECTED]
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/ | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
