Milton Moura's blog

simple things

este blogue renasceu aqui. façam o favor de tomar nota.

this blog has moved here. please take note.

-mgcm

Shared JDBC Connection Pool Problem with Glassfish & Netbeans

If you are running into the problem described here, in which the following happens:

When creating & deploying two or more EJB applications to Glassfish with NetBeans, it will use the same JDBC Pool name in your “sun-resources.xml” file under the “Server Resources” project folder.

What follows is that if the EJB components use different databases, all but the latest to be deployed will fail when accessing the database because the connection pool settings have been changed to the one used by the deployed project.

So make sure you have different JDBC Connection Pools for applications that use different databases.

An easy fix for this is changing your “sun-resources.xml” file the following way:

<jdbc-resource
    enabled=”true”
    jndi-name=”MYJNDINAME”
    object-type=”user”
    pool-name=”MY_POOL_NAME”/>
<jdbc-connection-poolname=”MYPOOLNAME” … >

This way, Glassfish will automatically create a unique JDBC pool for your application upon deployment of your project.

w0rk

The only true boss of your work is you. Any external boss is just a customer of your personal services business. Maybe you'll do a great deal of business with a single customer, but you're always free to fire a customer you don't like. Saying "I quit" to your boss is essentially the same as saying to a customer, "I'm sorry, but apparently our business is unable to serve you. Perhaps I can recommend a competitor who may be better equipped to meet your needs."

This resonates with me in such a way that I must post it here. Lately, I've seen some colleagues assume the "i don't get paid enough for this" position and they just don't do the best (tm) work they could because of this.

I know I'm young and motivated but I feel that if I ever get to a point where my job does not motivate me, I will do something about it and change it.

Easier said than done :)

arcadia

Ouch. Almost two months without posting. That's a record breaking shameful feat.

Well, you must understand that i've been through some extreme changes in my life.

I've left my parents home and now live with my girl on a cool & hip apartment. I've also changed jobs and now I'm working at a local triple-play telco company developing internal business-wide IT solutions. Last, but not the least, our hobby web2.0 site has been consuming most of my free time during weekends...

As 2007 approaches it's end, i've got to say that it sure has been an excellent year. I thought that the year I spent attending my post-grad studies @ Lisbon was the best I had in my life but i've got to hand it that this last year tops it, for goods.

I've consolidated friendships, mastered new skills, learned a lot about people and technology, all in all, grown so much that I can only hope that I can keep going at this rate every year from now on.

What better word to describe my feelings than the Merriam Webster Word of The Year 2007... w00t!

PS: happy birthday andré!

bleeding the orchid

it's fucking amazing how music can tame the beast.

I vow to never ever again spend a single day without listening to good music.

I swear by my own heart. (the one which actually matters the most...)

Syndicate content