Hi,
usually it takes much less time to execute a simple query.
There may be many reasons that may increase the response time:
complex query in the database
the java application or database server are under the high load
not enough resources are allocated for java webapp or for the DB server
BTW, will you have such big time, if you execute this request for the second time? The first request always takes more time than all others. The problem may also be in fact that you made a request before the server is fully initialized.