Re: AW: Getting rid of Open-Scoped Locks without LockToken - Timeout?

2010-08-30 Thread JOSE FELIX HERNANDEZ BARRIO
But the timeoutHint doesn't work! ! El 30/08/2010 8:24, KÖLL Claus c.ko...@tirol.gv.at escribió: Hi, see LockManager.lock(NodeImpl node, boolean isDeep, boolean isSessionScoped, long timoutHint, String ownerInfo) where you can give a timoutHint. greets claus -Ursprüngliche Nachricht-

Re: query node by node identifier

2010-08-30 Thread JOSE FELIX HERNANDEZ BARRIO
, JOSE FELIX HERNANDEZ BARRIO wrote: hi, i'm trying to extract a node from the repository given de node identifier (the one returned by node.getIdentifier) i've tried: //*...@jcr:identifier='abbe81d4-5d5b-457e-901f-7ffdb0cef7fa'] with no results any tip? -- Jose Hernandez

block user and password change policy

2010-08-04 Thread JOSE FELIX HERNANDEZ BARRIO
hi, i'm trying to implement these charecteristics: - block a user after 5 wrong passwords - force the user to change the password after a number of days i've a full java application in front of the repository, so i don't need to implement every thing inside the securityManager. i've thought in

what is the meaning of default values ?

2010-07-16 Thread JOSE FELIX HERNANDEZ BARRIO
hi, what is the meaning of default values ? i have the following definition in a cnd file - kpn:adjuntoContrato (boolean) = 'false' but if i don't create the property it doesn't exist in the node thx -- Jose Hernandez 675599600 Isthari http://www.isthari.com

Re: Problem locking a node

2010-07-06 Thread JOSE FELIX HERNANDEZ BARRIO
Hi, later i reopen a session get the same node a call node.isLocked (); and this return false if i call node.getProperty(jcr:lockOwner); returns void 2010/7/6 Jukka Zitting jukka.zitt...@gmail.com Hi, On Tue, Jul 6, 2010 at 12:50 AM, JOSE FELIX HERNANDEZ BARRIO jose.hernan

Re: Problem locking a node

2010-07-06 Thread JOSE FELIX HERNANDEZ BARRIO
()); Thread.sleep(1000); } the output: 91310ee2-3177-4616-9fee-5b0d80d76e30-T true1 false-1 false-1 false-1 false-1 false-1 the node is locked only for a second !! 2010/7/6 JOSE FELIX HERNANDEZ BARRIO jose.hernan...@isthari.com Hi, later i reopen

Re: Problem locking a node

