What's a "read-only" bean?

jim

----- Original Message -----
From: "Rickard �berg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 26, 2000 8:39 AM
Subject: Re: Read-only Bean


On Wed, 26 Jul 2000 20:53:15 +0800, Albert <[EMAIL PROTECTED]>
wrote:
>        I've written a read-only entity bean which return the item
description by
>submitting the item code.  Data was stored in Oracle database.  It worked
>fine except that when I deleted a record from database, I could still get
it
>from bean.  Why??  And how can I fix it??  Thanx in advance.

The basic problem seem to be that you are using a read-only entity bean
to map data which is not read-only. If it is not read-only, which your
description shows, then don't use a read-only entity bean.

If possible, you could set a time-out on your read-only entity bean so
that the container periodically checks if the data has been updated
behind the scenes.

/Rickard

--
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to