开发者

Integrating standard java into web frameworks such as Stripes, Grails JRuby and Rails

For various reasons we have to use a java based web framework to create a proof of concept site. We've a lot of algorithms written in standard java that will have to hoo开发者_运维百科k into the site.

So right now I'm considering stripes, grails and jruby and rails. Bearing in mind I know almost nothing about any of these. My core issue is going to be, how easy is it to integrate our various java objects into the web framework.

I'd usually assume this is a straight forward process... but then again it is java and the web!

Anyone have any experience ?


  • Groovy (Grails) can execute vanilla Java just fine
  • Stripes is written in vanilla Java so no problem there
  • jRuby can execute vanilla Java just fine

So basically, any of these frameworks should be able to handle your "algorithms" just fine assuming they aren't dependent on something out of the ordinary.


For Grails it is pretty easy (I'm not sure about the other frameworks).

Grails encourages you to separate your "web" stuff and your "business objects" stuff - have a look at their "Service Layer" http://grails.org/doc/latest/guide/8.%20The%20Service%20Layer.html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