This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Procedures that must be implemented on the server side  RSS feed

 
Alex Ardoin
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hallo,
I am implementing an app based on Crowdsourcing where the Android devices of the passanger send data long, lat, route, mac in the background to the server every 60 seconds to store them into database table.

Waiting passanger can use the app to query the server and get the position of their disered route/s dispalyed as marker in Google map.

So at the begining I have never implemented something on the server side but I think it is time to start with it.

The server side is being implemented with Jersey. The sending data component works but I have the feeling I did not implemented to much to get it to work.

My question: are there factors on the server side which must be implement in general? Like error handling, how to deal with asynchronous requests,...

I think in my case there is no need for handling of the asynchronous requests because Jersey process the request in single I/O container thread since the request execution takes a relatively short time.

I appreciate any help.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feat that by starting with a toolkit like Jersey and a rather advanced application, instead of just plain servlets, you may miss learning some important features of servlets and the servlet life cycle. My suggestion would be to do some simple projects, possibly with mockups of your proposed database and user interface.

Bill
 
Alex Ardoin
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that mean that Jersey intergrate the servlets automaically and there is no need to implement them at most?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66188
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've been over this already in another topic. The Jersey implementation provides the servlet that does the URL routing.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!