Originally posted by suresh pulapally:
Hi All,
in java files we have hardcoded jndi name to access this connection pool, whenever we change jndi name i have to modify in java files and recompile it again,its risky process,is there any other way to achieve this, even if i change jndi name i should not recompile the java files.
You also can get the hostname programmatically using the API
String hostName = InetAddress.getLocalHost().getHostName();
So you can use it to construct
t3://<hostname>:17001 hope this will solve your problem.
Thanks,
Santosh