Bugs item #506513, was opened at 2002-01-21 08:32 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=402704&aid=506513&group_id=31602
Category: ejbdoclet Group: None Status: Open Resolution: Invalid Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Vincent Harcq (vharcq) Summary: No create() method in home interface Initial Comment: The generated home interface lacks the create() method when changed bean type from "Stateless" to "Stateful". ---------------------------------------------------------------------- >Comment By: Andrew Stevens (stevensa) Date: 2002-01-24 05:17 Message: Logged In: YES user_id=247081 Oops, uploaded wrong version (was playing around with the tag to see if it made a difference, it *is* @ejb:... not ejb:...) ---------------------------------------------------------------------- Comment By: Andrew Stevens (stevensa) Date: 2002-01-24 05:10 Message: Logged In: YES user_id=247081 Actually, I just tested it myself and it looks like there is a bug (example test bean attached). I added some comments into the template so I could trace it through; although the <XDtEjbSession:ifNotStatelessSession> succeeds, and the <XDtMethod:forAllMethods> includes my ejbCreateWithParam method, the <XDtEjbHome:ifIsCreateMethod superclasses="false"> fails. Since the @ejb:create-method tag *is* present, perhaps there's something wrong with the superclasses="false" handling? NB I notice there's no stateful session bean in the samples, else we might have spotted the problem sooner... ---------------------------------------------------------------------- Comment By: Vincent Harcq (vharcq) Date: 2002-01-21 11:23 Message: Logged In: YES user_id=125677 This is a FAQ. Add @ejb:create-method to your stateful bean. For SLSB there is no need because there is only one no-arg ejbCreate() and XDoclet is clever enough to add it to home. For SFSB and entity beans you have to add this tag to tell xdoclet wich ejbCreate... are really create method that needs to be in home. You could have a ejbCreate() that you don't want in the home so let xdolcet make a guess is wrong. And there is also ejbCreateSomething() in EJB 2.0. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=402704&aid=506513&group_id=31602 _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
