I've written a Thrift server in Java to take advantage of a specific Java package/library, but I'm not a java programmer.
The problem is; I'm seeing a time-out for the first RPC call to the server. Subsequest requests are executed without any issues, and its only affecting clients written in certain (but essential) languages.
My current thought is that the server times-out on the response because upon first call it has to load all the libraries required for the request. Some Thrift client implementations must be handling the time-out better than others, possibly keeping the request open a little longer.
Is there a way in java to preload the libraries I'm using when I first initiate the .jar file so there isn't a delay on the first request?
Solution: I got around the problem (and some further ones raised) by increasing the timeout from the thrift client(s). However, I've implemented the static/Class.forName answer also to help things along, which works great. Thanks!