Marco Tedone wrote:
Niclas Hedman wrote:
What JAR file is that? And what is the content of /BLOCK-INF/block.xmlfile
inside?
This is the name I assigned to my HelloWorld example.
This is the content of
<!-- definition of an embedded block -->
<container name="merlinj">
<classloader>
<classpath>
<repository>
<resource id="merlinj:merlinj-api" version="1.0"/>
</repository>
</classpath>
</classloader>
<component name="helloworld"
class="org.jemos.avalon.merlin.impl.HelloWorldImpl"
activation="startup">
</component>
<component name="helloclient"
class="org.jemos.avalon.merlin.impl.HelloWorldClient"
activation="startup">
</component>
</container>
This is an example of a block that would be included within a jar file. When merlin initiates deployment it checks if the target is a [something].block or [something].jar, or a directory anme [something]. If its a jar or a directory, then merlin checks for the presence of [something]/BLOCK_INF/block.xml and implicitly add [something] or [something].jar to the blocks classpath. In the case of [something].block then merlin is dealing with a full standalone block defintion (i.e. it explicitly include the impl jars in its classloader defintion). Using standalone block is one of the features in merlin that enable local deployment of system by simply referring to a url the points to a block located somewhere on the planet.
Cheers, Stephen.
--
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]
