Win a copy of hapi.js in Action this week in the HTML, CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trying to make java desktop Client connect to external online website

 
Aron Simbaba
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to build a website that will allow people to register log in and populate fields for book title author registered users will be able to edit there entrees.

I then  want to create a desktop java client that will enable them to sign into the web site where they can print out the book list
and or email that book list to someone else.

I'm not sure where to start as I've searched the following RESTful Web Services Jersey API and plenty of YouTube videos
even searched here and found these links(WHICH WERE NOT HELPFUL)

https://coderanch.com/t/607611/databases/database-programming


I've read opening up remote server from my hosting provider isn't an option as it's not very safe/secure.

Help?
 
Stefan Evans
Bartender
Posts: 1817
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you're looking at the right stuff.

Most probably want you want to do is write it in three parts

#1: Web service that stores and manipulates all the information
#2: Website that acts as a front end for the web service so users can enter data easily
#3: Desktop application that connects to the web service to retrieve book information, and can then process the information as it likes.


 
Aron Simbaba
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stefan Evans wrote:Sounds like you're looking at the right stuff.

Most probably want you want to do is write it in three parts

#1: Web service that stores and manipulates all the information
#2: Website that acts as a front end for the web service so users can enter data easily
#3: Desktop application that connects to the web service to retrieve book information, and can then process the information as it likes.




thank you for your response!  what im having trouble understand how (once created) is the web service deployed in order to interact with my hosted website?  where is the webservice located that people on the internet can interact with it?

creating the website and the desktop app are issues i can solve but the webservice....  i found this link webpage it seems i need to actually host the webservice yet if im hosting it on a server (tomcat) that means i have to point people to it first?   im completely lost
 
Dave Tolls
Ranch Hand
Posts: 2207
20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web service is part of the website.

A lot of websites these days are a Javascript front end that interacts with the server via RESTful services, for example.

Take www.flybe.com as an example.
If you open up the network tab of your browsers developer tools (in Chrome I right click and select "inspect") and then do a flight search you'll see a bunch of calls to '/api/<something>'.
Those are web service calls, all initiated by the Javascript, in order to populate the data you see on the results page.

So your website would do much the same thing, allowing you to write a desktop app that can interact with the site.

You'll find mobile apps that do the same sort of thing, using the exposed web services that were built initially for the associated website.
 
Aron Simbaba
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave Tolls wrote:The web service is part of the website.

A lot of websites these days are a Javascript front end that interacts with the server via RESTful services, for example.

Take www.flybe.com as an example.
If you open up the network tab of your browsers developer tools (in Chrome I right click and select "inspect") and then do a flight search you'll see a bunch of calls to '/api/<something>'.
Those are web service calls, all initiated by the Javascript, in order to populate the data you see on the results page.

So your website would do much the same thing, allowing you to write a desktop app that can interact with the site.

You'll find mobile apps that do the same sort of thing, using the exposed web services that were built initially for the associated website.


i appreciate the explanation.  Can you suggest a book or a online course that might not just explain but demonstrate what I'm trying to do?  the internet is a fantastic place to learn but the downside is there is so much information it's overwhelming especially since there is no where to actually start.  thanks so much
 
Dave Tolls
Ranch Hand
Posts: 2207
20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm afraid not.
I picked up most of my stuff through internal projects and the like.
I expect any book I might have used is likely to be outdated by now.
 
Aron Simbaba
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave Tolls wrote:I'm afraid not.
I picked up most of my stuff through internal projects and the like.
I expect any book I might have used is likely to be outdated by now.


the following link has been extremely helpful in pointing me in the right direction and getting started.  im on the path now thanks
https://www.youtube.com/watch?v=xkKcdK1u95s
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!