From: Dean Wampler Date: 2006-02-15T11:07:28+09:00 Subject: Re: Ruby- interactions with Appservers such as Oracle/Jboss 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/), 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 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/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 > > 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 > > > -- Dean Wampler http://www.aspectprogramming.com http://www.newaspects.com http://www.contract4j.org