<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
VFS3 and symlinks
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/SkyBeam">Rainer Meier</a> in <i>JBoss Microcontainer Development</i> - <a href="http://community.jboss.org/message/549517#549517">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>It seems my previous analysis was not entirely correct.</p><p><span>I just noticed that I did not install jboss-vfs.jar in version 2.2.0.GA but instead I've installed version 2.2.0.M4 from the official Maven repository (</span><a class="jive-link-external-small" href="http://repository.jboss.org/maven2/org/jboss/jboss-vfs/2.2.0.M4/" target="_blank">http://repository.jboss.org/maven2/org/jboss/jboss-vfs/2.2.0.M4/</a><span>). Then I found out that version 2.2.0.GA can be found at </span><a class="jive-link-external-small" href="http://repository.jboss.org/maven2-brew/org/jboss/jboss-vfs/2.2.0.GA/" target="_blank">http://repository.jboss.org/maven2-brew/org/jboss/jboss-vfs/2.2.0.GA/</a><span> (I hope this is the correct location). Just wondering why it's not in the official maven2 location.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>After installing this version and setting the default vfs.xml configuration and adding the -Djboss.vfs.forceCanonical=true startup parameter it seems to work fine. Even if I use the jboss.server.home.url property in vfs.xml.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here's my vfs.xml property for reference:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-xml">
<span class="jive-xml-tag"><?xml version="1.0" encoding="UTF-8"?></span><span class="jive-xml-comment"><!--   The JBossVFS initializer configuration.--><span class="jive-xml-tag"><deployment xmlns="urn:jboss:bean-deployer:2.0"></span>  <span class="jive-xml-tag"><bean name="VFSCache"></span>    <span class="jive-xml-tag"><constructor factoryClass="org.jboss.virtual.spi.cache.VFSCacheFactory" factoryMethod="getInstance"></span>      <!-- Use the CombinedVFSCache implementation --></span>      <span class="jive-xml-tag"><parameter></span>org.jboss.virtual.plugins.cache.CombinedVFSCache<span class="jive-xml-tag"></parameter></span>    <span class="jive-xml-tag"></constructor></span>    <span class="jive-xml-tag"><start ignored="true"/></span>    <span class="jive-xml-tag"><property name="permanentRoots"></span>      <span class="jive-xml-tag"><map keyClass="java.net.URL" valueClass="org.jboss.virtual.spi.ExceptionHandler"></span>        <span class="jive-xml-tag"><entry></span>          <span class="jive-xml-tag"><key></span>${jboss.lib.url}<span class="jive-xml-tag"></key></span>          <span class="jive-xml-tag"><value></span><span class="jive-xml-tag"><null/></span><span class="jive-xml-tag"></value></span>        <span class="jive-xml-tag"></entry></span>        <span class="jive-xml-tag"><entry></span>          <span class="jive-xml-tag"><key></span>${jboss.common.lib.url}<span class="jive-xml-tag"></key></span>          <span class="jive-xml-tag"><value></span><span class="jive-xml-tag"><inject bean="VfsNamesExceptionHandler"/></span><span class="jive-xml-tag"></value></span>        <span class="jive-xml-tag"></entry></span>        <span class="jive-xml-tag"><entry></span>          <span class="jive-xml-tag"><key></span>${jboss.server.lib.url}<span class="jive-xml-tag"></key></span>          <span class="jive-xml-tag"><value></span><span class="jive-xml-tag"><inject bean="VfsNamesExceptionHandler"/></span><span class="jive-xml-tag"></value></span>        <span class="jive-xml-tag"></entry></span>        <span class="jive-xml-tag"><entry></span>          <span class="jive-xml-tag"><key></span>${jboss.server.home.url}deploy<span class="jive-xml-tag"></key></span>          <span class="jive-xml-tag"><value></span><span class="jive-xml-tag"><inject bean="VfsNamesExceptionHandler"/></span><span class="jive-xml-tag"></value></span>        <span class="jive-xml-tag"></entry></span>        <span class="jive-xml-tag"><entry></span>          <span class="jive-xml-tag"><key></span>${jboss.server.home.url}farm<span class="jive-xml-tag"></key></span>          <span class="jive-xml-tag"><value></span><span class="jive-xml-tag"><inject bean="VfsNamesExceptionHandler"/></span><span class="jive-xml-tag"></value></span>        <span class="jive-xml-tag"></entry></span>      <span class="jive-xml-tag"></map></span>    <span class="jive-xml-tag"></property></span>    <span class="jive-xml-tag"><property name="realCache"></span>      <span class="jive-xml-tag"><bean/></span>    <span class="jive-xml-tag"></property></span>  <span class="jive-xml-tag"></bean></span>  <span class="jive-xml-tag"><bean name="VfsNamesExceptionHandler"></span>    <span class="jive-xml-tag"><constructor></span>      <span class="jive-xml-tag"><parameter></span>sqljdbc.jar<span class="jive-xml-tag"></parameter></span>    <span class="jive-xml-tag"></constructor></span>  <span class="jive-xml-tag"></bean></span><span class="jive-xml-tag"></deployment></span>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Reading this thread it looks to me that some people seem to be concerned about possible performance drop when using/enforcing canonical names. Is this likely to be a real issue or just a small impact?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Personally I think it will not be a big issue at runtime. Maybe a small impact during startup and deployment when canonical paths of the files need to be looked up. But after deployment there should not be much canonical path lookups required.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>What do you think about? Or are there any benchmarks done with or without this option being enabled?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I am running JBoss 5.1.0 on Solaris 10 x86 (if this is relevant).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks again for your help.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/549517#549517">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Microcontainer Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>