No one knows how to add environment properties to the jndi in jboss?<br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style><br>
<div class="gmail_quote">On Thu, May 27, 2010 at 1:22 PM, Joćo Galaio da Silva <span dir="ltr">&lt;<a href="mailto:digitalis.developer@gmail.com">digitalis.developer@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everybody,<br><br>does anyone knows how to set jndi context properties so i can acess them by lookup java:comp/env/<br>without the need to specify this inside a war or ear.<br><br>For example, i have this configuration in tomcat 6:<br>

<br><div style="border-width: 1px;"><div>
<pre><span>&lt;?xml version=<span>&quot;1.0&quot;</span> encoding=<span>&quot;UTF-8&quot;</span>?&gt;</span><br>&lt;!--<br>  Licensed to the Apache Software Foundation (ASF) under one or more<br>
  contributor license agreements.  See the NOTICE file distributed with<br>  this work for additional information regarding copyright ownership.<br>  The ASF licenses this file to You under the Apache License, Version 2.0<br>

  (the <span>&quot;License&quot;</span>); you may not use this file except in compliance with<br>  the License.  You may obtain a copy of the License at<br><br>      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a><br>

<br>  Unless required by applicable law or agreed to in writing, software<br>  distributed under the License is distributed on an <span>&quot;AS IS&quot;</span> BASIS,<br>  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br>

  See the License for the specific language governing permissions and<br>  limitations under the License.<br>--&gt;<br><span>&lt;Context antiResourceLocking=<span>&quot;false&quot;</span> privileged=<span>&quot;true&quot;</span>&gt;</span><br>

<br>&lt;Environment description=<span>&quot;&quot; name=&quot;</span>cas/serverName<span>&quot; override=&quot;</span>false&quot;<br>type=<span>&quot;java.lang.String&quot;</span> value=<span>&quot;<a href="http://localhost:8080" target="_blank">http://localhost:8080</a>&quot;</span>/&gt;<br>

<br>&lt;Environment description=<span>&quot;&quot; name=&quot;</span>cas/AuthenticationFilter/casServerLoginUrl<span>&quot; override=&quot;</span>false&quot;<br>type=<span>&quot;java.lang.String&quot;</span> value=<span>&quot;<a href="https://www.ja-sig.org/cas/login" target="_blank">https://www.ja-sig.org/cas/login</a>&quot;</span>/&gt;<br>

<br>&lt;Environment description=<span>&quot;&quot; name=&quot;</span>cas/Cas20ProxyReceivingTicketValidationFilter/casServerUrlPrefix<span>&quot; override=&quot;</span>false&quot;<br>
type=<span>&quot;java.lang.String&quot;</span> value=<span>&quot;<a href="https://www.ja-sig.org/cas" target="_blank">https://www.ja-sig.org/cas</a>&quot;</span>/&gt;<br><span>&lt;/Context&gt;</span></pre>

</div></div><br>How can this be done in jboss-tomcat?<br><br><br>Thanks,<br><font color="#888888">Joćo<br><br>
</font></blockquote></div><br>