I am getting error message when calling the Data Source
Config file:
<local-tx-datasource>
<jndi-name>SQLServerDS</jndi-name>
<connection-url>dbc:jtds:sqlserver://192.168.3.202:1433</connection-url>
<driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
<user-name>qwe</user-name>
1278
</local-tx-datasource>
Client code :
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:/SQLServerDS");
And I am getting following error Message.
avax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1465)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
Plz help me with the solution
Where are you seeing this exception? Is it at the client? Have you included a jndi-properties in the client's classpath? If yes, post its contents. Is your client and server on the same system?