April 12, 2010

HOW TO : Configure mime type mappings in Jboss

Instructions for configuring the mime type mappings in Jboss. Mime types essentially tells the application processing the content (typically a browser), what the content is. More information here (http://en.wikipedia.org/wiki/Internet_media_type).

  • Locate the web.xml file for your Jboss instance. It is usually in $JBOSS_HOME/server/INSTANCE/deploy/jboss-web.deployer/conf/web.xml
  • Locate the setting <mime-mapping> and make the required edits. For example, the code for defining the mime type for javascript looks like this



js
application/javascript

  • Restart Jboss

True Leadership..

As I was channel browsing yesterday, I happened to run across an episode of NOW on my local PBS station. It featured a Harvard educated man that decided to run for the mayor of a rundown steel belt town (Braddock, PA). Besides being impressed and humbled by Mr.John Fetterman, I thought he displayed all the characteristics of a true leader (IMHO).

  • Having a Vision
  • Committing to the Vision
  • Thinking out of the box to implement vision
  • Thinking objectively

Highly recommend watching the video, if you have the time 🙂