Hi David, Are
you using EJB 1.1 or EJB2.0, home methods don’t exist in EJB1.1. If
its EJB2.0 then…You say on the one hand that you are using an entity ‘home’
method to retrieve the data that has just been entered in the previous
transaction, but on the other hand you say that the entity bean you ‘created’
does not reflect the data in the DB. Calling an entity home method does not
imply the creation of an entity bean only the temporary use of a bean from the free
pool. If your home method is only accessing the variables of the entity you
cannot depend on the synchronisation with the DB which happens when creating
and accessing a bean directly. >9.5.4
home methods >An entity
bean’s remote home interface may define one or more home methods. Home
methods are >methods that
the bean provider supplies for business logic that is not specific
to an entity bean instance. regards DGA -----Original Message----- We are currently using a stateless session bean to perform a
direct update of a table in the database and then using the home method of an
entity bean which is mapped over the same table to retrieve the records that
have just been updated. Because both transactions are managed by the
application server, it should know that the entity bean needs to
refresh from the database because some data has changed. However the result is that the direct update is committing
the change to the database as you would expect, but the entity
bean does not reflect that change when it is created. Do we need
to force the entity bean to refresh from the database? We are using 1.5.4 Orion Application Server, EJB 1.1
and MSSQL 7 database. ta, - dave |
- Java: Entity Beans not synchronising with database Kumar, David
- Re: Entity Beans not synchronising with database Dmitri Colebatch
- Re: Java: Entity Beans not synchronising with data... Duncan Alexander
- Re: Java: Entity Beans not synchronising with data... Kumar, David
- Re: Java: Entity Beans not synchronising with ... Duncan Alexander
- Re: Java: Entity Beans not synchronising w... Juan Pablo Lorandi
- Re: Java: Entity Beans not synchronising with data... Laurel Neustadter