In my application I'm fetching a connection towards a local mysql database.
When I'm running the application in Eclipse debug mode (doesn't matter if I use break points or not) a get a connection towards the database without any trouble.

But when I run it in "normal" Eclipse run mode it hangs on getConnection() (using a DataSource).

Further, when I build the application and run it outside Eclipse it works perfectly..

Anyone have an idea why I get different results when running in different run modes in Eclipse?