Richard Wallace wrote:
On Tue, 2003-01-21 at 05:02, Stephen McConnell wrote:Give me a couple of weeks - and yes. There is some refactoring I need to take care of after which I will be able to provide some running demonstrations. In the meantime you may want to take a look though the following:
Within an embedded environment the bootstrap package isn't necessary - in effect you would simply instantiate a new block. There are not example of this yet (but its comming). I'm not totally happy with the bootstrap process at this stage and I would like to do put some more effort into making the initial command line deployment a more brain-dead exercise.
Aside from that - you should look at the test cases in the assembly package. If the number of components and depedencies are relatively static then you don;t need Merlin - the assembly package provides everything you need to deploy a component. On the other hand, if you applying auto-assembly agaisnt unknown content - then you want Merlin because it adds more management over and above the assembly package.I'll look into the assembly package, but I'll use merlin if I can get it
working.
On the web server side - I've been using Tomcat successfull within Merlin (and Merlin within Tomcat) for doing things like dynamic navigation of containers and components.
Any sample code for running Merlin in Tomcat?
http://www.osm.net/doc/gateway/
There are several scenarios I've been dealing with:Let me know what you application scenario is - I have some thoughts about other things going on here or at osm.net.I'm trying to run merlin in a standalone tomcat engine. Not sure what
more you want for the scenario.
1. componet has a depedency on a web-server - wants to register a presentation app
2. web application needs merlin to get component services to do its stuff
The two are very differnet - in the first case I've been playing around with meta attributes that describe presention policy but with mixed success. In the second case - no problem.
To try and get things going I copied much of the bootstrap.Merlin code but instead of grabbing the properties from a file I construct them from the servlet config. I've been trying to get the demo to work, but have had a few problems. Most I think I've got straightened out. I'm still getting the following error, though: Message: Controller deployment failure. =================================================================== Exception: java.net.MalformedURLException unknown protocol: native
Ok - you not registering the protocol handler.
The DefaultRegistry constructor handles the establishment of the protocol handler. Seems to me like you not supply a registry which is used when aggregating services available in a block. Anyway - you will find the code for handler registration in the DefaultRegistry constructor - in the meantime - a confession - theis are of bootstrapping is probably the worst documented. Also I want to get in test cases for embeeded loading - ... zutt - so much to do - so little time!
Any ideas what's causing this?
:-)
Is this a problem with the classloaderGive me a couple of weeks and I'll have a working demo in place.
setup or something, you think? Again, sample code for running Merlin in
Tomcat would be much appreciated.
Not sure where I'll put it - but I'll make sure something is available either here at Avalon or over on osm.net.
Cheers, Steve.
--
Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>