I have written an agent in Java using JDBC using a third party JDBC Driver to SQL Server. My server is 6.5.3 and running on iSeries.
When I run the agent on my client, it takes about one second (1181 ms) to execute the entire agent.
When I schedule the agent to run on the Domino server (or run it in a QueryOpenAgent) the agent takes about 11 seconds. It’s connecting to the same database as that that I connect to with my client.
I have narrowed down the expensive statements to the following:
2.9 seconds: Class.forName(“com.inet.tds.TdsDriver”).newInstance();
7.7 seconds: Connection connection = DriverManager.getConnection(url,login,password);
The driver is packaged with my agent. Is there anything I can do to speed up these statements from the application side? Is this more than likely a network issue?
Thanks,
Michael Dabisch