Skip to content

Commit

Permalink
Merge fix for glassfish compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Kayser committed Jun 18, 2009
1 parent f9b4568 commit 2819f6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/new_relic/local_environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ def discover_framework

def check_for_glassfish
return unless defined?(Java) &&
(com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory rescue nil) &&
defined?(com::sun::grizzly::jruby::rack::DefaultRackApplicationFactory)
(((com.sun.grizzly.jruby.rack.DefaultRackApplicationFactory rescue nil) &&
defined?(com::sun::grizzly::jruby::rack::DefaultRackApplicationFactory)) ||
((org.jruby.rack.DefaultRackApplicationFactory rescue nil) &&
defined?(org::jruby::rack::DefaultRackApplicationFactory)))
@dispatcher = :glassfish
end

Expand Down

0 comments on commit 2819f6f

Please sign in to comment.