News for hackers. Stuff that matters.
Re:The Sun is Setting on Rails-style MVC Frameworks by hello_moto on Friday February 24, 2012 @03:56PM (#3630975)
The approach in the Java world for many years have been to implement Services (or Repository if it doesn't need a complex operations) and wrap them via facade pattern by utilizing:

- JAX-RS (RESTful)

- JAX-WS (WebService)

- MVC (view-based web-app)

And in contrast to what people believe, you don't need to write tons of code and still get full re-usability from the Services/Repositories layer.

On the front-end, you have a choice of:

- GWT for thick-client via RPC (return serialized Java object) or AJAX (return JSON)

- JSP, JSF, any templating available

- Mobile, Desktop, anything

Re:The Sun is Setting on Rails-style MVC Frameworks by rudy750 on Saturday February 25, 2012 @12:17PM (#3633329)
Can you tell me more? I am currently looking for a solution. Looking at jersery. What are you working with?
Re:The Sun is Setting on Rails-style MVC Frameworks by devs1010 on Sunday February 26, 2012 @02:39AM (#3635091)
look at spring roo, its a more modern approach and uses active record rather than the service layers / repositories, it makes generating json api's really simple
Re:The Sun is Setting on Rails-style MVC Frameworks by hello_moto on Sunday February 26, 2012 @05:52PM (#3637071)
A few points:

1) Spring Roo is not necessarily a more modern approach. It's more similar to Rails.

2) JAX-RS is more like Sinatra than Rails. Generating JSON api is already simple in JAX-RS.

3) Not everybody wants ActiveRecord

http://www.braintreepayments.com/devblog/untangle-domain-and...

https://github.com/braintree/curator#readme

4) JAX-RS comes with standard Java EE (moot point)

5) You can re-use your Servlet knowledge with JAX-RS to some extend (Filter, setting up web.xml, etc)

Not to take anything away from Spring Roo which is a wonderful project.

Re:The Sun is Setting on Rails-style MVC Frameworks by hello_moto on Sunday February 26, 2012 @01:52AM (#3635038)
I use jersey (provided by glassfish).