Hi,
I deployed an entity bean in weblogic 4.5.1 and the same enity bean i deployed on other machine where i had weblogic5.1 installed...After deploying i had printed the events that take plce..
For weblogic5.1 i got the output as
In setEntityContext()
In ejbCreate()
EJBObject null
Primary Key null
In ejbPostCreate()
EJBObject EJBObject: '-11268355', home: 'Cabin.CabinHome', ctx: '-9171203', pk:'com.titan.cabin.CabinPK@3fd'
Primary Key com.titan.cabin.CabinPK@3fd
ejbLoad called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
In setName()
ejbStore called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
ejbLoad called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
In setDeckLevel()
ejbStore called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
ejbLoad called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
In setShip()
ejbStore called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
ejbLoad called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
In setBedCount
ejbStore called.....at Tue Jan 02 14:18:38 GMT+05:30 2001
Firstly i want o know
1).why is ejbLoad called before all the setmethods..
2).Even if i do any get method in my bean i first get ejbLoad and ejbStore..
Can anyone tell why does it do so.
whereas the o/p which i got on weblogic 4.5.1 didnt show me ejbLoad before any set methods ,and surprisingly neither before the getmethod..it showed me ejbStore for all the set and get method and then it called the passivate method...why did the bean passivated so soon.
Can anyone tell me why there is a diffrence like this..
Thanks in advance
Rinku
-
EJB LOAD AND EJB STORE (1 messages)
- Posted by: Goprinks R
- Posted on: January 18 2001 01:59 EST
Threaded Messages (1)
- EJB LOAD AND EJB STORE by ARUNACHALAM KANAGARAJ on January 19 2001 02:00 EST
-
EJB LOAD AND EJB STORE[ Go to top ]
- Posted by: ARUNACHALAM KANAGARAJ
- Posted on: January 19 2001 02:00 EST
- in response to Goprinks R
Hi ,
If the Ejb container need to synchronize the instance variables of an entity bean when u call any bussiness method or setter/getter method i fill first refreshes the value (instance variable values) from the table field values by calling ejbLoad method ..then if u r process affects any data it will write using ejbStore..
this is the pattern in weblogic 5.1...but i dont know about the version 4..
from arun