开发者

Using Grails without an user interface

开发者 https://www.devze.com 2023-01-04 01:27 出处:网络
I\'m thinking about possible alternatives for our EJB based service layer and wondered if it would make sense to use just the service and database layer of Grails together with the Remoting Plugin or

I'm thinking about possible alternatives for our EJB based service layer and wondered if it would make sense to use just the service and database layer of Grails together with the Remoting Plugin or is this using a sledgehammer to crack a nut?

Speaking of the Remoting Plugin: is there a standard way of gener开发者_如何学Cating a JAR file, that contains the necessary classes to make a remote call to a Grails service from a non-Spring Java application?


Interesting idea. I don't think it'd be overkill at all. The nice thing is that your service would be very portable across protocols and deployment options (e.g. put a controller layer on top and it's instantly embedded). This gives you the benefits of EJB's (persistence) + the ability to use Groovy and GORM.

FWIW, we're using Grails as our service tier; in come cases we use it embedded (as a plugin), in others we expose the services (via controllers) as JSON or SOAP; I see exposing as RMI as a variation of what we're doing (without the controller layer).

0

精彩评论

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

关注公众号