Message:

  A new issue has been created in JIRA.

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

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1359
    Summary: Incorrect creation of ejb-ref for Local EJB Reference on sun 
application server configuration file
       Type: Bug

     Status: Open
   Priority: Blocker

 Original Estimate: 1 hour
 Time Spent: Unknown
  Remaining: 1 hour

    Project: XDoclet
 Components: 
             SunONE Module
   Versions:
             1.2.3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Sergio Moretto

    Created: Sun, 24 Apr 2005 4:32 AM
    Updated: Sun, 24 Apr 2005 4:32 AM
Environment: Java(TM) 2 Runtime Environment, Standard Edition (build 
1.4.2_07-b05)
Sun Java System Application Server Platform Edition 8.1
Linux Gentoo 2.6.11

Description:
When a EJB Local Reference is create inside an EJB, xdoclet module for sunone 
generete and incorrect generate a "ejb-ref" (remote) inside sun-ejb-jar.xml.

Inside a "ABean.java":

 @ejb.ejb-ref ejb-name="B" view-type="local"

Solved appling the following patch:

(conditional add of ejb-ref only if not local):

modules/sun/src/xdoclet/modules/sun/sunone/ejb/resources/sun-ejb-jar_xml.xdt

...

<XDtEjbRef:forAllEjbRefs>
<XDtEjbRef:ifNotLocalEjb>
  <ejb-ref>
    <ejb-ref-name><XDtEjbRef:ejbRefName/></ejb-ref-name>
    <jndi-name><XDtEjbRef:ejbRefJndiName/></jndi-name>
  </ejb-ref>
</XDtEjbRef:ifNotLocalEjb>
</XDtEjbRef:forAllEjbRefs>

...

43a44
> <XDtEjbRef:ifNotLocalEjb>
47a49
> </XDtEjbRef:ifNotLocalEjb>



---------------------------------------------------------------------
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



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to