You can copy the Jackrabbit pattern of using a dedicated servlet to do init work. That's what I did. So I added a servlet that I wrote that fires on startup and has my logic for loading cnd and xml files for node types and even some content ( in the xml ).
On Fri, Mar 26, 2010 at 4:12 PM, Bill Oconnor <[email protected]> wrote: > Yes I read that but I was confused as to were exactly that code would > exist. Is it something you add to the standalone server? Should I add a > command to the cli of standalone to read a specific file? > > It doesn't look to be available through the Webdav api for example. > > On Sat, 2010-03-27 at 00:43 +0530, Dhrubo wrote: >> Register them programmatically >> >> http://wiki.apache.org/jackrabbit/ExamplesPage#Register_a_Node_Type_.5BCND.5D >> >> On Sat, Mar 27, 2010 at 12:40 AM, Bill Oconnor <[email protected]> wrote: >> >> > Hello, >> > >> > Newbie question. >> > >> > I have searched the docs and found the info on CND and loading your own >> > node types etc. In JR Standalone is there some part of the init process >> > that looks for a user supplied definitions? Or do I have to modify the >> > code to load my own file (if so where is this best done)? >> > >> > Or do I just not know what I'm talking about (very likely)? Or point me >> > to the documentation if I have missed it. >> > >> > Thanks, >> > Bill OConnor >> > >> > >> > >> >> >> > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > This email is confidential to the intended recipient. If you have received it > in error, please notify the sender and delete it from your > system. Any unauthorized use, disclosure or copying is not permitted. The > views or opinions presented are solely those of the sender and do > not necessarily represent those of Public Library of Science unless otherwise > specifically stated. Please note that neither Public Library > of Science nor any of its agents accept any responsibility for any viruses > that may be contained in this e-mail or its attachments and it > is your responsibility to scan the e-mail and attachments (if any). >
