Message: The following issue has been closed.
Resolver: Matthias Germann Date: Sun, 10 Apr 2005 8:19 AM According to the business interface desing pattern, the bean class should implement the business interface. Therefore, it is correct that the generated CMP and BMP objects implement the business interfaces. But it's a bug that the session object does not. I fixed and documented this. It's not possible to have the same business interface for remote and local because the remote business interface must declare "throws RemoteException" for every method while the local business interface is not allowed to declare "throws RemoteException" on any method. If anybody disagrees, please reopen. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1182 Here is an overview of the issue: --------------------------------------------------------------------- Key: XDT-1182 Summary: Error in CMP processing of tags remote/local-business-interface Type: Bug Status: Closed Priority: Major Resolution: FIXED Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XDoclet Components: EJB Module Fix Fors: 1.2.3 Versions: 1.2.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Johannes Correa Lopera Created: Tue, 7 Dec 2004 7:50 AM Updated: Sun, 10 Apr 2005 8:19 AM Environment: Windows 2000, Java 1.5. Description: Hi. I'm using the tags local-business-interface and remote-business-interface into a SessionBean without any problem but I tried to use both of them in a CMP bean and one of the generated CMp class has a duplicated implements clause. This is my code (only the xdoclet): /** * @ejb.bean * name="Object" * type="CMP" * schema="Object" * cmp-version="2.x" * primkey-field="objectId" * jndi-name="object.jndi" * local-jndi-name="object.local.jndi" * remote-business-interface="com.commexnet.rbac.core.Object" * local-business-interface="com.commexnet.rbac.core.Object" * view-type="both" * reentrant="True" * @ejb.persistence * table-name="Object" * * @jboss.read-ahead * strategy="on-load" * * @jboss.persistence * create-table="false" * remove-table="false" * read-time-out="5000" */ The generated class is: /* * Generated by XDoclet - Do not edit! */ package com.commexnet.rbac.ejb.core; /** * CMP layer for Object. */ public abstract class ObjectCMP extends com.commexnet.rbac.ejb.core.ObjectBean implements javax.ejb.EntityBean, com.commexnet.rbac.core.Object, com.commexnet.rbac.core.Object { ....//The rest works fine } --------------------------------------------------------------------- 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