0

I am developing a Java swing/desktop application and I want to send data from the desktop app to a Java web app running on tomcat, I have searched for this kind of question here as I expected to see something similar but I couldn't find it. Please a need suggestions on what kind of technology to use.

Jevison7x
  • 531
  • 2
  • 11
  • 26

2 Answers2

2

You will need to make use of an HTTP library such as Apache HTTPClient The api of indiviual libraries vary a little bit, but in general they provide you all the tools you need to set up an HTTP POST, GET, etc with complete control over headers, content, query, etc and most (including HTTPClient) have support for complex authentication methods and support HTTPS connections.

Mike Clark
  • 11,179
  • 6
  • 36
  • 42
0

You can make use of Spring RESTClient. See this : http://www.springbyexample.org/examples/contact-rest-services-client.html

Nagendra Varma
  • 1,846
  • 3
  • 15
  • 24