This content has been marked as final.
Show 5 replies
-
1. Re: Why an ejbLoad() call for each get* method?
dannyb23 Oct 27, 2004 4:16 PM (in response to ricardovm)You probably need to update to commit option A etc...
in the default commit option, you application server does not assume he is the only one touching the database therefore with every "get" you perform your app server refreshes itself from the database in case anyone else updated the database. -
2. Re: Why an ejbLoad() call for each get* method?
ricardovm Oct 27, 2004 4:36 PM (in response to ricardovm)"dannyb23" wrote:
You probably need to update to commit option A etc...
in the default commit option, you application server does not assume he is the only one touching the database therefore with every "get" you perform your app server refreshes itself from the database in case anyone else updated the database.
How do I do this in JBoss?
Thank you,
Ricardo -
3. Re: Why an ejbLoad() call for each get* method?
laliluna Nov 2, 2004 6:01 PM (in response to ricardovm)First I have a different proposal. Use a ValueObject design pattern instead of calling all the getters. This is only one getter and you get a class representing your entity class. Change the class and send it back.
You can find the commit Options in
jboss-3.2.5\server\default\conf\standardjboss.xml
Kind Regards
Sebastian -
4. Re: Why an ejbLoad() call for each get* method?
schmidts Nov 3, 2004 6:18 PM (in response to ricardovm)"ricardovm" wrote:
...
ctx.getUserTransaction().begin();
TestLocal t = home.findByPrimaryKey(id);
..."LaLiLuna" wrote:
First I have a different proposal. Use a ValueObject design pattern instead of calling all the getters. This is only one getter and you get a class representing your entity class. Change the class and send it back.
ricardovm's code seems to access the entity bean by its local interface.
guess, the value object design pattern won't help. -
5. Re: Why an ejbLoad() call for each get* method?
jaime Nov 15, 2004 2:03 PM (in response to ricardovm)A Session Facade + Value Object design patterns solves this problem
JaimeS