• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Application exit event while executing jar

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created an udp client in java and .NET server application. The problem is i get exception in the server that the "An existing connection is forcibly closed by remote host". This causes again the port un listened and no further packets arrive. when i googled it was mentioned that if the client is not closed properly then this issue might arise.
link : http://bobobobo.wordpress.com/2009/05/17/udp-an-existing-connection-was-forcibly-closed-by-the-remote-host/

i have used maven project with just classes with threads for processing and receiving.I have created a batch file to run the jar (java -cp) inside it. Can anyone suggest how to handle the exit event. Do we have something like Application.Exit event in .NET

 
reply
    Bookmark Topic Watch Topic
  • New Topic