activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonas Lim <j...@exist.com>
Subject Re: configuring mysql persistant adapter
Date Sat, 26 May 2007 08:20:21 GMT
Hi,

I wonder if it's an issue with mysql  driver/server  compatibility.  
Have you tried using other versions of the mysql connector?

Regards,
Jonas

Regards,
Jonas

Vinod_mit wrote:
> Hi friends
> iam trying to connect mysql with acitvemq here is my code
>
>     <persistenceAdapter>
>       
>       <journaledJDBC dataSource="#mysql-ds"/>
>       
>     </persistenceAdapter>
>
> and here is the description, i have copied
> mysql-connector-java-5.0.5-bin.jar in activemq lib directory
> here is my mysql
>
>     <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource"
> destroy-method="close">
>     <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
>     <property name="url"
> value="jdbc:mysql://localhost/activemq?relaxAutoCommit=true"/>
>     <property name="username" value=""/>
>     <property name="password" value=""/>
>     <property name="poolPreparedStatements" value="true"/>
>   </bean>
>
> when i start activemq i get these errors
>
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableCon
> nectionFactory (Communications link failure due to underlying exception:
>
> can any one tell me what is the problem.
> or u can mail me : vinu.mm@gmail.com
>   

Mime
View raw message