The Artima Developer Community
Sponsored Link

Java Buzz Forum
META-INF/context.xml

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
META-INF/context.xml Posted: Mar 22, 2005 4:58 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: META-INF/context.xml
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement


It is always frustrating if you have to munge a server.xml in Tomcat, or the equivilent in other servers. At that point, your nice deployable .war file requires a README that says "oh, and make sure your server.xml is setup like this...".


At least now we have a feature that lets us put context information in the war file. I didn't know that Tomcat supported this until recently:

<?xml version="1.0" encoding="UTF-8"?>
<Context>
  <Resource
    auth="Container"
    description="DB Connection"
    name="jdbc/ebackbay"
    type="javax.sql.DataSource"
    password=""
    driverClassName="com.mysql.jdbc.Driver"
    maxIdle="2"
    maxWait="5000"
    validationQuery="select * from testdata;"
    username="root"
    url="jdbc:mysql://localhost/ebackbay"
    maxActive="4"/>
  <WatchedResource>WEB-INF/web.xml</WatchedResource>
  <WatchedResource>META-INF/context.xml</WatchedResource>
</Context>

Read: META-INF/context.xml

Topic: GCJ on OS X Previous Topic   Next Topic Topic: JythonWiki

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use