Re: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
Posted by: Kiran Dabbara
Date: November 14, 2013 10:13PM

Hi Todd,

Thanks for the quick response.

I am not quite sure as the same host is working fine in normal web application but not with spring application. I am pretty sure jdbc drivers are proper in spring application.

here is my configuration:

<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://localhost:3306/chit_fund" />
<property name="username" value="root" />
<property name="password" value="" />

The same host jdbc:mysql://localhost:3306/chit_fund working fine in web-application with root user and no passworkd


Edited 1 time(s). Last edit at 11/14/2013 10:16PM by Kiran Dabbara.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.