« August 2007 | Main | November 2007 »

September 2007 Archives

September 13, 2007

tomcat jdbc connection pool configuration

Over time, I have tried many combinations to keep jdbc connections from tomcat's connection pool fresh. I frequently got stale connections until after many tweaks, I found the winning combination.

    <Resource name="jdbc/myresource" scope="Shareable"
        type="javax.sql.DataSource"
        url="jdbc:mysql://localhost:3306/db"
        driverClassName="com.mysql.jdbc.Driver"
        username="myuser"
        password="xxxxx"
        maxIdle="3"
        maxActive="10"
        removeAbandoned="true"
        removeAbandonedTimeout="60"
        testOnBorrow="true"
        validationQuery="select count(*) from sometablename"
        logAbandoned="true"
      />

September 14, 2007

[link] Autolinkification in bugzilla

Type "Bug 1234" in bugzilla comment text and when viewing bug details, it is automagically linked to the bug. If the bug is closed, there is a strike through!

It is not limited to just "Bug #". The feature extends to attachments, comments, urls etc. More details in the link to bugzilla documentation.

http://www.bugzilla.org/docs/tip/html/hintsandtips.html

A very handy feature some bugzilla users may not know about!

September 24, 2007

[link] delete old mail in thunderbird

There are some folders on your mail which keep accumulating junk, and the only messages that matter are the latest ones.
You can set "Message Retention Policy" in thunderbird for each folder.

http://kb.mozillazine.org/Message_aging

Steps:
1. Right click on the desired folder - click on "Properties"
2. Click on "Retention Policy" tab
3. Set your desired preferences


Sample screenshot:
tb_retention_policy.png

About September 2007

This page contains all entries posted to Vinay Srini in September 2007. They are listed from oldest to newest.

August 2007 is the previous archive.

November 2007 is the next archive.

Many more can be found on the main index page or by looking through the archives.