Does anyone have a "best practice" in relation to dealing with getting DB connections? In other words, how have you solved the problem of getting a DB connection when running your code in JBoss (ie, a XADataSource connection) versus getting a DB connection when running standalone (for testing, let's say). The best I've come up with is a ConnectionFactory object that has a getConnection() method that looks for a specific system property to tell if it should use JNDI to get a connection or just instantiate one itself. Am I re-inventing the wheel? Thanks for any comments/suggestions... -- Dewayne -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED]
