Rails to Java


#1

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


#2

On 31/01/2006, at 6:09 PM, Khaled Mohammad wrote:

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.

Try jruby, it’s a Java implementation of Ruby, it has access to the
Java API and Java classes. http://jruby.sourceforge.net/

You wouldn’t be using ActiveRecord of course, just create the model
classes without inheriting from ActiveRecord.


Phillip H.
removed_email_address@domain.invalid
http://www.sitharus.com/


#3

Phillip H. wrote:

On 31/01/2006, at 6:09 PM, Khaled Mohammad wrote:

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.

Try jruby, it’s a Java implementation of Ruby, it has access to the
Java API and Java classes. http://jruby.sourceforge.net/

You wouldn’t be using ActiveRecord of course, just create the model
classes without inheriting from ActiveRecord.


Phillip H.
removed_email_address@domain.invalid
http://www.sitharus.com/

Thank you sir. I appreciate this pointer. I will check into it.

Thanks & Regards,
Khaled


#4

You should take a look at
http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge.

It works like a charm (under modern linuxes), but for some mysterious
reason it refuses to work on older, redhat 7.2, linuxes. In windows you
have to hack it a little to get rid of the automagic iconv that is going
it.


#5

Colin wrote:

You should take a look at
http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge.

It works like a charm (under modern linuxes), but for some mysterious
reason it refuses to work on older, redhat 7.2, linuxes. In windows you
have to hack it a little to get rid of the automagic iconv that is going
it.

Ok…great…thanks. I will definitely take a look as I have had good
experience with bridges before.

Regards,
Khaled