Re: RE:Using SimpleORM in a web app
Abel Birya <[email protected]> Tue, 23 Nov 2010 17:31:58 +0300
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
--0014853d202c3d36050495b93c37 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello, Thanks for your reply. This is definitely what I have in mind. I have done = a bit of testing by trying to create some type of application level cache but 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 in on my progress. Kind regards. Abel On Mon, Nov 22, 2010 at 1:23 PM, Franck Routier <[email protected]>w= rote: > > > 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 > --0014853d202c3d36050495b93c37 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable <head> <style type=3D"text/css"> <!-- /* start of attachment style */ .ygrp-photo-title{ clear: both; font-size: smaller; height: 15px; overflow: hidden; text-align: center; width: 75px; } div.ygrp-photo{ background-position: center; background-repeat: no-repeat; background-color: white; border: 1px solid black; height: 62px; width: 62px; } div.photo-title=20 a, div.photo-title a:active, div.photo-title a:hover, div.photo-title a:visited { text-decoration: none;=20 } div.attach-table div.attach-row { clear: both; } div.attach-table div.attach-row div { float: left; /* margin: 2px;*/ } p { clear: both; padding: 15px 0 3px 0; overflow: hidden; } div.ygrp-file { width: 30px; valign: middle; } div.attach-table div.attach-row div div a { text-decoration: none; } div.attach-table div.attach-row div div span { font-weight: normal; } div.ygrp-file-title { font-weight: bold; } /* end of attachment style */ --> </style> </head> <html> <head> <style type=3D"text/css"> <!-- #ygrp-mkp { border: 1px solid #d8d8d8; font-family: Arial; margin: 10px 0; padding: 0 10px; } #ygrp-mkp hr { border: 1px solid #d8d8d8; } #ygrp-mkp #hd { color: #628c2a; font-size: 85%; font-weight: 700; line-height: 122%; margin: 10px 0; } #ygrp-mkp #ads { margin-bottom: 10px; } #ygrp-mkp .ad { padding: 0 0; } #ygrp-mkp .ad p { margin: 0; } #ygrp-mkp .ad a { color: #0000ff; text-decoration: none; } --> </style> </head> <body> Hello,<div><br></div><div>Thanks for your reply. This is definitely what I = have in mind. I have done a bit of testing by trying to create some type of= application level cache but the Dataset keeps getting destroyed and as a r= esult keeps breaking the connection. The strategy I am using is by ensuring= that the commit is synchronisedto ensure data integrity.</div> <div><br></div><div>I shall keep on trying a few other ways of caching and = will get let you in on my progress.</div><div><br></div><div>Kind regards.<= /div><div><br></div><div>Abel</div><div><br><div class=3D"gmail_quote">On M= on, Nov 22, 2010 at 1:23 PM, Franck Routier <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]">[email protected]</a>></span= > wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex;"> <div style=3D"background-color:#fff"> <span>=A0</span> <div> <div> <div> =20=20=20=20=20=20 =20=20=20=20=20=20 <p>Hello,<br> <br> if by caching capabilities, you refer to the SDataSet object, so<br> definitely yes, they are in the core of SimpleOrm3 and are there in a<br> webapp.<br> <br> I would even say that in a java webapp things are even easier than in a<br> stateful desktop app, as a request/response cycle will happen a the same<br= > thread.<br> <br> Then if you want to share a SDataSet amongst several threads to use it<br> as a kind of data cache, you can put it in some application level cache,<br= > but then be careful about what you do with it...<br> <br> Is this what you have in mind ?<br> <br> Franck<br> <br> Le dimanche 21 novembre 2010 =E0 19:45 +0300, Abel Birya a =E9crit :</p><di= v><div></div><div class=3D"h5"><br> > <br> > Hello,<br> > <br> > I am thinking of writing a simple web framework using simpleorm and I<= br> > was wondering whether the caching capabilities that are there when<br> > using it in a stateful desktop app can still be used in a web app and<= br> > if so how best they can be implemented.<br> > <br> > Kind regards.<br> > <br> > Abel B<br> > <br> > <br> > <br> > <br> > <br> > <br> <br></div></div> -- <br> Franck Routier <br> Logo Ax=E8ge<br> Ax=E8ge<br> 23,rue Saint-Simon<br> 63000 Clermont-Ferrand<br> T=E9l: +33 (0)4 63 05 95 40<br> Fax: +33 (0)4 73 70 65 29<br> Email: <a href=3D"mailto:franck.routier%40axege.com" target=3D"_blank">fran= [email protected]</a><br> <br> <p></p> </div> =20=20=20=20=20 =20=20=20=20 <div style=3D"color:#fff;min-height:0"></div> </div> =20=20 </blockquote></div><br></div> <!-- |**|begin egp html banner|**| --> <br> =20=20=20=20 =20=20=20=20 <br> <!-- |**|end egp html banner|**| --> <div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div> <!-- Start Recommendations --> <!-- End Recommendations --> <!-- |**|begin egp html banner|**| --> <img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D7360226/grpspI= d=3D1705006905/msgId=3D1988/stime=3D1290522721" width=3D"1" height=3D"1"> <= br> <!-- |**|end egp html banner|**| --> =20=20 <!-- |**|begin egp html banner|**| --> <br> <div style=3D"font-family: verdana; font-size: 77%; border-top: 1px s= olid #666; padding: 5px 0;" > Your email settings: Individual Email|Traditional <br> <a href=3D"http://groups.yahoo.com/group/SimpleORM/join;_ylc=3DX3oDMT= JmbDhnZjExBF9TAzk3NDc2NTkwBGdycElkAzczNjAyMjYEZ3Jwc3BJZAMxNzA1MDA2OTA1BHNlY= wNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyOTA1MjI3MjE-">Change settings via the Web</a= > (Yahoo! ID required) <br> Change settings via email: <a href=3D"mailto:SimpleORM-digest@yahoogr= oups.com?subject=3DEmail Delivery: Digest">Switch delivery to Daily Digest<= /a> | <a href =3D "mailto:[email protected]?subject=3D= Change Delivery Format: Fully Featured">Switch to Fully Featured</a> <br> <a href=3D"http://groups.yahoo.com/group/SimpleORM;_ylc=3DX3oDMT= JkZm5tcjIyBF9TAzk3NDc2NTkwBGdycElkAzczNjAyMjYEZ3Jwc3BJZAMxNzA1MDA2OTA1BHNlY= wNmdHIEc2xrA2hwZgRzdGltZQMxMjkwNTIyNzIx"> Visit Your Group=20 </a> | <a href=3D"http://docs.yahoo.com/info/terms/"> Yahoo! Groups Terms of Use </a> | <a href=3D"mailto:[email protected]?subject=3DUns= ubscribe"> Unsubscribe=20 </a>=20 <br> </div> <br> <!-- |**|end egp html banner|**| --> <div style=3D"color: white; clear: both;"/>__,_._,___</div> </body> </html> --0014853d202c3d36050495b93c37--