My Jndi.properties file is following:
To connect with Mysql database, I have a datasource file called db-ds.xml as following:
it can be seen that two ports are different(1099 and 3306). However, my client application still work (client and server). However, If I change the port of the jndi file to 3306 or change the port of the datasource to 1099, my application does not work any more.
If you know the reason, please help
Sorry, one line is missing: