<div>Hi,</div>
<div> </div>
<div>I&#39;m trying to construct a url in the format <a href="http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html#asset=4dae7ddf-4d97-4e6b-ab07-b0f5e9d41d9c">http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html#asset=4dae7ddf-4d97-4e6b-ab07-b0f5e9d41d9c</a></div>

<div>by replacing the #asset=[uuid]</div>
<div> </div>
<div>Thus, I would need to know the uuid of each asset in the repository.</div>
<div> </div>
<div>I have tried to use the following code </div>
<div> </div>
<div>        Repository repository;<br>        JCRRepositoryConfigurator configurator = new JackrabbitRepositoryConfigurator();<br>        repository = configurator.getJCRRepository( &quot;C:\\Programs\\Drools\\5.1\\<a href="http://jboss-4.2.3.GA">jboss-4.2.3.GA</a>\\repository\\&quot; );<br>
        Session jcrsession = repository.login(new SimpleCredentials(&quot;admin&quot;, &quot;admin1&quot;.toCharArray()));<br>        RulesRepository rrepository = new RulesRepository(jcrsession);<br></div>
<div>or </div>
<div> </div>
<div>        RulesRepository rrepository = RepositorySessionUtil.getRepository();</div>
<div> </div>
<div>My drools persistence is set to MySQL.</div>
<div>So, RepositorySessionUtil.getRepository() kind of work but because it is retrieving from a new repository, so it does not serve the purpose.</div>
<div> </div>
<div>When I put the code above into a jsp in exploded drools-guvnor.war in jboss, I have the following error.</div>
<div> </div>
<div>org.drools.repository.RulesRepositoryException: javax.jcr.RepositoryException: The repository home C:\Programs\Drools\5.1\<a href="http://jboss-4.2.3.GA">jboss-4.2.3.GA</a>\bin\repository appears to be in use since the file named .lock is already locked by the current process.<br>
 org.drools.repository.RepositorySessionUtil.getRepository(RepositorySessionUtil.java:90)<br> org.apache.jsp.test_jsp._jspService(test_jsp.java:105)<br> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br>
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)<br> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)<br>
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)<br> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)<br> org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)<br>
 org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)<br> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)<br></div>
<div> </div>
<div>But, I&#39;m not even sure if what I&#39;m trying to do is correct.</div>
<div>What I want to do is to be able to retrieve the uuid of the assets in repository from a web application.<br></div>
<div>Can someone please help in providing a snippet of code or point me in some direction on what should I retrieve in order to query the repository.</div>
<div> </div>
<div>Thanks.</div>
<div> </div>
<div> </div>
<div>Han Ming</div>