webtier@glassfish.java.net

Re: [webtier] how to deploy 2 rails app AND web start servelet

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Tue, 18 Nov 2008 10:02:05 -0800

Stephen Bannasch wrote:
> GF developers,
>
> Is there a way to use the GF V3 prelude gem to deploy 2 rails apps AND
> a java web start servlet?
>
No. You would use gem to run your rails application rather than deploy
it :-) and no servlet support thre, it is only to host ruby/rack based
application frameworks.

> Or if I can't do this with the gem is there another way? Can the gem
> be hacked to do this?
>
I am curious. From what you are trying to do, it looks like you should
be using GlassFish v3 Prelude server instead of glassfish gem. Any
reason you don't want to go this route?

As far as deploying multiple rails applications on a single running gem.
This feature/support is not there. Although, we currently bundle asadmin
command as part of gem. So maybe asadmin dpeloy will work but there is
no guarantee and no future compatibility as far as deploying multiple
applications are concerned.

> Can I embed GF in another application and serve the 2 rails apps AND a
> java web start servlet when the application starts?

Yes. You may want to use GlasssFish v3 Embedded API.

Here is a blog entry that uses most recent version of embedded API:

http://blogs.sun.com/alexismp/entry/bundling_glassfish_v3_prelude_xwiki1

-vivek.
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>