Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

To check if a Service is running in Java

 
Maya sekar
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I am trying to check if a service is up and running through Java code. Problem is I can connect to the Service if I hit the URL directly from the browser but when I try to connect through my code, the connection gets timed out. So my code throws a "Service not active" message even though the service is in reality up and running.... Why does the connection get timed out when I try to connect through my code....

Any help is much appreciated... thank you
 
Prashant Saraf
Ranch Hand
Posts: 57
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you clarify how you are hitting service with Java Code? if you are able to hit the service with browser then it should be access by Java Code.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show the wsdl URL and show the code you are trying to use to access it in Java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic