[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    Re: [jboss-user] jndi environment
From:       Joćo_Galaio_da_Silva <digitalis.developer () gmail ! com>
Date:       2010-05-28 18:41:03
Message-ID: AANLkTim0Esngn-d7gijeKQXPgKnrfdIHWZAtbghYgFUF () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


No one knows how to add environment properties to the jndi in jboss?

On Thu, May 27, 2010 at 1:22 PM, Joćo Galaio da Silva <
digitalis.developer@gmail.com> wrote:

> Hi everybody,
> 
> does anyone knows how to set jndi context properties so i can acess them by
> lookup java:comp/env/
> without the need to specify this inside a war or ear.
> 
> For example, i have this configuration in tomcat 6:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> Licensed to the Apache Software Foundation (ASF) under one or more
> 
> contributor license agreements.  See the NOTICE file distributed with
> this work for additional information regarding copyright ownership.
> The ASF licenses this file to You under the Apache License, Version 2.0
> 
> (the "License"); you may not use this file except in compliance with
> the License.  You may obtain a copy of the License at
> 
> http://www.apache.org/licenses/LICENSE-2.0
> 
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> 
> See the License for the specific language governing permissions and
> limitations under the License.
> -->
> <Context antiResourceLocking="false" privileged="true">
> 
> <Environment description="" name="cas/serverName" override="false"
> type="java.lang.String" value="http://localhost:8080"/>
> 
> <Environment description="" name="cas/AuthenticationFilter/casServerLoginUrl" \
> override="false" type="java.lang.String" value="https://www.ja-sig.org/cas/login"/>
> 
> <Environment description="" \
> name="cas/Cas20ProxyReceivingTicketValidationFilter/casServerUrlPrefix" \
> override="false" 
> type="java.lang.String" value="https://www.ja-sig.org/cas"/>
> </Context>
> 
> 
> How can this be done in jboss-tomcat?
> 
> 
> Thanks,
> Joćo
> 
> 


[Attachment #5 (text/html)]

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>



_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic