Backend implementation for backbone js in Java

I use Backbone JS for the frontend, which in turn uses the Rest protocol to make calls to the backend on the server. So what would be the correct way to implement backend code in Java ?

Do I need a web service implementation on my server, or can I handle servlets? If I can manage the servlets, any pointers to this will be really useful to me.

+4
source share
2 answers

There are 3 big frameworks that I know about - they are all implementations of JAX-RS

  • Resteasy
  • Jersey
  • Jackson

Of course, you can do it manually (servlets), but:

  • you will make many mistakes.
  • it will be hard
  • the code will be incredibly hard to work
+5
source

Yes, you must implement the REST api. It will be convenient for your application. Backbone.sync makes a call to REST services.

Take a look: http://documentcloud.imtqy.com/backbone/#Sync

+1
source

All Articles