Displaying 20 results from an estimated 90000 matches similar to: "Running Java code in rails"
2006 May 14
12
Is there a place for java in Ruby on Rails apps?
Hi all,
I''m asking this question from the standpoint of a developer with almost 10
years experience with Microsoft technologies, mostly doing server side
component and database work. So, I''m not very familiar with the java
world. Can anyon tell me how/if java development can complement Ruby on
Rails development? I''m not interested in how java can duplicate Rails
2013 Jun 21
3
[HELP ] Call java code / method from Ruby programming
Hi All ,
I have written java code ( This java code will not return any thing but
it will do action ) which is required call from ruby , please let me what
is best way to achieve this ?
Thanks ,
Muthu Selvan SR
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from
2008 Jul 05
18
Java Bridge Itext Example Anyone?
I MAY be able to derive something out of the present example given here
:
http://blog.codeinmotion.com/index.php/2006/12/22/pdf-generation-in-ruby-on-rails/
but this deals with filling out forms. Is there a simpler example that
just allows you to talk to itext , send it some plain text and get back
a pdf and then send that pdf to the user as downloadable / renderable
data?
--
Posted via
2009 Sep 28
3
rjb: Java classes in Rails
Hi,
For those who might not be aware, rjb is a killer gem for using java
classes inside your rails app (or any ruby code). Check it out at:
http://rubyforge.org/projects/rjb/
I was able to successfully use it in one of my apps that required some
code that is only available in java. And it''s much nicer than having to
compile a java app, then shell out using backticks, get back the return
2006 Aug 15
20
Talking to Java APIs
I''m trying to figure out how Ruby in general, and/or anything extra
Rails may have, can talk to Java APIs of third party server apps.
After quite a few search attempts net-wide and on ruby forums, and
with "Programming Ruby" in hand, I''m coming up with zilch. Either I''m
not finding it, or I''m not recognizing it.
I''m assuming there has
2006 Mar 21
7
Rails and JRuby
Has anyone attempted to run Rails inside of JRuby?
Is that even possible?
Aside from the performance implications, is it a bad idea?
I''m thinking that it might be useful in very rare cases where a
Ruby/Rails - equivalent of a Java solution may not exist yet.
Any thoughts?
Wes
--
Posted via http://www.ruby-forum.com/.
2007 Feb 19
2
help - how to call java classes from controller
hi,
I need help to call java classes from the a controller action. I can
call a java class from a ruby script, but when I am trying to call in
controller, then
require ''java''
itself gives me load error.
I have java 1.4, jruby 0.9.0 and ruby 1.8.5 installed.
I have tried to start server as :
jruby script/server but it does not work.
In my application I need to use 3rd party
2011 Feb 10
3
Using RJB in a Rails 3 app?
I''m trying to interact with a java library (Aspose Slides) inside of my
Rails 3 app. I''m trying to get the rjb gem installed but I keep running
into the same error when I try to start the app:
[BUG] cross-thread violation on rb_gc()
(null)
Abort trap
I''m on OSX 10.6.6, running ruby 1.8.7-p174 (via RVM) and Rails 3.0.4. I
tried a couple of methods for getting this
2009 May 25
2
Looping through java hashmap from ruby through rjb
Greetings.
I am trying to list all keys in a java.util.HashMap field.
The Java code to do this looks like:
#
Collection c = hMap.values();
#
#
//obtain an Iterator for Collection
#
Iterator itr = c.iterator();
#
#
//iterate through HashMap values iterator
#
while(itr.hasNext())
System.out.println(itr.next());
So, I took a stab at the ruby version:
# I have a java hashmap called fields
2007 Feb 19
2
How to call java apis
Hi,
In my application, I have to make 3rd party java apis. Actually, I have
to use a sms gateway provider''s apis. They have a java sdk which I have
to use to send and receive sms. How can I call java apis from within a
controller?
In my controller, I have to receive request and use the java api to get
the data out of request. Process the data in controller action and then
send the
2006 Jan 31
4
Rails to Java
Hello,
I just started playing with RubyOnRails. It is indeed fascinating! I
have a question about using rails models to connect to backend Java
(i.e. EJBs) instead of database.
Any pointers will be appreciated.
Thanks and Regards,
Khaled
--
Posted via http://www.ruby-forum.com/.
2006 Sep 24
1
Utilize Java Libraries
Is it possible to utilize java libraries from a RoR application?
I saw some stuff about Web Services (i.e. SOAP), so obviously that is
one way.
I also was looking at the JRuby project...
I was just curious how serious the efforts are to integration java and
ruby and how that relates to the rails framework.
Thanks for your thoughts!
--~--~---------~--~----~------------~-------~--~----~
You
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data
entered via HTML forms. Data saved to database, entered in to PDF
file, PDF file with data archived, and then distributed va email and/
or download.
The languuage I previous did all my web work in, Lasso, had this
stuff built in, but it appears not to be so with Ruby or Rails.
The latest info I can find on this is a year
2008 Sep 16
1
[JRuby] Exposing rails method as java class
hello,
I am using Jruby on Rails. Does anyone know if you can expose a RoR object
as a java class so that you can call it directly from java without having to
go through a service layer like REST ?
Thx
Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 Nov 13
2
Rails Camp Scaling Session notes
Here are some notes from the scalability session of last week''s Rails
camp. They were entered by another session participant and are posted
at:
http://www.rubyonrailscamp.com/10%3A15%2Bsession%2B-%2Bscaling
The key points from my point of view:
- the Ruby VM is sketchy, rather like the Java VM around 1997
- the single threaded nature of Rails dispatch handling means we may
incur a
2007 Feb 23
2
cluster with environment variables
In production I''ve setup a mongrel cluster of 2 servers. Now I''m
using RJB(ruby java bridge). So I need certain java environment
variables set before mongrel starts.
So I set them:
export LD_LIBRARY_PATH=/usr/java/jdk1.6.0/jre/lib/i386/:/usr/java/jdk1.6.0/jre/lib/i386/client/:./
export JAVA_HOME=/usr/java/jdk1.6.0/
Then I run "mongrel_rails cluster::start".
Now
2007 Jan 17
12
Excel sheet generation
Hi,
Does anyone know of a package that will help with generation of
spreadsheets? (xls files, not csv)
Thanks,
Fredrik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe
2008 Apr 15
4
trouble streaming images with send_data
Hi
I''m doing some server-side graphics with Java2D and I''m trying to
stream the resulting image to the browser using send_data. When I try
to view the image that I streamed, the browser just shows the URL in
the window as a very small image (about .4 kb) when I am using jpeg
format. For png, it tells me that the image has errors and can''t load
it.
Here''s what
2008 Jan 14
5
Help finding "JRE" to run Netbeans in Linux
I''ve spent the last year developing a large Ruby on Rails 2.0
application with over a 100 tables and controllers and hope to be
deploying it soon.
Before I moved from my Windows XP computer to deployment, I wanted to
run it in a local Linux environment to sort out:
1. Amazon S3 files
2. RMagick (went south when I upgraded to Rails 2.0)
3. ARMailer (mail spooling program)
I''ve
2006 Aug 14
2
Rails Monitoring, reprise
Last week I posted a question about monitoring Rails applications.
Basically, the java folks at my business cited one of their reasons
for sticking with Java is it''s monitoring tools. After picking some
ears, I found out that the one we''re looking at most is JBoss
Operations Network. And I have to say, it''s pretty neat.