# Ruby- interactions with Appservers such as Oracle/Jboss

**URL:** <https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795>\
**Category:** Ruby\
**Created:** [February 14, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795 "2006-02-14T17:31:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 14, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/1 "2006-02-14T17:31:17Z")

</div>

Hi:  
I am evaluating using Ruby to build an enterprise application. I expect  
that the application setup will include a browser [ie], a (1)webserver  
such as apache and an (2)application server such as that provided by  
Oracle/Jboss (3)the data base.

Before starting on such a project, I wanted to find out if there any  
known issues related to ruby interacting with application EJB’s [j2ee  
compliant]. Is there a specific weblog/documentation set where I can  
readup about known issues?

Are there any example applications available for download where one can  
see a prototype application built using Ruby + Jboss [or equivalent  
freeware]?

Thanks in advance.  
Arjun Khanna.

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 14, 2006, 6:08pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/2 "2006-02-14T18:08:17Z")

</div>

Arjun Khanna wrote:  
…

> Before starting on such a project, I wanted to find out if there any  
> known issues related to ruby interacting with application EJB’s [j2ee  
> compliant]. Is there a specific weblog/documentation set where I can  
> readup about known issues?

You should have a medical team on hand, as J2EE developers, after  
exposure to Ruby, have a high risk of head explosion when they return to  
coding EJBs.

Just a heads up.

–  
James B.

[http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[Ruby Code & Style](http://www.artima.com/rubycs/) - The Journal By & For Rubyists  
[http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
[http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 14, 2006, 8:52pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/3 "2006-02-14T20:52:43Z")

</div>

DÅ?a Utorok 14 FebruÃ¡r 2006 18:06 James B. napÃ­sal:

> You should have a medical team on hand, as J2EE developers, after  
> exposure to Ruby, have a high risk of head explosion when they return to  
> coding EJBs.
> 
> Just a heads up.

Sooo, head explosions are now treatable by paramedics? Oh joy, now I can  
fulfill item no. 7 on my Things To Do Before I Die: Establish a world  
record  
in the amount of lit firecrackers I can fit into my mouth 😛

David V.

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 14, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/4 "2006-02-14T18:17:48Z")

</div>

Thanks much. I am really glad to hear that Ruby development is a lot  
easier than EJBs. However, there is some logic already embedded in the  
EJB’s and there is a fair chance of saving execution time by re-using  
that logic. So my question still stands- Are there any known  
projects/weblogs/documentation-sets where I can readup on success or  
problems related to integrating, making calls outs to EJB’s from Ruby.  
Thanks in advance for your help. I appreciate it.

Arjun.

James B. wrote:

> Arjun Khanna wrote:  
> …
> 
> > Before starting on such a project, I wanted to find out if there any  
> > known issues related to ruby interacting with application EJB’s [j2ee  
> > compliant]. Is there a specific weblog/documentation set where I can  
> > readup about known issues?
> 
> You should have a medical team on hand, as J2EE developers, after  
> exposure to Ruby, have a high risk of head explosion when they return to  
> coding EJBs.
> 
> Just a heads up.
> 
> –  
> James B.
> 
> [http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
> [Ruby Code & Style](http://www.artima.com/rubycs/) - The Journal By & For Rubyists  
> [http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
> [http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
> [http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 14, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/5 "2006-02-14T23:09:09Z")

</div>

Well, you can definitely expose the EJBs as Web Services and access them  
using Ruby that way. Is that what you are talking about?

If so . . .

SOAP4R provides everything you need to work with SOAP Services. The  
current release works best with RPC-literal services, but the latest  
from the source trunk greatly improves Document-literal support.

wsdl2ruby can generate classes for you so that you don’t have to guess  
about the code generated.

Some example code:

require ‘service’

service =  
SOAP::WSDLDriverFactory.new(‘[http://example.com/services/Contacts](http://example.com/services/Contacts)’).create\_rpc\_driver  
service.generate\_explicit\_type = true  
service.wiredump\_dev = STDOUT if $DEBUG

result = service.SearchContacts(SearchContactsRequest.new(‘some\_name’))  
if result.contacts.length \> 0  
result.contacts.each { |c| print\_contact(c) }  
else  
puts “No contacts found…”  
end

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 15, 2006, 3:07am UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/6 "2006-02-15T03:07:37Z")

</div>

The forthcoming Pragmatic book “Enterprise Integration with Ruby” may  
be helpful. The preview PDF doesn’t discuss interfacing to EJB’s, per  
se, but it does go over options for communicating with non-ruby  
systems.

Also, take a look at JSON (Javascript Object Notation:  
[http://www.json.org/](http://www.json.org/)), which is supported in many languages and is  
becoming a popular & lightweight protocol for data passing, including  
AJAX applications.

HTH,

dean

On 2/14/06, Geoff L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> about the code generated.  
> result = service.SearchContacts(SearchContactsRequest.new(‘some\_name’))
> 
> > such as apache and an (2)application server such as that provided by

–  
Dean W.  
[http://www.aspectprogramming.com](http://www.aspectprogramming.com)  
[http://www.newaspects.com](http://www.newaspects.com)  
[http://www.contract4j.org](http://www.contract4j.org)

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 14, 2006, 9:29pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/7 "2006-02-14T21:29:04Z")

</div>

Arjun Khanna wrote:

> Thanks much. I am really glad to hear that Ruby development is a lot  
> easier than EJBs. However, there is some logic already embedded in the  
> EJB’s and there is a fair chance of saving execution time by re-using  
> that logic. So my question still stands- Are there any known  
> projects/weblogs/documentation-sets where I can readup on success or  
> problems related to integrating, making calls outs to EJB’s from Ruby.  
> Thanks in advance for your help. I appreciate it.

I believe Obie F.’ forthcoming book will cover these sorts of  
things.

–  
James B.

[http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[Ruby Code & Style](http://www.artima.com/rubycs/) - The Journal By & For Rubyists  
[http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [February 16, 2006, 7:30am UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/8 "2006-02-16T07:30:48Z")

</div>

Are you specifically talking about integration with Rails or are you  
considering using something like JRuby to run Ruby code within JBoss?

Tim K.

---

<div class="post-metadata">

**Author:** ![Arjun\_Khanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ce73a5/32.png) [@Arjun\_Khanna](https://www.ruby-forum.com/u/Arjun_Khanna)\
**Post date:** [March 10, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/ruby-interactions-with-appservers-such-as-oracle-jboss/53795/9 "2006-03-10T19:11:10Z")

</div>

Hi,

I am interested to know how you made out with your work. I am  
interested in doing the same as you.

Did you find any resources with information on how to make calls to  
EJBs from Ruby?

If anyone could help, that would be greatly appreciated.

Cheers,  
Tony

P.S. I’ve purchased “Enterprise Integration with Rails” and read it but  
have not found how to set up, or make calls to an EJB.
