Apr 29 2007

RubyAMF – an open source AMF gateway for Flex/Flash remoting with Ruby

Tag: Flex, Rails, RubyAMF, weborbDerek Wischusen @ 3:08 am

RubyAMF is an open source Ruby application being developed by Aaron Smith that enables AMF0/3 communication between Flex/Flash and Ruby.

So, you might be asking yourself, how is this different from WebORB for Rails? Well, the main difference is in how the apps are architected. WebORB for Rails is built as Rails plugin. This makes it really easy to use WebORB for Rails with your Ruby on Rails applications. However, this means you need to use Rails if you want to use WebORB for Rails, even if you want to use it for an application that does require any Rails specific code.

RubyAMF, on the other hand, is designed to be integrated directly with a server and, as such, does not require Rails. It even comes with its own webrick servlet, which means that all you have to do to start RubyAMF is download it, point a command line to the root folder, and enter ruby server/start. This makes it dead simple to use RubyAMF to integrate Flex/Flash with a Ruby application. However, if you want to use RubyAMF with Rails then you are going to have to do a little extra work.

So, for right now my simple heuristic is that if you want to use AMF remoting with Rails, then use WebORB for Rails. If you want AMF remoting with just Ruby, then use RubyAMF. (I suppose the names make that kind of obvious).

That said, I think it would be relatively trivial to rearchitect either app to be like the other, but I think it is good that they are different. Choice is, generally, a good thing.

Right now the thing that has me most excited about RubyAMF is how it could potentially be used to extend Apollo using Ruby in much the same way that Artemis does using Java. More on this in my next post….


Feb 14 2007

A little less configuration, or eliminating the need for mappings in the remoting-config.xml file in WebORB for Rails

Tag: Flex and Rails, weborbDerek Wischusen @ 3:21 am

After reading this post on the Midnight Coders forum about a method for eliminating the need for mapping services in the remoting-config.xml file WebORB for PHP, and driven by my intense dislike of configuration, I thought I would see if the same thing is possible in WebORB for Rails. Turns out it is really easy.

Here is all you have to do:

    1. add endpoint="/weborb" to your RemoteObject definition.

    2. Make sure that the destination property on the RemoteObject matches the name of the service class that you want to call in Rails.

For example, if you had a service class in your Rails app called IssueService, here is what the RemoteObject would look like in Flex:

    <mx:RemoteObject id="issueService" destination="IssueService"
    		    endpoint="/weborb"
		    showBusyCursor="true"
		    result="event.token.resultHandler( event );"
		    fault="event.token.faultHandler( event );">
    </mx:RemoteObject>

That’s all you have to do. Now you don’t have to add any mappings to the remoting-config.xml file (note that you still need to keep the file because WebORB looks for it, you just don’t have to do anything with it), and you can get rid of the -services argument in your compiler options.

I’ve set up all of the services in one of my apps like this and everything seems to be working properly. Let me know if you encounter any issues with this, or if you have any questions.


Jan 27 2007

Sending Typed Value Objects from Flex to Rails using WebORB and the [RemoteClass] metadata tag

Tag: Flex and Rails, weborbDerek Wischusen @ 2:14 am

In Part 2 of the tutorials that I have been writing about the Issue Tracker sample app (view, source) I discussed how you can Get Typed Objects from Rails using [RemoteClass]. Now, with the latest version of WebORB, it is also possible send typed objects from Flex to Rails.

This means that you no longer have to use untyped objects or XML to send values from Flex to Rails. Now you can just pass typed value objects back and forth between Flex and Rails.

So now, in the Issue Tracker sample app, when an IssueVO is sent from Flex to Rails, because it is mapped to the Issue ActiveRecord class (using the process that is explained in Part 2), it automatically gets converted to an Issue ActiveRecord instance. If the value of the id attribute on the IssueVO matches an existing Issue ActiveRecord then WebORB will return that object, otherwise it will create a new ActiveRecord instance.

This makes it possible to simplify the updateIssue method as follows:

  def updateIssue(issue)
    issue.save
  end

