Hi, I was wondering if anyone can give me any idea why ejbRemove would fail to work.
I have a small application which I've just migrated from JBoss3.0.0 to JBoss3.0.2 - everything works fine, except for deleting an entity - ejbRemove() executes without complaint, however the entity is not deleted from the database. I've turned tracing on and get absolutely no output in the section where ejbRemove is called (see the console output below) - as all other database related calls show the SQL that is being executed, I suspect that the container isn't implementing ejbRemove() for me - does anyone have any suggestions as to why this would happen ? I've defined the ejbRemove method in the bean, and the method that calls it has a transaction defined (transaction type "Required"). I'm running JBoss3.0.2, Xdoclet 1.1.2, JDK1.4.0 on Windows XP - this behaviour occurs with both Oracle9i and Hypersonic SQL. Any suggestions would be greatly appreciated, as I'm completely confused as to what is happening... Console output : 17:18:48,562 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: start 17:18:48,562 DEBUG [CommonDelegate] CommonDelegate: constructor: getting commonManagerHome 17:18:48,562 DEBUG [CommonDelegate] CommonDelegate: constructor: getting finderHome 17:18:48,562 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: deleting address : 96 17:18:48,562 DEBUG [CommonManagerBean] CommonManagerBean: deleteAddress: start 17:18:48,577 INFO [LocalTxConnectionManager] getManagedConnection returning unassociated connection 17:18:48,577 INFO [LocalTxConnectionManager$LocalConnectionEventListener] enlisting currenttx: TransactionImpl:XidImpl [FormatId=257, GlobalId=nrma-drspsvj3cv/ /34, BranchQual=], cel: org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne ctionEventListener@4aa2db 17:18:48,577 DEBUG [findByPrimaryKey] Executing SQL: SELECT id FROM ADDRESS WHERE id=? 17:18:48,593 INFO [LocalTxConnectionManager$LocalConnectionEventListener] enlisting currenttx: TransactionImpl:XidImpl [FormatId=257, GlobalId=nrma-drspsvj3cv//34, BranchQual=], cel: org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConne ctionEventListener@4aa2db 17:18:48,593 DEBUG [common/Address] Executing SQL: SELECT propertyName, propertyNumber, street, postcode, city, region, creationDate, modificationDate, version FROM ADDRESS WHERE (id=?) 17:18:48,593 DEBUG [CommonManagerBean] CommonManagerBean: deleteAddress: calling delete for address : 96 17:18:48,609 DEBUG [AddressBean] AddressBean : delete: start 17:18:48,609 DEBUG [AddressBean] AddressBean : delete: calling this.ejbRemove for 96 17:18:48,609 DEBUG [AddressBean] AddressBean : ejbRemove: called 17:18:48,609 DEBUG [AddressBean] AddressBean : delete: end 17:18:48,609 DEBUG [CommonManagerBean] CommonManagerBean: deleteAddress: complete 17:18:48,609 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: getting dispatcher for JSP page 17:18:48,609 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: forwarding to JSP page 17:18:48,624 DEBUG [DeleteAddressServlet] DeleteAddressServlet: service: end Relevant snippets from AddressBean : /** * Deletes this entity and any dependent objects. * * @ejb:interface-method view-type="both" * @ejb:transaction type="Required" */ public void delete() throws RemoveException { debug("delete: start "); // delete entity debug("delete: calling this.ejbRemove for " + getId()); this.ejbRemove(); debug("delete: end "); } public void ejbRemove() throws javax.ejb.RemoveException { debug("ejbRemove: called"); } ------------------------------------------------------- This SF.NET email is sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user