Closed mindscratch closed 12 years ago
Thanks, we'll get this into the mix for the next gem version. Will likely run the merge locally, and not from github.
I suggest you open an issue in JRuby JIRA if one is not open already.
Thanks. I did open an issue in JRuby (on github).
OK. I have no idea what tracker they actually use. I have one open issue for another problem with them at:
Merged in to 'dev' branch, scheduled for 1.2.3. Ref:
b84e282887ba92a80ab9b08b1aa1132dba453be9
I'm using Stomp 1.2.2 with JRuby 1.6.5 (using Ruby 1.9 compatibility) and the SSL example use case 4 doesn't work.
In connection.rb, line 688 which reads the "cert_file", it uses File.open. Also line 691 (which reads the key_file) uses File.open. This works with Ruby but not with JRuby (at least 1.6.5).
In JRuby "File.read" needs to be used, such as:
If File.open is used JRuby throws an error "can't convert File into String" from their X509Cert class.
Ultimately JRuby probably needs to be fixed so that it can handle a File object (the result of File.open) as well as a String (File.read).
However, since File.read works in Ruby and JRuby I thought perhaps Stomp could be updated to use it so SSL will work with JRuby today.