Paras Jain wrote:How does OSGi connect to Grails? I am writing some Grails plugin, is it easy to convert the grails plugin to OSGI module sometimes down the line. Does it make sense.
I have heard that Eclipse plugins are like OSGI modules that's why this question comes to my mind.
I'm a big fan of Grails, but I've not yet had an opportunity to try to do Grails within OSGi. So, I'm not sure I'll be able to answer your question. In my mind there's little reason why Grails can't work with OSGi, but the Grails programming model may make it a bit tricky. But again, I don't know.
Eclipse plugins are, in fact, OSGi bundles. In fact, the Eclipse
IDE is nothing but Equinox with over a thousand bundles working together to provide IDE functionality (pretty cool when you think about it). But Eclipse plugins and Grails plugins are two different things, so I'm not sure why you bring them up...unless it's to suggest that OSGi offers a plugin mechanism. In that case, yes...OSGi is great for creating pluggable applications.