Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Wed, 2 Feb 2005 7:49 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