Usually you don't do anything. It's just there as a 'hook' in case you need to do something after your bean has been completely created (including the row in the database, for CMP entities). An example might be a CMP entity that needs to create dependent objects whose tables have RI references to the table backing the CMP entity. -danch Steve Zhang wrote: > > hi: > I am curiouse about why we should use ejbPostCreate(..). I saw some > exampels, but I dont know how to use that function.. > any one can help me? > > -----Original Message----- > From: danch [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 25, 2001 8:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] BMP ans ejbStore > > [EMAIL PROTECTED] wrote: > > > > Danch wrote: > > >The container doesn't know that your getter doesn't have side effects > > >that modify data. > > > > How common is it for a getter to modify data? It seems like this should > not be > > the default behavior. > > The container doesn't distinguish a getter from any other method. This > is the way the spec is written. > > > Maybe there should be a parameter in the <container-configuration> section > of > > the jboss.xml file that turns this calling of ejbStore on and off. That > way you > > could control it on a bean by bean basis, and improve the overall > efficiency of > > the entity beans. > > Or implement 'isModified' on your beans, which will also work in > WebLogic. > Confidential e-mail for addressee only. Access to this e-mail by anyone > else is unauthorized. > If you have received this message in error, please notify the sender > immediately by reply e-mail > and destroy the original communication. > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
