No difference to stock AMI: hostmanager, which must also be present on the custmized AMI, handles everything. The startup data contains all information on where to download the WAR file from and which parameters to apply.
]]>You can Launch and use this AMI, but in order to use hostmanager, you would need to provide it with some input it expects, such as where to download the WAR from (including signed S3 link), etc.
I haven’t looked into the startup for a while, so, sorry, I can’t help you here…
]]>I’m trying, but It’s not working. The _hostmanager url return 503. httpd and hostmanager seems to be running.
Thanks.
]]>Hi Peter,
thanks for the heads up!
Yes, that would affect the plugin if used in a modular manner (more below). But when running a WAR-ed Grails app as a monolithic OSGi bundle (see here for a definition of monolithic in this case), it should still work, though. I saw another commit yesterday, which disables generation of OSGi headers when generating a WAR file. But as this can still be activated in (Build)Config.groovy, this shouldn’t matter too much.
Do you know why the Grails JARs no longer contain OSGi headers? That would affect running a Grails app (or multiple thereof) in an OSGi container in a modular manner, i.e. with each Jar as its own bundle.
But as the OSGi plugin does not currently work with Grails versions newer than 1.3.4 (or so), I’ll have to update it anyway.
]]>Hi Jon,
the OSGi plugin replaces some of Grails’ dependencies with corresponding bundles from SpinrgSource Enterprise Bundle Repository (EBR), which contains bundle-ized versions of many standard java library. The problem is, that these dependencies are currently more or less hard coded. You might be able to get it to run by tweaking scripts/_Osgi.groovy and scripts/_Events.groovy, where all the replacement bundles and dependencies are defined. You can find the complete source code of the OSGi plugin here.
When running it in Virgo, you should remove all tomcat bundles referenced in the scripts mentioned above, as Tomcat is provided in the Virgo Web and Virgo Nano Web installations.
HTH,
Wolfgang
]]>Hi Jon,
I did not get that much feedback on the OSGi plugin and am currently working on other stuff (as time permits, the Grails OSGi plugin is a hobby only). Do you have interest in the plugin? Or do you use it already with an older Grails version? What is your environment and use case? I still want to update the plugin to Grails 2.0, but didn’t get around to it yet.
Cheers,
Wolfgang
]]>