Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
- Subject: Re: EOEditingContext and WO Services (was Subclassing EOEditingContext)
- From: Ricardo Strausz <email@hidden>
- Date: Wed, 4 Jul 2007 12:31:20 -0500
Hola Chuck!
On Jul 4, 2007, at 11:30, Chuck Hill wrote:
On Jul 4, 2007, at 9:12 AM, Ricardo Strausz wrote:
To have full access to the model (to the database) trough a service...
I am thinking in an intranet, where security is not issue... well it
is, but it can be handled.
This may be the simplest way to connect a desktop app to a database...
I know, it has its problems (e.g., most of the logic goes on the
client) and many EOF functionality is lost with this approach... but
it is just a first try...
And all the clients share a single editing context?
Each process instantiates its own editing context, they just shares the
same model. This leads to one of my main problems; namely, uniqueing
and faulting (is this the correct spelling?)... may be they should
share also a coordinator, but this I will decide later...
Do you have another suggestion?
I'd keep business logic on the server and move display and a layer of
validation to the client. The solution to this is much more complex
than exposing a single editing context as a web service.
Sure, the problem is much more complex... this is just a first
approach... for the moment I just want to have basic functionality
exposed to the client (like fetch and save).
Dino
Chuck
On Jul 4, 2007, at 10:15, Chuck Hill wrote:
Why would you want to expose an editing context through a web
service? That seems like the wrong thing to even _want_ to do.
Chuck
On Jul 4, 2007, at 8:02 AM, Ricardo Strausz wrote:
Hola!
Apparently, it is not trivial (at least not easy) to publish an
EOEditingContex trough a web service (see below), nor a subclass of
it, so i decided to do so by "wrapping" such an object into one of
mine...
it works, but it is more tedious since I have to "bypass" each used
method...
If some one knows a better approach, I am looking forward to here
about...
Gracias,
Dino
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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