COMP_NAME in homes is a design fault, and I suspect (well, hope!) will go away in the next major release. See http://opensource.atlassian.com/projects/xdoclet/secure/ ViewIssue.jspa?key=XDT-202

The Local suffix is also a bug (in my opinion) which seems to have been forgotten. See http://opensource.atlassian.com/projects/xdoclet/secure/ ViewIssue.jspa?key=XDT-190

I also wish that the COMP_NAME and JNDI_NAME fields would be moved to the util object, it's easy to do in your local xdoclet sources anyway (just some things to move from one template into another), that change allows xdoclet generated homes to pass the j2ee verifier.

Speaking of the verifier, I'd also recommend applying http://opensource.atlassian.com/projects/xdoclet/secure/ ViewIssue.jspa?key=XDT-438, which fixes the rather bizarre current code in generated custom PK's to something a bit less....strange (and allows custom PK classes to pass the j2ee verifier)

On Thursday, June 5, 2003, at 07:47 PM, Bruyn, Bill wrote:

Okay, now I've gotten local interfaces generated for my simple little "Hello
World" implementation, and ejb-jar.xml looks good. Really pretty slick. A
question though, about the local home interface that was generated:


public static final String COMP_NAME="java:comp/env/ejb/PolicyLocal";
public static final String JNDI_NAME="randa/Policy";

It probably doesn't matter, but it's bugging me. What're these for, and why
did COMP_NAME inherit the {0}Local pattern (did I say that right?) even
though @ejb.interface specifies a local-class? I thought maybe it had
something to do with @ejb-util (which I also know nothing about), so I tried
to set its generate attribute to false, but no change...


My implementation class contains the following tags:

/**
 * Models an Avnet policy definition.
 *
 * @author       [EMAIL PROTECTED]
 * @version      1.0.0
 * @ejb.bean
 *   name="Policy"
 *   schema="Policy"
 *   type="CMP"
 *   cmp-version="2.x"
 *   primkey-field="policyId"
 *   view-type="local"
 *   local-jndi-name="randa/Policy"
 * @ejb.persistence
 *   table-name="Policy"
 * @ejb.pk
 *   class="java.lang.Integer"
 * @ejb.home
 *   generate="local"
 *   local-class="com.avnet.sbs.randa.cmp.PolicyHome"
 * @ejb.interface
 *   generate="local"
 *   local-class="com.avnet.sbs.randa.cmp.Policy"
 *
 */


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to