10 mg valium effects
Non prescription levitra
Cialis online canada
Tramadol pharmacy online
Tramadol no prescription next day
Canadian pharmacy phentermine 37.5
Cheap viagra canada
Order propecia online no prescription
Buy cheap viagra uk
Cheap viagra and cialis
Cialis generic 5mg
100mg tramadol effects
Generic 2mg xanax
Where to buy phentermine
Buy valium in uk
Viagra online generic
Generic tramadol medication
Free viagra samples
Phentermine 37.5mg tablets
Valium purchase
Cheapest viagra in uk
Buy viagra online from canada
Phentermine 37.5 without prescription free shipping
Xanax cost
Cialis from india
Purchase phentermine online
Cialis purchase online
Generic cialis tadalafil
Generic viagra in the uk
Xanax no prescription needed
Xanax buy uk
Buy phentermine online with no prescription
Medication prednisone
Viagra 50 mg price
Cialis order
Canadian pharmacy phentermine
Propecia online
Buy phentermine with mastercard
Phentermine no rx
Non prescription cialis
Buy cheap cialis online
No prescription valium
Cialis low cost
Where to buy valium
Best viagra generic
Xanax generic 2mg
Female viagra uk
Generic valium
Cialis prescription online
Viagra for sale usa
Valium buy online uk
Best way to take cialis
Buy viagra generic
Order valium without a prescription
How to buy viagra over the counter
Order tramadol online no prescription
Cialis free sample
Order xanax
Levitra cheapest price
Cialis london
Buy generic valium online
Buy cialis in australia
Order phentermine cheap
Buy valium uk
Valium prescription uk
Buy phentermine online without prescription
Phentermine hcl 37.5mg
Order viagra online canada
About xanax bars
Generic levitra from india
Cheap viagra generic
Cheap tramadol overnight delivery
Buy phentermine hcl without prescription
Viagra prescription free
Side effects of viagra
Cialis 100mg pills
About xanax pills
Tramadol overnight no prescription
Buying prednisone
Cheap viagra pills
Antidepressant tramadol
Overnight delivery of phentermine
Cialis for sale in canada
Cialis pricing
Phentermine without prescription mastercard
Low price phentermine
Buying cialis online
Cialis 20 mg tablets
Cheapest place to buy viagra online
Overnight xanax without prescription
Cheap phentermine no rx
Valium generic
Buying viagra in the uk
Buying phentermine in the uk
Viagra online overnight
Cialis over the counter in canada
Buy cheap tramadol without prescription
Viagra trial pack
Get phentermine without a prescription
Cheap viagra uk
Purchase xanax online without prescription
Cialis online without prescription
Where can i buy levitra
Viagra online with prescription
Prescription viagra online
Viagra free samples
Buy xanax bars no prescription
Mail order phentermine
Generic cialis from india
Viagra to buy in uk
Where can i buy phentermine online
Valium prescription drug
Order xanax online uk
Order cialis online without prescription
Cialis 5mg tablets
Prednisone prescription
Buy phentermine no prescription
Cialis no prescription canada
Viagra discount coupons

Best way to take valium
Buy phentermine in uk
Viagra cheap prices
Canada cialis online
Valium online reviews
Viagra mastercard
Order valium cheap
Order phentermine without prescription
Cheap viagra online uk
Cheap tramadol without a prescription
Valium no prescription uk
Doses of prednisone
Canadian pharmacy viagra online
Tramadol cod fedex
Canadian cialis no prescription
Viagra suppliers
Xanax 1mg dosage
Tramadol 50mg tablets
Buy discount viagra online
Levitra medicine
Phentermine us pharmacy
Valium online
Phentermine 37.5 manufacturer
Cialis generic online
Cheap viagra cialis
Where can i buy phentermine 37.5 mg
Best price for phentermine
50 mg tramadol hcl
Cost of prednisone
Where can i buy generic viagra
Order cialis online
Cialis india pharmacy
Viagra suppliers australia
Order levitra without prescription
Phentermine no prescription needed
Buy generic viagra india
About phentermine
Generic viagra overnight shipping
Where to buy levitra online
Generic viagra for sale
Xanax no prescription required
Buy viagra online in south africa
Buying xanax without a prescription
Genuine viagra prices
Genuine cialis no prescription
Propecia buy online
Free viagra samples uk
Get phentermine without prescription
Buy phentermine without a prescription
Xanax pills for sale
Viagra online pharmacy canada
Buy viagra las vegas
Valium buy no prescription
Viagra pfizer price
Purchase viagra without prescription
Order propecia without prescription
Tramadol 100 mg
Buy tramadol online canada
Cheap viagra in india
Xanax fedex
Buy viagra online canadian pharmacy
Generic viagra professional
Levitra cheap
Levitra uk
Buy prednisone no prescription
How to buy phentermine without a prescription
Propecia generic online
Fast delivery cialis
Valium pills effects
Best place to buy viagra uk
Generic cialis online pharmacy
Online prescriptions for phentermine
Cheap generic xanax
Low price cialis
Best viagra websites
Buy cialis online from canada
Viagra usa pharmacy
Where to buy phentermine without a prescription
Brand name cialis online
Cheap phentermine without a prescription
Cheapest generic viagra online
Genuine viagra
Cialis 100
Phentermine 37.5 without prescription fedex
Buy viagra online without prescription uk
Phentermine diet pills
50 mg tramadol
How to buy viagra in australia
Xanax 2mg bars
Prednisone cheap
Generic propecia cost
Best generic viagra review
Cialis brand
Where can i buy valium in the uk
Viagra overnight shipping
Tramadol overnight fedex
Valium without rx
Levitra online pharmacy
Phentermine tablets 37.5
Xanax overnight delivery
Online cialis reviews
Best place to buy xanax
Viagra usa
Online viagra cheap
Prednisone online pharmacy
Xanax pills online
50mg viagra
Online cialis generic
Cheapest place to buy phentermine
Viagra pfizer canada
Buy phentermine hcl
Prescription valium
Valium without prescription australia
Phentermine 37.5mg without prescription
Viagra fast shipping
Valium online without prescription
Best generic viagra prices
Generic viagra reviews
20 mg valium effects
How to buy viagra in uk
Viagra overnight delivery us
Get tramadol online
50 mg viagra online
Australia viagra prescription
Brand cialis without prescription
Cialis professional online
Generic phentermine 37.5 without prescription
Purchase phentermine without a prescription
Buying propecia
Online viagra prescriptions