Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1456 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1456 Summary: jboss.ejb-ref-jndi doesn't work with method-level ejb.ejb-external-ref Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: JBoss Module Versions: 1.2.3 Assignee: xdoclet-devel (Use for new issues) Reporter: Mikko Hämäläinen Created: Tue, 5 Jul 2005 7:20 AM Updated: Tue, 5 Jul 2005 7:20 AM Environment: Windows XP, J2SDK 1.4.2_08, JBoss 4.0.2, xdoclet 1.2.3, ant 1.6.2 Description: I'm trying to use method-level @ejb.ejb.ejb-external-ref tag (without link-attribute) to generate code for accessing session beans in other ejb-jar. The ejb.external-ref tag correctly generates the code and an entry into ejb-jar.xml with session and deployment-descriptor -tasks. The problem is that the jboss-task doesn't generate the required ejb-ref element into jboss.xml for the session bean. I've tried the jboss.ejb-ref-jndi tag on both class and method level with no success (though in XDoclet documentation only method level is suggested). When I use class level tags (both ejb and jboss tags must be on class level in order to jboss tag to work), the jboss.xml get's generated nicely, but that's not enough now. This is how i'd expect it to work (relevant code snippets): ---MySessionBean.java--- public abstract class MySessionBean implements SessionBean { /** * @ejb.ejb-external-ref * ref-name="ejb/UserSession" * type="Session" * view-type="remote" * business="other.package.UserSession" * home="other.package.UserSessionHome" * @jboss.ejb-ref-jndi ref-name="UserSession" jndi-name="UserSession" */ protected abstract UserSessionLocal getUserSession(); } ---MySessionBean.java--- ---ejb-jar.xml (generated)--- <session > <ejb-name>MySession</ejb-name> ... <ejb-ref > <ejb-ref-name>ejb/UserSession</ejb-ref-name> <ejb-ref-type>Session</ejb-ref-type> <home>other.package.UserSessionHome</home> <remote>other.package.UserSession</remote> </ejb-ref> ... ---ejb-jar.xml--- ---jboss.xml (generated)--- <session> <ejb-name>MySession</ejb-name> ... <ejb-ref> <ejb-ref-name>ejb/UserSession</ejb-ref-name> <jndi-name>UserSession</jndi-name> </ejb-ref> ... </session> ---jboss.xml--- --------------------------------------------------------------------- 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.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel