Doug Tanner wrote:

Gwyn,

The ActionFrameEJB.java file contains the EJBCreate() method and its
generated file ActionFrameHome.java contains the create() method, but of
all our EJBs these 2 files are the only ones that have the create
methods.  Can you not have an EJB without a create method if you want
another EJB, i.e. our ActionFrame to create any and all EJBs needed?
If I've understood correctly, no, but I'm probably abusing my lurker status here and talking nonsense. The container is responsible for creating the EJB instances, you cannot instantiate the beans yourself (you're bypassing all the container mechanisms to instrument the EJB). Unless you're talking about the ActionFrameEJB looking up the home via JNDI and creating the EJB's via that. Again if I understand the situation correctly, your ActionFrameEJB could use a ServiceLocator object to lookup the EJB home interfaces you want and create the session beans via that, but they'll still need (as dictated by the spec) the ejbCreate()/create() methods to perform any initialization you want. I haven't used XDoclet in a while but if you're not happy putting that method in all of your SLSBs then maybe a base class with the markup (@ejb-create?) might do that trick with a placeholder ejbCreate() method (that does nothing, if thats what you're after).

Cheers
Joe



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to