I currently have a grails application that gets deployed through liferay. Now, I need to build some portlets, but I'm unsure what the best way is to expose the grails domain objects and services.
How would you go about doing this?
Ideally, I could either build my portlets directly within the grails application or somehow wire the two together when deployed in different wars.
Some weeks ago I published an GateIn Portlet plugin that updates the PortletsPlugin and make it usable with last Grails (1.3.7) and Spring MVC (3.0.5). If you like, I can back-port my changes to the original portles plug-in and its LR implementation. Which LR version do you use?
How to expose you domain objects its more about your environment design choice. The simplest way is to have all portlets in inside a single grails app. If your portlets are not logical connected together do it in separate wars. But if you use the domain classes just to output some text, maybe is better for performance and administration to write a standard Java servlet that uses only GORM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With