The following comment has been added to this issue:

     Author: Michael Kopp
    Created: Mon, 7 Feb 2005 12:40 AM
       Body:
Well kind of. My problem is not that the COMP_NAME does not have the Local 
suffix, but that the generated code and the generated DD are not consistent. 
The COMP_NAME is useless that way.

So in the end you are right it comes down to the last comment in XDT-190. It 
should be self-consistent. If the COMP_NAME lacks the Local suffix, so should 
the ref-name.
---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1260?page=comments#action_15909

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1260

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1260
    Summary: Inconsistency between DD and HomeInterface
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Michael Kopp

    Created: Wed, 2 Feb 2005 7:49 AM
    Updated: Mon, 7 Feb 2005 12:40 AM

Description:
The two differ in the way they generate the ref-name/comp-name.

DeploymentDescriptor in an ejb-ref (EjbTagsHandler.java): 
ejbRefName = prefixWithEjbSlash(getEjbNameFor(getCurrentClass()));

String type = getCurrentClassTag().getAttributeValue("view-type");

if (type != null) {
 if (type.equals("local") && isLocalEjb(getCurrentClass()) && 
isRemoteEjb(getCurrentClass())) {
    ejbRefName = ejbRefName + LOCAL_SUFFIX;
 }
 else if (type.equals(SERVICE_ENDPOINT) && 
isServiceEndpointEjb(getCurrentClass())) {
    ejbRefName = ejbRefName + SERVICE_ENDPOINT_SUFFIX;
 }
}

This means that if the view-type is NOT both for the complete ejb, the ref-name 
does not contain the LOCAL_SUFFIX.

HomeInterface (HomeTagsHandler.java):

public static String getCompNameFor(XClass clazz, String type)
{
 String compName = getEjbNameFor(clazz).replace('.', '/');

 if (type.equals("local")) {
  compName = compName + LOCAL_SUFFIX;
 }

 return compName;
}

This one does not care.

The problem is that I have an EJB with view-type local and therefore cannot use 
the Util class to do the lookup. the Util class uses <comp-name>Local and the 
descriptor was generated to <comp-name> only.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to