Hi all, Thanks for your comments. I've explained a little bit about doStart(), doFail() and doStop() on this page ( http://cwiki.apache.org/GMOxDOC22/developing-and-deploying-a-geronimo-gbean.html), but might not be sufficient. Any ideas for improvement?
And we have drafted a section named Referencing another GBean<http://cwiki.apache.org/GMOxDOC22/developing-and-deploying-a-geronimo-gbean.html#DevelopingandDeployingaGeronimoGBean-ReferencinganotherGBean> on this page to describe how to use *Reference*, and gives an example. Best Regards, Ying Tang 2009/3/20 David Jencks <david_jen...@yahoo.com> > > On Mar 20, 2009, at 2:07 AM, Radim Kolar wrote: > > >> 1. GBean Lifecycle section >>> what is doFail() method expected to do? Shutdown gbean and make it sure >>> that calling doStart() will do nothing? >>> >> >> Agreed to add description of doFail(). What do you mean "calling >> doStart() >> will do nothing ?" ? >> something like this: >> doStart() -> running >> doFail() -> stop and mark it as failed >> doStart() -> dont start it because it is marked as failed >> > > I think you have to call stop after fail before you call start. > > Also note that after fail or stop the actual gbean object is discarded and > if you call start again the framework will create a whole new object for > you. > > In practice no one has ever implemented doFail. > > thanks > david jencks > > > >> -- >> View this message in context: >> http://www.nabble.com/GBean-documentation-improvement-tp22607392s134p22616649.html >> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. >> >> >