You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by "Niu, Xuetao" <Xu...@fiserv.com> on 2010/03/12 11:58:17 UTC

How to setup my own standalone DavEx server?

Hello,

 

I have only one repository which needs to be deployed as a standalone
WAR app, all clients remote to it via DavEx.

 

I have my own repository.xml file to use and this file is dynamically
generated before starting the standalone server, so that the server can
connect to different persistence, and have all kinds of dynamic
settings, controllably. 

 

For this, I cannot manually setup a new repository every time. What I
want is to simulate what the standalone WAR app does, to publish my own
local repository as a service behind the DavEx layer in my own
standalone WAR app. 

 

Could you guys help with this? Many thanks!

 

Regards,

Xuetao


Re: How to setup my own standalone DavEx server?

Posted by ChadDavis <ch...@gmail.com>.
>
> I have my own repository.xml file to use and this file is dynamically
> generated before starting the standalone server, so that the server can
> connect to different persistence, and have all kinds of dynamic
> settings, controllably.
>

I did a similar thing by starting with the jackrabbit-webapp WAR
artifact.  I used Maven overlays to build another WAR artifact, adding
my own init servlet to do some import of CND's etc..  I also modified
the various init params and such.  I found the tricky part of all of
this was the initialization of the script.  I eventually found that
the easiest path was to use the bootstrap.properties method, but I was
never sure about the best way to handle this and haven't revisited it
yet to clean it up.