I have a web application in which I create a Transport Client using Spring
(singleton) and inject it into my service. When I receive a request in my
controller, controller calls the service and service uses the transport
client to execute the query and return the results. When I deploy this
application in tomcat, I have the client created but when I execute the
query, client hangs.
If I create the client for every request (in my service) and run the query,
everything is fine. Can some one help me understand this behavior?
I have a web application in which I create a Transport Client using Spring
(singleton) and inject it into my service. When I receive a request in my
controller, controller calls the service and service uses the transport
client to execute the query and return the results. When I deploy this
application in tomcat, I have the client created but when I execute the
query, client hangs.
If I create the client for every request (in my service) and run the
query, everything is fine. Can some one help me understand this behavior?
Does it show anything in the log? Perhaps try catch block on your code and set a query timeout.
HTH
/Jason
On Wed, Jan 8, 2014 at 4:41 AM, Search User feedworks@gmail.com wrote:
I have a web application in which I create a Transport Client using Spring (singleton) and inject it into my service. When I receive a request in my controller, controller calls the service and service uses the transport client to execute the query and return the results. When I deploy this application in tomcat, I have the client created but when I execute the query, client hangs.
If I create the client for every request (in my service) and run the query, everything is fine. Can some one help me understand this behavior?
If you turn off your sniff settings to false it will work.
On Wednesday, January 8, 2014 2:11:10 AM UTC+5:30, Search User wrote:
I have a web application in which I create a Transport Client using Spring
(singleton) and inject it into my service. When I receive a request in my
controller, controller calls the service and service uses the transport
client to execute the query and return the results. When I deploy this
application in tomcat, I have the client created but when I execute the
query, client hangs.
If I create the client for every request (in my service) and run the
query, everything is fine. Can some one help me understand this behavior?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.