Re: application intercomunication, a question
Re: application intercomunication, a question
- Subject: Re: application intercomunication, a question
- From: John Lennard <email@hidden>
- Date: Fri, 5 Dec 2008 17:31:58 +1300
Hi,
I am the somebody who uses Andrews JSON-RPC for moving data around,
and have found it to be quite a robust way of keeping a site up to
date with data from a clients internal database. Unfortunately i don't
have any real examples to share but as an overview... read on..
Firstly, it is not a bi-directional sync, and it is more of a "shove"
than a push ... but .. it goes something like this...
There is a small command line java application that runs on the
clients server and in one thread periodically sweeps the clients
internal database for changes and also polls a couple of exported xml
files (for this i parse them with a stax/push parser as they are too
big for dom parsing and sax is horrid). It then takes these changes
and batches them into manageable sized chunks of data and pops them in
a queue.
This queue is then cleared by an set of threads that log in via JSON
RPC and invoke the appropriate methods on the server to load the data
from and array.
By using the multiple threads, i can chew through the large amounts of
data and also have multiple uploads going at the same time.
The WOA has some direct actions / and methods that are invoked by
Andrews JSON stuff which takes care of all of the session and what not.
The JSON is super fast and the LEWOStuff implemetation meant i was
able to throw out piles of custom code that i used to have that parsed
big impolite chunks of XML. The concurrency stuff made the queuing and
threading a total doddle too..
I doubt that it would be any more difficult to make to woa's speak to
each other bidirectionally and may in the future just do this..
Feel free to email me if you want to ask more about things.
John.
On 5/12/2008, at 1:49 PM, Andrew Lindesay wrote:
Hello Amedeo;
Somebody in New Zealand uses my JSON-RPC system to sync a local
database (of reasonable complexity) at a client's site using a pure
java-client over into a WebObjects application running in a data
centre. I think this works out fine -- maybe he can elaborate...
In any case, I agree with sentiments made here regarding SOAP!
cheers.
Don't go to SOAP hell if you have control over both apps, use JSON-
RPC or REST instead.
Or plists serialized into strings or... anything else.
...
I have to start a new project, help me choose the right way :-)
I need to create two distinct webobjects applications, one
running on my customer's server, and one running in the my webfarm.
There are also two distinct databases, one on customer and one on
my webfarm.
So, the each application access it's own database.
I need that the application on my webfarm get access to some data
in the customer's database, but I cannot connect directly to
database, I should ask the data to the application running on my
customer.
I have never done this, I have heard about SOAP ( is right ?? ),
do you know some examples ?
I'm reading this doc...
http://developer.apple.com/documentation/WebObjects/Web_Services/Introduction/chapter_2_section_1.html
___
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