• 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 ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

send object from desktop application to web application?  RSS feed

 
Greenhorn
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, socket.io 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.
 
Bartender
Posts: 4181
22
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!