Andreas Oberhack wrote:

Hi all,

I'm just new to the avalon/merlin container.

I went through the examples which worked fine. All seems to well
archtectured!

Now one question: If I develop certain services/components: how can I deploy
them in single jars?



After establishing the root container Merlin adds cointainment defintions to the root iodentified by URLs. Typically the URL refers to an xml file containing a <container> root element (block.xml or whatever.block). There are two cases in which Merlin will expand a supplied url implicitly. If the url referes to a jar file or a local directory Merlin appends /BLOCK-INF/block.xml to the url.


If you take a look at the hello tutorial - you will see that the project.xml extends project.xml in /tutorials. In the /tutorials/project.xml you will see a resource statement which includes the /hello/conf/block.xml into the generated jar file under the path /BLOCK-INF/block.xml.

How can I "send" them to the repository?


For now you need to copy and paste. This could be automated as either (a) some jaelly script in you maven.xml to do this automatically, or, via additions of equivalent functionality to the merlin plugin.


Which config
files are needed in the jars?


The set of resources that need to be added to the jar file include the xfiles suite (xinfo, xtype, xservice, xconfig) colocated with the jar file. This will happen automatically based on <resource> statements in the project.xml (see /tutorials/project.xml as an example). The block.xml can be included in /BLOCK-INF/block.xml but this is optional. Association of packaged configuration at the level of block is not address yet and will probably be incorporated at the level of a .bar file. In the meantime you can publish one or application configuration files anywhere addressable via a http or file: url.


Stephen.


Andreas





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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



  • Jars Andreas Oberhack
    • Stephen McConnell

Reply via email to