jboss-3.2.5 does not support context level overrides. jboss-3.2.6 supports a 
WEB-INF/context.xml descriptor that allows one to customize a war context. The custom 
valve would be added by including a myapp-web.war/WEB-INF/context.xml with:


  | <Context>
  |   <Valve className="org.apache.catalina.authenticator.FormAuthenticator"
  |           disableProxyCaching="false" />
  | </Context>
  | 

With this the headers for the jmx-console secured using form auth look like:


  | http://localhost:8080/jmx-console/
  | 
  | GET /jmx-console/ HTTP/1.1
  | Host: localhost:8080
  | User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) 
Gecko/20040910
  | Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  | Accept-Language: en-us,en;q=0.5
  | Accept-Encoding: gzip,deflate
  | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  | Keep-Alive: 300
  | Connection: keep-alive
  | Cookie: JSESSIONID=73BBE64CC7EE140B8BE9564A3674B5C2
  | 
  | HTTP/1.x 200 OK
  | Set-Cookie: JSESSIONID=544A25A77D9EEBB2AD92719D5B63262F; Path=/jmx-console
  | Etag: W/"711-1098230852000"
  | Last-Modified: Wed, 20 Oct 2004 00:07:32 GMT
  | Content-Type: text/html
  | Content-Length: 711
  | Date: Wed, 20 Oct 2004 00:24:10 GMT
  | Server: Apache-Coyote/1.1
  | ----------------------------------------------------------
  | 

Without this or with the disableProxyCaching=true there are Pragma: No-cache and 
Cache-Control: no-cache headers in the replies:


  | http://localhost:8080/jmx-console/
  | 
  | GET /jmx-console/ HTTP/1.1
  | Host: localhost:8080
  | User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) 
Gecko/20040910
  | Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  | Accept-Language: en-us,en;q=0.5
  | Accept-Encoding: gzip,deflate
  | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  | Keep-Alive: 300
  | Connection: keep-alive
  | Cookie: JSESSIONID=544A25A77D9EEBB2AD92719D5B63262F
  | 
  | HTTP/1.x 200 OK
  | Pragma: No-cache
  | Cache-Control: no-cache
  | Expires: Wed, 31 Dec 1969 16:00:00 PST
  | Etag: W/"711-1098230852000"
  | Last-Modified: Wed, 20 Oct 2004 00:07:32 GMT
  | Content-Type: text/html
  | Content-Length: 711
  | Date: Wed, 20 Oct 2004 00:27:13 GMT
  | Server: Apache-Coyote/1.1
  | ----------------------------------------------------------
  | 


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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to