[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby- interactions with Appservers such as Oracle/Jboss

Arjun Khanna

2/14/2006 4:32:00 PM

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.


--
Posted via http://www.ruby-....


6 Answers

Arjun Khanna

2/14/2006 5:18:00 PM

0

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 Britt 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 Britt
>
> http://www.ru... - Ruby Help & Documentation
> http://www.artima.c... - The Journal By & For Rubyists
> http://www.rub... - The Ruby Store for Ruby Stuff
> http://www.jame... - Playing with Better Toys
> http://www.30seco... - Building Better Tools


--
Posted via http://www.ruby-....


David Vallner

2/14/2006 7:52:00 PM

0

Dna Utorok 14 Február 2006 18:06 James Britt 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 :P

David Vallner


Geoff Lane

2/14/2006 10:09:00 PM

0

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/Con...).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

Arjun Khanna wrote:
> 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.
>
>


--
Geoff Lane <geoff@zorched.net>



Dean Wampler

2/15/2006 2:07:00 AM

0

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...), 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 Lane <geoff@zorched.net> wrote:
> 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/Con...).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
>
> Arjun Khanna wrote:
> > 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.
> >
> >
>
>
> --
> Geoff Lane <geoff@zorched.net>
>
>
>


--
Dean Wampler
http://www.aspectprogr...
http://www.newa...
http://www.cont...


Tim Kuntz

2/16/2006 6:29:00 AM

0

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

Tim Kuntz

Arjun Khanna wrote:
> 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.
>
>


lepage

3/10/2006 6:08:00 PM

0

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.