Re: RE:Using SimpleORM in a web app

Abel Birya <[email protected]> Sun, 19 Dec 2010 21:11:34 +0300
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
Hey,
I have been working to create some application level caching. It works
but mainly on querying results. In the event that i use it when doing
inserts or updates and an error occurs (for example leaving an field
empty where it should not be null), I am unable to recover and the
error registers that the dataset has been destroyed. What could be the
cause of this program?
Kind regards. Abel.

On 11/23/10, Abel Birya <[email protected]> wrote:
> Hello,
>
> Thanks for your reply. This is definitely what I have in mind. I have don=
e
> a
> bit of testing by trying to create some type of application level cache b=
ut
> the Dataset keeps getting destroyed and as a result keeps breaking the
> connection. The strategy I am using is by ensuring that the commit is
> synchronisedto ensure data integrity.
>
> I shall keep on trying a few other ways of caching and will get let you i=
n
> on my progress.
>
> Kind regards.
>
> Abel
>
> On Mon, Nov 22, 2010 at 1:23 PM, Franck Routier
> <[email protected]>wrote:
>
>>
>>
>> Hello,
>>
>> if by caching capabilities, you refer to the SDataSet object, so
>> definitely yes, they are in the core of SimpleOrm3 and are there in a
>> webapp.
>>
>> I would even say that in a java webapp things are even easier than in a
>> stateful desktop app, as a request/response cycle will happen a the same
>> thread.
>>
>> Then if you want to share a SDataSet amongst several threads to use it
>> as a kind of data cache, you can put it in some application level cache,
>> but then be careful about what you do with it...
>>
>> Is this what you have in mind ?
>>
>> Franck
>>
>> Le dimanche 21 novembre 2010 =E0 19:45 +0300, Abel Birya a =E9crit :
>>
>> >
>> > Hello,
>> >
>> > I am thinking of writing a simple web framework using simpleorm and I
>> > was wondering whether the caching capabilities that are there when
>> > using it in a stateful desktop app can still be used in a web app and
>> > if so how best they can be implemented.
>> >
>> > Kind regards.
>> >
>> > Abel B
>> >
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> Franck Routier
>> Logo Ax=E8ge
>> Ax=E8ge
>> 23,rue Saint-Simon
>> 63000 Clermont-Ferrand
>> T=E9l: +33 (0)4 63 05 95 40
>> Fax: +33 (0)4 73 70 65 29
>> Email: [email protected] <franck.routier%40axege.com>
>>
>>=20=20
>>
>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/SimpleORM/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/SimpleORM/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected]=20
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/