• 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

send object from desktop application to web application?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic