Similar to something I have done in Tomcat 5.5.4, I want to define a jndi 
environment entry.  In a web.xml, it would look something like this:

<web-app>
  <env-entry>
    <env-entry-name>MaxValue<env-entry-name>
    <env-entry-type>java.lang.Float</env-entry-type>
    <env-entry-value>45.4</env-entry-value>
  </env-entry>
</web-app>

And I would access it via java code like this:

InitialContext ctx = new InitialContext();
Float oValue = (Float)ctx.lookup("java:comp/env/MaxValue");
float value = oValue.floatValue();

Tomcat 5.5.4 lets me define this jndi entry by modifying the server.xml and 
context.xml files to define a global named resource.  It defines and maintaines 
this jndi entry at the server context.  I don't have to modify the web.xml of 
my web application or add any different/new files at deployment time.

Is there a similar way to configure this in JBoss 3.2.5?  I see a lot of 
examples for jdbc or data sources, but I cannot seem to find anything about 
entries.

thanks,
-Mark

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858919#3858919

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858919


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to