Hello
My Jndi.properties file is following:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=192.168.101.4:1099
To connect with Mysql database, I have a datasource file called db-ds.xml as following:
<local-tx-datasource>
<jndi-name>MySQLDS</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/mydatabase</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>jbos</user-name>
pass
</local-tx-datasource>
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
Many thanks
S.H
Sorry, one line is missing:
pass