Quoting Erik Visser <[EMAIL PROTECTED]>:

> I understand there's a new concept called application in (upcoming version
> of) MMBase.
> CloudSecurity is an example.
> 
> Can anyone give some more info on applications.
> What is an application in MMBase context exactly? (set of builders, .....?)
> How do you install / deinstall an application?
Hi,

applications like the CloudSecurity.xml have been there for about a year now
the basic idea is to grab a pice of cloud and store the information as a set of
xml files. The current applications only contain builders/relation definitions
and data. There is a app2.0 project that takes some ideas from the app1.0
project but this is an ohter story. The way for me to create an application is
by creating it by hand (just like the CloudSecurity.xml)
There isn't much documentation but if you look at the xml files things should
get clear(take the MyNews as example). In the scan admin pages (and maybe the
jsp ones) it is possible to 
export an application (CloudSecurity.xml + data + builders)to a /tmp directory
(I havent tested this recentely)

So the current applications you can already do a lot
-store your datamodel so that you can "swap" databases
-store some data

In the past and in mmbase 1.5 when installing a "new" application
all the builders that are required by the application should already be
installed (ohterwise you will get some error message in the console).
I usualy do this by copying builder in de application directory to 
to the builder directory
cp -r config/application/MyNews/builders config/builders/MyNewsBuilders
(builders the config/application tree are not installed by default)

In the current CVS this is done "automagicaly" (not perfect but works).


> Etc.
> 
> Is there any documentation on applications yet?
not realy

> 
> Seems a good idea to seperate builders of different applications in
> different subdirectories.
> e.g.

yes, this is already done in the current CVS

>  
> \webapps\mmbase\WEB-INF\config\builders\applications\CloudSecurity\mmbaseuse
> rs.xml
>  
> \webapps\mmbase\WEB-INF\config\builders\applications\myapplication\myapp.xml
> Is this possible? If so what do i have to do to make it work?

as long as the builders are in the config/builders directory or a sub directory 
your aproach should work


Reply via email to