Skip to content
juanpaco edited this page Sep 12, 2010 · 2 revisions

Here is how to create a irb mapper session:

  1. First shell: Start the simple-agent example, see Testing Nanite.
  2. Second shell: Start an interactive mapper:
nanite-mapper -i -u mapper -p testing -v /nanite
  • -i interactive
  • -u user mapper
  • -p pass testing
  • -v vhost nanite
  1. Let’s request our echo service:
request("/simple/echo", "keep on rocking") { |res| p res }

And we got a result:

INFO: SEND [request] <71f6f654c86f4f3a5f8049018ede4ed5> /simple/echo from mapper to foo
INFO: RECV [result] <71f6f654c86f4f3a5f8049018ede4ed5> from foo
{"nanite-foo"=>"Nanite said keep on rocking @ Sat Sep 12 02:41:40 -0300 2009"}
Clone this wiki locally