I created my scaled application on Openshift server with following command:

`rhc app create MyApp jbossews-2.0 -s`

Then add Mysql:

`rhc cartridge add mysql-5.5 -a MyApp`

My application using Struts2, Spring & Hibernate. I configured the datasource as follow:
`<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
 <property name="jndiName" value="java:comp/env/jdbc/MysqlDS"/>
 </bean>`

The JNDI "MysqlDS" is defined in .openshift\config\context.xml with the connection url:
`url="jdbc:mysql://5344d4de4382ec43c9000090-myapp.rhcloud.com:37941/mydb"`

The problem is my scale app can not establish the connection to Mysql with an error:
 `org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect
3 times. Giving up.)`

I'm sure the username & password to access the database is correct. It seem MySQL on Openshift server doesn't open its port. When I tried to use an external database on freemysqlhosting.net (with open host & port) the application run well. But I just want to use MySQL db on Openshift. Anyone who have experience on this please give me some suggestion. Thanks