• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: LEWOStuff (the stuff with JSON-RPC!)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LEWOStuff (the stuff with JSON-RPC!)


  • Subject: Re: LEWOStuff (the stuff with JSON-RPC!)
  • From: Andrew Lindesay <email@hidden>
  • Date: Wed, 11 Jun 2008 13:19:34 +1200

Hello David;

Just grab "LEWOStuff.jar" and "stick it into your project". No other dependencies. Then do this;

import nz.co.lindesay.common.webobjects.jsonrpc.*;

public class Application extends WOApplication implements LEWOJSONRPCApplicationInterface
{


public Application() {
...
LEWOJSONRPCRegistry reg = LEWOJSONRPCRegistry.singleton();
reg.addPackageForActions("nz.co.foo.jsonrpc.actions"); <--- this is the package where your action classes live
registerRequestHandler(new LEWOJSONRPCRequestHandler(), JSONRPCRequestHandlerKey());
...
}


public String JSONRPCRequestHandlerKey() { return "jrpc"; }

}

That sets the basic stuff-up. There is error and session-timeout handling to worry about, but you will have to copy that handling from LEWOApplication.

cheers.

Okay, first question:
All I really want to put into my project right now is the JSON-RPC stuff. How do I go about adding just that framework and it's dependencies?

___ Andrew Lindesay www.lindesay.co.nz

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: LEWOStuff (the stuff with JSON-RPC!)
      • From: Andrew Lindesay <email@hidden>
References: 
 >LEWOStuff (the stuff with JSON-RPC!) (From: Andrew Lindesay <email@hidden>)
 >Re: LEWOStuff (the stuff with JSON-RPC!) (From: David Avendasora <email@hidden>)
 >Re: LEWOStuff (the stuff with JSON-RPC!) (From: Andrew Lindesay <email@hidden>)
 >Re: LEWOStuff (the stuff with JSON-RPC!) (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: WebObjects Nightly Builds and WOLips addition
  • Next by Date: Re: WebObjects Nightly Builds and WOLips addition
  • Previous by thread: Re: LEWOStuff (the stuff with JSON-RPC!)
  • Next by thread: Re: LEWOStuff (the stuff with JSON-RPC!)
  • Index(es):
    • Date
    • Thread