This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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: 4179
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.
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!