Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

send object from desktop application to web application?  RSS feed

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello - I have to send notification from desktop application(Socket Application) to web UI. How can i do this? First i think, is best available solution. but it only accept/read json objects. An application which i trying to develop is, i have to receive logs objects on socket, then notification will be shown on web UI that which type of log i have received.
Posts: 4179
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are different ways to do this, depending on the relationship between the web app and the desktop app. Is the web app on the local machine or a remote machine? Can you write your own code to run on the web application? If you can write code run on the web app then I would create a page / URL which takes a POST request with the data you require. Your desktop app gets its information and uses an HttpURLConnection (or the Apache HttpClient) to make make a POST connection to the web application and send a POST request to the desired URL.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!