Yes, Jerome summarized it well. Few comments
GlassFish gem is meant only for Rals applications (with the latest gem
0.9.0)[1] you can even deploy your merb app.
On GlassFish v3 server, not only you can host multiple Rails app, but
also any other JavaEE applications.
Here is the geting started:
http://wiki.glassfish.java.net/Wiki.jsp?page=GettingStartedGuide,
it explains deployment of rails app using glasssfish gem
(glassfish_rails) or on GlassFish v3. You can also see GlassFish gem
docs at [2]
If you want to package your own set of Jars with the Rails application,
instead of copying the jars in the glassfish/lib directory or
glassfish/modules directory, you may like to use Warbler[3]. Warlber gem
let's you package your own jars and it creates a WAR file form your
rails app. See[3] for more info on warbler.
-vivek.
[1]
http://weblogs.java.net/blog/vivekp/archive/2008/11/new_and_improve_1.html
[2]
http://glassfishgem.rubyforge.org/
[3]
http://caldersphere.rubyforge.org/warbler/
Jerome Dochez wrote:
> Bill Kocik wrote:
>>
>> I have a few questions surrounding the deployment of Rails apps in v3
>> prelude.
>>
>> 1) I'm unclear as to whether I should be starting a GlassFish domain
>> and deploying my application into it, or using the glassfish_rails
>> gem. I'm not really sure what the second option does, or why I might
>> choose to use one over the other. Is there a document somewhere that
>> will help clear this up?
> I don't think there is document, vivek ?
> In a nutshell, gem is an application runner, it will run you rails
> application but nothing else. If you use the v3 installation, start
> the domain and deploy, you can deploy several rails applications (or
> Java EE even) concurrently with a different context root, you get
> access to different containers like the web or EJB and goodies like
> the update center.
>>
>> 2) If I deploy an app using the glassfish_rails gem, do I still have
>> access to the GlassFish admin console?
> no, gem is only about running rails applications with no extension or
> extra features. You need to use the glassfish installation with a web
> container to have access to the console.
>>
>> 3) Is there some location in a Rails application structure that
>> GlassFish will look for jar files to add to the classpath for that
>> application? War files and exploded Java webapp directories have a
>> WEB-INF/lib directory. Rails apps also have a lib directory, but this
>> is for Ruby libraries. Where in a Rails app can I put
>> application-specific jar files? Is there such a place, or must I
>> place them in the domain/lib directory?
>>
> or glassfish/lib. If those bundles are OSGi bundles, you should place
> them in the modules directory.
>
> Jerome
>> Thank you . . .
>>
>>
>> --
>> Bill Kocik
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>