Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Vivek Pandey
RE: Would be great to get feedback on the gem [ reply ]  
2008-12-08 18:36
Please report an issue on the gem so that it does not look for jruby.jar but rather something that is available there. This bug has other repercussions tooo, for example, what if jruby in it's next release renames jruby.jar?

thanks,

-vivek.

By: James Britt
RE: Would be great to get feedback on the gem [ reply ]  
2008-12-08 18:23
"If you have jruby installation and glassfish gem is installed on it then running the merb app should not be an issue. This is how we have tested and found that merb apps just work fine, they way Rails work.

Having said that, I agree, we should use whatever jruby jar is available at $JRUBY_HOME/lib and not look for jruby.jar specifically."

But that's the point; I didn't have jruby.jar, I had jruby-complete.jar. I haven't had a need for jruby.jar (all of my jruby scrips and apps and command line stuff run fine with jruby-complete.jar), but the GF gem was looking specially for a file named "jruby.jar", and if it could just as well use jruby-complete.jar then maybe it could look for that if it doesn't find jruby.jar.

Thanks for the pointers on running the glassfish command on other apps. I'll look into this.

By: Vivek Pandey
RE: Would be great to get feedback on the gem [ reply ]  
2008-12-08 17:51
>Next: I tried using the glassfish command on a Merb app, and it failed because
>it could not find jruby.jar. But I had jruby-complete.jar. I created a jruby.jar
>symlink to jruby-complete.jar and it seems OK. Unless there is some reason
>jruby-complete.jar is not usable, the gem should try to load whichever it can find.

Not sure how you are trying to use it. If you have jruby installation and glassfish gem is installed on it then running the merb app should not be an issue. This is how we have tested and found that merb apps just work fine, they way Rails work.

Having said that, I agree, we should use whatever jruby jar is available at $JRUBY_HOME/lib and not look for jruby.jar specifically.

>The error referred to Rails, though I was not running a Rails app. I think
>I understand the roots of the gem, but there are many Rack-based Ruby web tools,
>and there would be more interest in having them work with Glassfish if the gem
>didn't seem like a such a Rails-specific tool.

I think the error message need to be made generic enough. This might be the left over from the earlier code where the glassfish gem < 0.9.0 was only Rails specific.

>On a related note, what would have to be done to get the glassfish command
>to run a Ramaze app the way it does a Merb app? Ideally this would not have
>to be something baked into the glassfish gem for every new framework, but something
>any app can implement so that it Just Works.

Sure! All we expect is that you provide a startup script when running GlassFish. Right now the mechanism is not that straight forward but as starter you can try it.

export JAVA_OPTS="jruby.applicationType=/home/vivek/myAppStartup.rb"

jruby -S glassfish

Above, myAppStartup.rb is the ruby script that can boot strap your application framework.

For example, here is the startup script for Rails:

---------
require 'rack/adapter/rails'
Rack::Handler::Grizzly.new(Rack::Builder.new {(run JRuby::Rack::RailsFactory.new)}.to_app
require "config/environment"
require 'rack/handler/grizzly'
---------

Let me know how it goes and thanks for your interest in GlassFish.

-vivek.


By: James Britt
RE: Would be great to get feedback on the gem [ reply ]  
2008-12-07 00:44
A few things:

First, thanks for the time and effort you've put in.

Next: I tried using the glassfish command on a Merb app, and it failed because it could not find jruby.jar. But I had jruby-complete.jar. I created a jruby.jar symlink to jruby-complete.jar and it seems OK. Unless there is some reason jruby-complete.jar is not usable, the gem should try to load whichever it can find.

The error referred to Rails, though I was not running a Rails app. I think I understand the roots of the gem, but there are many Rack-based Ruby web tools, and there would be more interest in having them work with Glassfish if the gem didn't seem like a such a Rails-specific tool.


On a related note, what would have to be done to get the glassfish command to run a Ramaze app the way it does a Merb app? Ideally this would not have to be something baked into the glassfish gem for every new framework, but something any app can implement so that it Just Works.

By: Jeffrey Damick
RE: Would be great to get feedback on the gem [ reply ]  
2008-02-25 14:30
Is there a reason the code is not in 1 project?

I'd like to see:

- min/max for the number of runtimes (configurable to grow/shrink the pool from JMX would be great)

- configurable port & admin port & jmx port

- how do we tweak other jvm options (Xmx, etc)

- logs go to the RAILS_ROOT/log instead of inside the gem :( !

- readme file doesnt help..

- would be nice to host multiple rails apps through 1 instantiation of glassfish.


By: Pramod Gopinath
RE: Would be great to get feedback on the gem [ reply ]  
2008-02-22 02:57
The gem was created from the source bits that
were checked out of the GlassFish v3 code base
as of 02/08/2008. I am in the process of putting back the changes that I had made, back to the svn repository.
So in short the code base is the svn repository of GlassFish v3. Further instructions can be found at - http://wiki.glassfish.java.net/Wiki.jsp?page=V3FullBuildInstructions.

By: Jeffrey Damick
RE: Would be great to get feedback on the gem [ reply ]  
2008-02-21 21:46
Where can we get the source for jars in the gem?

By: Pramod Gopinath
Would be great to get feedback on the gem [ reply ]  
2008-02-15 03:34
It would be great to get comments on the gem in terms of ease of use, issues, things you would like to see. Want to keep on improving the gem and any feedback would be a great help.