Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wiring portlets with a grails application context, or deploying multiple portlets through grails?

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.

like image 784
Stefan Kendall Avatar asked Oct 11 '22 11:10

Stefan Kendall


1 Answers

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.

like image 175
Duck Avatar answered Oct 14 '22 07:10

Duck