<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I see.  Fixing the old impl (let's call this JDBCCacheLoader and the new one IndexingJDBCCacheLoader to prevent confusion) to persist the root will break running systems though, I fear.  <DIV><BR class="khtml-block-placeholder"></DIV><DIV>I do think this should be fixed in the JDBCCacheLoader though; perhaps a param like "persist.root = true" but by default it should NOT persist the root so it doesn't break existing systems.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Or will it even break existing systems?  Am I being unnecessarily careful here?</DIV><DIV><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Manik Surtani</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Lead, JBoss Cache</DIV><DIV>JBoss, a division of Red Hat</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Email: <A href="mailto:manik@jboss.org">manik@jboss.org</A></DIV><DIV>Telephone: +44 7786 702 706</DIV><DIV>MSN: <A href="mailto:manik@surtani.org">manik@surtani.org</A></DIV><DIV>Yahoo/AIM/Skype: maniksurtani</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR><DIV><DIV>On 1 Feb 2007, at 13:01, Mircea Markus wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<BR>New impl is 100% backward compatible - but I have to insert the root as it is missing from old impl.<BR><BR>Cheers,<BR>Mircea<BR><BR><DIV><SPAN class="gmail_quote">On 2/1/07, <B class="gmail_sendername">Manik Surtani </B> &lt;<A href="mailto:manik@jboss.org">manik@jboss.org</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><DIV style=""> <DIV><SPAN style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"> <SPAN style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"> <DIV>So without the root element you're not going to be able to persist any data stored directly in the root node (if anyone ever does this!)</DIV><DIV><BR></DIV><DIV>Is the new impl in any way compatible with the existing JDBCCacheLoader anyway?  I thought their storage formats were different. </DIV><DIV><BR></DIV><DIV><BR></DIV><DIV>--</DIV><DIV>Manik Surtani</DIV><DIV><BR></DIV><DIV>Lead, JBoss Cache</DIV><DIV>JBoss, a division of Red Hat</DIV><DIV><BR></DIV><DIV>Email: <A href="mailto:manik@jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> manik@jboss.org</A></DIV><DIV>Telephone: +44 7786 702 706</DIV><DIV>MSN: <A href="mailto:manik@surtani.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">manik@surtani.org</A></DIV><DIV>Yahoo/AIM/Skype: maniksurtani </DIV><DIV><BR></DIV><BR></SPAN></SPAN> </DIV><BR><DIV><DIV>On 1 Feb 2007, at 03:49, Mircea Markus wrote:</DIV><BR><BLOCKQUOTE type="cite">In order to make new implementation 'backward' compatible (i.e. to work on existing data managed by JDBCacheLoader) I need root to be persisted - implementation heavily relies on that. <BR>My thought is to check at startup whether it exists, and create it. Any cons/alternatives? <BR><BR>Cheers,<BR>Mircea<BR><BR><DIV><SPAN class="gmail_quote">On 2/1/07, <B class="gmail_sendername">Mircea Markus</B> &lt;<A href="mailto:mircea.markus@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> mircea.markus@gmail.com</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<BR><BR>loader.put(any_fqn);<BR>assertTrue( loader.exists(Fqn.ROOT)); //fails<BR><BR>The problem is that root element is not persisted.<BR><BR>Cheers,<BR><SPAN>Mircea<BR><BR> </SPAN></BLOCKQUOTE></DIV><BR><DIV style="margin: 0px;">_______________________________________________ </DIV><DIV style="margin: 0px;">jbosscache-dev mailing list</DIV><DIV style="margin: 0px;"><A href="mailto:jbosscache-dev@lists.jboss.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jbosscache-dev@lists.jboss.org </A></DIV><DIV style="margin: 0px;"><A href="https://lists.jboss.org/mailman/listinfo/jbosscache-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/jbosscache-dev </A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>