Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 18540 invoked from network); 30 Apr 2010 14:03:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 14:03:57 -0000 Received: (qmail 14605 invoked by uid 500); 30 Apr 2010 14:03:56 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 14585 invoked by uid 500); 30 Apr 2010 14:03:56 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 14576 invoked by uid 99); 30 Apr 2010 14:03:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 14:03:56 +0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.172.26.33] (HELO MX1.aeb.de) (194.172.26.33) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 14:03:49 +0000 X-IronPort-AV: E=Sophos;i="4.52,302,1270418400"; d="scan'208";a="5317470" Received: from unknown (HELO S-HQMX6.pmbelz.de) ([10.237.5.6]) by MX1I.pmbelz.de with ESMTP; 30 Apr 2010 16:03:29 +0200 Received: from S-HQMX6.pmbelz.de ([fe80::c11d:7ab7:ed94:fb34]) by S-HQMX6.pmbelz.de ([fe80::c11d:7ab7:ed94:fb34%14]) with mapi; Fri, 30 Apr 2010 16:03:29 +0200 From: "Cech. Ulrich" To: "'users@jackrabbit.apache.org'" Date: Fri, 30 Apr 2010 16:03:28 +0200 Subject: AW: AW: OCM : Not able to get the list of nodes added in current session Thread-Topic: AW: OCM : Not able to get the list of nodes added in current session Thread-Index: Acroan3F5EgyWupZSZyLQ65NNdsd/QAAdzHA Message-ID: References: <1272631544713-2076858.post@n4.nabble.com> <1272634711658-2076930.post@n4.nabble.com> In-Reply-To: <1272634711658-2076930.post@n4.nabble.com> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org And "manager.save();" has a call to the JCR-session save? Are you only having one sesison object or are there perhaps multiple sessio= ns and the call "session.save()" goes to a different session which does not= have your added node in his transient cache? Are there perhaps multiple "O= bjectContentManager" objects, so that they refer to different sessions? Because you can see the inserted nodes after restart, I think, you close th= e connection to the repository correctly, which means that all sessions are= saved/flushed, and then you see your added nodes after restart. So I think= that the JCR-session is not correctly "saved". -----Urspr=FCngliche Nachricht----- Von: pradeepkudale [mailto:pradeepkudale@gmail.com]=20 Gesendet: Freitag, 30. April 2010 15:39 An: users@jackrabbit.apache.org Betreff: Re: AW: OCM : Not able to get the list of nodes added in current s= ession Thanks for your reply, I am having below functions in GenericJcrDaoImpl. =20 @SuppressWarnings("unchecked") public T execute(JcrMappingCallback callback) throws DataAccessException { return (T) jcrMappingTemplate.execute(callback); } =20 public T save(final T node) { =09 execute(new JcrMappingCallback() { public Object doInJcrMapping(ObjectContentManager manager) throws JcrMappingException { manager.insert(node); manager.save(); =09 return null; } }); =09 return node; } and i am extending GenericJcrDaoImpl in my JcrFileNodeDaoImpl public class JcrFileNodeDaoImpl extends GenericJcrDaoImpl implements JcrFileNodeDao { } so it automatically calls the save method in GenericJcrDaoImpl. ----- Regards Pradeep Kudale --=20 View this message in context: http://jackrabbit.510166.n4.nabble.com/OCM-No= t-able-to-get-the-list-of-nodes-added-in-current-session-tp2076858p2076930.= html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.