2010-07-06 Thread JOSE FELIX HERNANDEZ BARRIO
More info, if i set the timeout to 0, the node is locked nicely, *is there an issue on the timeout mechanism ???* 2010/7/6 JOSE FELIX HERNANDEZ BARRIO jose.hernan...@isthari.com still debuging this issue, if i execute the code : lock = manager.lock(node.getPath(), true, false

Problem locking a node

2010-07-05 Thread JOSE FELIX HERNANDEZ BARRIO
Hi, i'm trying to lock a node for 30 minutes lockManager.lock(node.getPath(), false, false, 1800, username); session.save(); session.logout(); there's no exception but the node doesn't get locked. any tip ? -- Jose Hernandez 675599600 Isthari http://www.isthari.com

query performance

2010-06-23 Thread JOSE FELIX HERNANDEZ BARRIO
hi, in a repository with 1 million records if i execute the query : select * from test:Contracts where test:Id like 'B1%' it returns 1000 results in about 0.3s but if i execute the query select * from test:Contracts where test:Id like 'B1%' order by test:Id it returns the same 1000

Re: query performance

2010-06-23 Thread JOSE FELIX HERNANDEZ BARRIO
hi, in a repository with 1 million records if i execute the query : select * from test:Contracts where test:Id like 'B1%' it returns 1000 results in about 0.3s but if i execute the query select * from test:Contracts where test:Id like 'B1%' order by test:Id it

Re: query performance

2010-06-23 Thread JOSE FELIX HERNANDEZ BARRIO
how long does the second time take, for example when you search on 'B2%' order by test:Id. you're ok the second time it's really fast (0.06s) The first time, Lucene has to read all terms for test:Id into memory, which can take some time (also depending on your FS and whether

deny permissions on a subtree

2010-06-21 Thread JOSE FELIX HERNANDEZ BARRIO
hi, i have a folder called contracts i want to deny read permission for everyone except an specific group, how can i do that? i've managed to add writer permissions to a group but not to deny read permission for everyone else. thx -- Jose Hernandez 675599600 Isthari http://www.isthari.com

mix:lastModified strange behavior

2010-06-21 Thread JOSE FELIX HERNANDEZ BARRIO
hi, i've created a node type from nt:folder that has the mixing mix:lastModified. when i create a node the lastModified and created properties are instantiated correctly but when i modify the node properties the lastModified property doesn't change any tip ? -- Jose Hernandez 675599600

synchronous event listener

2010-06-09 Thread JOSE FELIX HERNANDEZ BARRIO
is there any way to rollback a transaction from a syncrhonous event listener? for example, the user insert a node the event listener is called and an exception raise inside so we want to rollback the transaction. -- Jose Hernandez 675599600 Isthari http://www.isthari.com

Re: bug in javadoc

2010-05-04 Thread JOSE FELIX HERNANDEZ BARRIO
://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/api/management/DataStoreGarbageCollector.html Regards, Thomas On Mon, May 3, 2010 at 11:25 AM, JOSE FELIX HERNANDEZ BARRIO jose.hernan...@isthari.com wrote: api 2.1.0 In the interface DataStoreGarbageCollectorthe following example

Problem con textExtractor

2010-04-28 Thread JOSE FELIX HERNANDEZ BARRIO
Hi, I'm inserting pdf in the repository and get the exception: 2010-04-28 10:25:28,174 INFO [SearchIndex.java] [doInit] Index initialized: C:\Archivos de programa\Apache Tomcat Foundation\apache-tomcat-6.0.13\jackrabbit/repository/index Version: 3 2010-04-28 10:25:33,250 INFO [Recovery.java]

Re: Problem con textExtractor

2010-04-28 Thread JOSE FELIX HERNANDEZ BARRIO
=*org.apache.jackrabbit.extractor.PlainTextExtractor*/ param name=extractorPoolSize value=2/ param name=supportHighlighting value=true/ /SearchIndex 2010/4/28 Jukka Zitting jukka.zitt...@gmail.com Hi, On Wed, Apr 28, 2010 at 10:50 AM, JOSE FELIX HERNANDEZ BARRIO

Re: Problem con textExtractor

2010-04-28 Thread JOSE FELIX HERNANDEZ BARRIO
is there any limitation on the size of the pdf the extractor can manage ? we're working with files around 16mb in size. 2010/4/28 JOSE FELIX HERNANDEZ BARRIO jose.hernan...@isthari.com I don't want to index the content of the pdf for full text search, can i disable it using

Re: Creating a custom AccessManager

2010-04-23 Thread JOSE FELIX HERNANDEZ BARRIO
Hi, 2010/4/24 Rob Brown rlb.so...@gmail.com I'm trying to enhance SimpleJBossAccessManager to use information from our user database. I'm hoping that someone can answer a few questions for me: 1) How should I test for permissions now that READ, WRITE REMOVE are deprecated? i.e. if

Re: Datastore in windows with microsoft sql server hangs !!

2010-04-19 Thread JOSE FELIX HERNANDEZ BARRIO
correction about previous mail, in 2.0.0 the server hangs forever . . . in 2.1.0 every thing works fine. 2010/4/19 Thomas Müller thomas.muel...@day.com Hi, Could you create a full thread dump and post it? Also, please provide the jackrabbit version number (the easiest is probably the

Exception set binary property

2010-04-11 Thread JOSE FELIX HERNANDEZ BARRIO
When setting a binary property with this code: pdf = factura.addNode(invoice.getNombre()+.pdf, nt:file); bin = pdf.addNode(jcr:content, nt:resource); bin.setProperty(jcr:mimeType, application/pdf); bin.setProperty(jcr:data,new

LRUNodeIdCache maximum configuration ??

2010-03-26 Thread JOSE FELIX HERNANDEZ BARRIO
hi, I'm inserting data in batch process (near 200.000 items). At start time the process it's very quick, but after a few minutes the process performance go down. I've noticed that this happens when LRUNodeIdCache is full. Reviewing the source code for this class (LRUNodeIdCache) I've seen that

Re: Jackrabbut authentication, from another angle

2010-03-19 Thread JOSE FELIX HERNANDEZ BARRIO
i would suggest create a class, that extends JcrSessionFactory, and authenticates agains spring-security (obtaining the user from the securitycontext). i think this class would be a very interesting improvement to spring-jcr. 2010/3/19 Nils Weinander nils.weinan...@mogul.com Trying to wrap my

Dates in search

2010-03-17 Thread JOSE FELIX HERNANDEZ BARRIO
Hi, I'm trying to search between two dates: select * from temp where( date='2010-02-01' and date='2010-02-11') but the result is wrong i've also tryed the examples: select * from test where a=cast('+2001-01-01T01:02:03.000Z' as date) i obtained a invalid query exception any tip ?? -- Jose

Re: Dates in search

2010-03-17 Thread JOSE FELIX HERNANDEZ BARRIO
thank you Alexander it works. but ... is there any data type which only includes date and not includes time ? 2010/3/17 Alexander Klimetschek aklim...@day.com On Wed, Mar 17, 2010 at 13:34, JOSE FELIX HERNANDEZ BARRIO jose.hernan...@isthari.com wrote: I'm trying to search between two

Re: Dates in search

2010-03-17 Thread JOSE FELIX HERNANDEZ BARRIO
i've tryed: select * from temp where( date_ =cast ('2010-02-01' as date)) and it results on InvalidQueryException 2010/3/17 Thomas Müller thomas.muel...@day.com Hi, but ... is there any data type which only includes date and not includes time ? Yes: DATE. cast(... as date) Regards,

Re: NodeType creation

2010-03-17 Thread JOSE FELIX HERNANDEZ BARRIO
This solution works in jackrabbit 2.0.0 and it's not deprecated CndImporter.registerNodeTypes(cndfile, session); 2010/3/17 Stefan Guggisberg stefan.guggisb...@gmail.com On Wed, Mar 17, 2010 at 4:11 PM, Rodrigo Meza rodrigo.meza.fo...@gmail.com wrote: On Mon, Mar 8, 2010 at 7:06 AM,

Read node auditing

2010-03-04 Thread JOSE FELIX HERNANDEZ BARRIO
Hi, I need to execute a piece of code each time a user read a node/property to keep a log of every access. I've seen Observation but it appears to be useful only for add/edit/remove operation. any tip? thanx -- Jose Hernandez 675599600 Isthari http://www.isthari.com

problem with jackrabbit webapp 2.0.0 version

2010-03-02 Thread JOSE FELIX HERNANDEZ BARRIO
I'm getting the same error always. the same if a create a new repository from the web page or configure an existing one. can anybody help me ? the full stacktrace (for a configured one) 02.03.2010 21:14:57 *INFO * root: Logging initialized. (LoggingServlet.java, line 87) 02.03.2010 21:14:57