Hi,
I can only support what Hendrik says - I'm accessing the Jackrabbit
repository (deployment model 2) parallel from both a JSF application and
an EJB3 (using the context lookup in order to get the repository handle
in both scenarios) ...
... my environment is (however): JBoss 4.0.5GA, Jackrabbit 1.3.1, Java
1.5_06.
kind regards,
Markus
Hendrik Beck (camunda) schrieb:
Sorry, must have been a bit trigger-happy... ;-)
Again: ----->
Hi Daniel (and also Markus, nice to see you, too ;-) )!
I haven't experienced your problem although I am using it in a similar
manner. But could it be related to this one here:
http://issues.apache.org/jira/browse/JCR-912
It sounds a little bit like to me, although I am not really into the actual
codebase and stuff...
Cheers
Hendrik
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Br?uen
Sent: Friday, August 24, 2007 4:42 PM
To: [email protected]
Subject: Re: Repository Lock Problem in JEE-Environment
Hi Hendrik!
Hendrik Beck (camunda) schrieb:
What deployment model do you use? Or do you start and shutdown the
repository by your own application, e.g. in your beans?
I am using the shared deployment model and I have registered the jcr as
a custom JNDI-Resource in glassfish (exactly the way it is described in
the wiki). In my beans I simply do something like
InitialContext ctx = new InitialContext();
rep = (Repository) ctx.lookup("jcr/repository");
or use the @Resource annotation.
Both ways I regularly get messages like
"javax.jcr.RepositoryException: The repository home
/opt/jackrabbit/repository appears to be already locked by the current
process."
This message appears whenever I allow the system to idle for a while, or
on redeploy of my bean.
Cheers,
Dan
--
Mag. Markus Reis
Austrian Research Centers GmbH - ARC
Research Studios
Studio Digital Memory Engineering
Thurngasse 8/3/20, A-1090 Wien
Mobile: +43 664 825 1106
Tel.: +43-1-585 05 37 - 16
Fax: +43-1-585 37 41
<[EMAIL PROTECTED]>
http://www.arcs.ac.at/
http://www.researchstudio.at/
http://dme.researchstudio.at/
HG Wien – FN 115980i – ATU14703506