> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rickard �berg
> Sent: Sunday, October 08, 2000 1:46 AM
> To: jBoss
> Subject: Re: [jBoss-User] Possible BUG - ejbStore getting called too
> often?
>
>
> Hey
>
> [EMAIL PROTECTED] wrote:
> > For testing, I have a JSP that calls a findAll method on a CMP entity
> > bean. (This will later be moved to a facade pattern for performance)
> > As each object is iterated through, a 'getBulkAccessor' method is
> > executed on the entity (it puts together a 'scratchpad' class to hand
> > the variables back to the webpage). The JSP then prints the contents
> > of the bulk accessor class. To track edits in the entities, I have
> > added code to ejbStore that updates a 'lastEdited' field with a
> > java.sql.Timestamp. I've noticed that everytime I run this page, that
> > ejbStore is getting called (I tested by having it print out to the
> > conole whenever it was called), thus the database is getting updated
> > everytime I attempt to list the contents. Can this possibly be the
> > correct behavior?
>
> I had coded special treatment of "get*" methods before which didn't call
> store. Some people thought it was unpure, so I removed it :-) Perhaps it
> should be put back but with a flag or something. Oh, and we need to add
> isModified() support, which would also fix this.
+1
we already have the stuff in place and I was ok when I refactored that piece
of code (was obscure ;-).
forget unpure, ease of use and speed is good... make sure it is documented
though... put this in jbossweb *please*
marc
>
> /Rickard
>
> --
> Rickard �berg
>
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]