Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5D92D74F1 for ; Fri, 23 Dec 2011 15:46:05 +0000 (UTC) Received: (qmail 20513 invoked by uid 500); 23 Dec 2011 15:46:02 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 19659 invoked by uid 500); 23 Dec 2011 15:46:02 -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 19549 invoked by uid 99); 23 Dec 2011 15:46:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2011 15:46:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.67.226.212] (HELO smtp-out12.han.skanova.net) (195.67.226.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2011 15:45:54 +0000 Received: from Tjejdatorn.local (213.115.150.114) by smtp-out12.han.skanova.net (8.5.133) (authenticated as u86709862) id 4ECF62B40084DD92 for users@jackrabbit.apache.org; Fri, 23 Dec 2011 16:45:29 +0100 Message-ID: <4EF4A219.30006@milso.se> Date: Fri, 23 Dec 2011 16:45:29 +0100 From: Pontus Amberg User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Querying recently created data returns empty result Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi! I have some code in EJB:s where data is imported from a legacy system into a JCA instance of Jackrabbit. There's multiple methods in the EJB that perform small parts of the import and most methods are using a transaction of their own. Since this is EJB 3 stuff the transactions are controlled with annotations on the methods. Most of the stuff seems to work fine but some methods try to query data imported by other methods using for example: select * from [nt:unstructured] as n where n.type='abc' and n.id='123456' and they return an empty result even if the methods importing the data seems to have succeeded. Is this normal behavior since the Lucene index needs some time to be updated or might there be somthing wrong with our code (transaction or session handling)? /Pontus