Hi,
I’m converting a RoR app to run under JRuby. Things are going well so
far.
There are some data-intensive portions to this intranet site, parsing
large XML files and populating database (MySQL) tables with the content
from the file. Previously, I was using a native XML parser, which I
cannot do in JRuby.
I am trying to find a replacement SAX-based XML parser (Hpricot?) that
works under JRuby…any suggestions?
Another possibility is to re-write the XML parsing and database
insertion routines in a Java/JAR package and call that from JRuby. Is
it possible from Java to access the MySQL configuration information that
is contained in RoR database.yml? Or does that information need to be
hard-coded in the Java code as well?
Thanks,
Kevin