<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
How exactly PojoCache.detach(Fqn fqn) works ... ?
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/ajuba">Ajuba Ajuba</a> in <i>JBoss Cache POJO Edition</i> - <a href="http://community.jboss.org/message/543366#543366">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I am using PojoCache version 3.0.x "Nana" with JobssAS 5.0.1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am using JDBC CacheLoader "org.jboss.cache.loader.JDBCCacheLoader" for persisting the Nodes.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Configurations are as follows:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!-- New 1.3.x cache loader config block --><br/>        <attribute name="CacheLoaderConfiguration"><br/>            <config><br/>                <passivation>false</passivation><br/>                <br/>                <cacheloader><br/>                    <class>org.jboss.cache.loader.JDBCCacheLoader</class><br/>                    <!-- whether the cache loader writes are asynchronous --><br/>                    <async>false</async><br/>                    <!-- only one cache loader in the chain may set fetchPersistentState to true.<br/>                     An exception is thrown if more than one cache loader sets this to true. <br/>                     --><br/>                    <fetchPersistentState>true</fetchPersistentState><br/>                    <!-- determines whether this cache loader ignores writes - defaults to false. <br/>                    --><br/>                    <ignoreModifications>false</ignoreModifications><br/>                    <!-- if set to true, purges the contents of this cache loader when the cache <br/>                    starts up. Defaults to false.  --><br/>                    <purgeOnStartup>false</purgeOnStartup><br/>                    <br/>                    <!-- same as the old CacheLoaderConfig attribute --><br/>                    <properties><br/>                        cache.jdbc.driver=com.mysql.jdbc.Driver<br/>                        cache.jdbc.url=jdbc:mysql://ipaddress/pojocachedb<br/>                        cache.jdbc.user=myuser<br/>                        cache.jdbc.password=mypassword<br/>                        <!--  table properties --><br/>                        cache.jdbc.table.name=feedbackpojocache<br/>                        cache.jdbc.table.create=false<br/>                        cache.jdbc.table.drop=false<br/>                        cache.jdbc.table.primarykey=feedbackpojocache_pk<br/>                        cache.jdbc.fqn.column=fqn<br/>                        cache.jdbc.fqn.type=varchar(255)<br/>                        cache.jdbc.node.column=node<br/>                        cache.jdbc.node.type=LONGBLOB<br/>                        cache.jdbc.parent.column=parent<br/>                    </properties><br/>                    <br/>                </cacheloader><br/>            </config><br/>        </attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Now when i am attaching fqn to PojoCache it is working fine, means it is writing it to Database as (FQN, NODE, PARENT) also.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>but when i am detaching the Node it is deleting only NODE value from database ... not deleting the FQN and PARENT vlaues from database;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>what to do..?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>means how to delete FQN, NODE, PARENT from database.. when detaching the given Fqn..?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Pls help.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards,</p><p>Ajuba</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/543366#543366">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache POJO Edition at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2054">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>