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.  I 
also tried to shutdown the kernel, then startup it up again, but that 
didn't work either.

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]

Reply via email to