Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?key=XDT-759


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-759
    Summary: Websphere EJBLocalRef/EJBRef problem
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             IBM Module
   Versions:
             1.2 Beta 3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Bertrand Donnet

    Created: Thu, 8 Jan 2004 1:13 AM
    Updated: Thu, 8 Jan 2004 1:13 AM
Environment: Windows 2000 SP3 + Lomboz 3M6 + Eclipse 3M6 + Sun SDK 1.4.2_03

Description:
In ejb-jar.xml, a SessionBean is declared with ejb-local-refs to another EJB. The id 
is declared as below :

   ...
   <ejb-local-ref id="EJBLocalRef_1">
        <ejb-ref-name>ejb/User</ejb-ref-name>
        ...
        <ejb-link>User</ejb-link>
   </ejb-local-ref> 
   ...

Unfortunately, in ibm-ejb-jar-bnd.xml the word "local" is not inserted to link it 
properly to ejb-jar.xml

   <ejbRefBindings xmi:id="EJBRefBnd_1" jndiName="UserBeanLocal">
        <bindingEjbRef href="META-INF/ejb-jar.xml#EJBRef_1"/>
   </ejbRefBindings>

I dont have the patch but i guess that the "forAllEjbRefs" parts in 
ibm-ejb-jar-bnd_xmi.xdt should handle different id prefixes for each value of the 
view-type tag.

To me, it should look something like this (sorry don't have CVS installed):

         <XDtEjbRef:forAllEjbRefs>
                <XDtClass:ifDoesntHaveClassTag tagName="ejb:ejb-ref" 
paramName="view-type">
                        <ejbRefBindings xmi:<XDtId:prefixedId prefix="EJBRefBnd"/> 
jndiName="<XDtEjbRef:ejbRefJndiName/>">
                        <bindingEjbRef href="META-INF/ejb-jar.xml#<XDtId:prefixedId 
prefix='EJBRef' wrapInIdEquals='false'/>"/>
                        </ejbRefBindings>
                </XDtClass:ifDoesntHaveClassTag>
                <XDtClass:ifHasClassTag tagName="ejb:ejb-ref" paramName="view-type">
                <XDtClass:ifClassTagValueEquals tagName="ejb:ejb-ref" 
paramName="view-type" value="remote">
                                <ejbRefBindings xmi:<XDtId:prefixedId 
prefix="EJBRefBnd"/> jndiName="<XDtEjbRef:ejbRefJndiName/>">
                        <bindingEjbRef href="META-INF/ejb-jar.xml#<XDtId:prefixedId 
prefix='EJBRef' wrapInIdEquals='false'/>"/>
                                </ejbRefBindings>
                        </XDtClass:ifClassTagValueEquals>
                        <XDtClass:ifClassTagValueEquals tagName="ejb:ejb-ref" 
paramName="view-type" value="local">
                                <ejbRefBindings xmi:<XDtId:prefixedId 
prefix="EJBRefBnd"/> jndiName="<XDtEjbRef:ejbRefJndiName/>">
                        <bindingEjbRef href="META-INF/ejb-jar.xml#<XDtId:prefixedId 
prefix='EJBLocalRef' wrapInIdEquals='false'/>"/>
                                </ejbRefBindings>
                        </XDtClass:ifClassTagValueEquals>
        </XDtClass:ifHasClassTag>
        </XDtEjbRef:forAllEjbRefs>



---------------------------------------------------------------------
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: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to