• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Error defining a "remove" method to home interface for CMP entity bean.

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I'm trying to define a "remove(Object primarykey)" method in the local home interface for a CMP entity bean. This is discussed on page 97 of the WSAD EJB Developer's Guide redbook.
However, when I add the following definition to the Local Home interface for the entity bean:
public void remove(Object primarykey) throws RemoveException;
I get this diagnostic message from WSAD 5.1:
CHKJ2464I: This method name must not start with "remove" (EJB 2.0: 9.5.4, 10.6.10).
In summary, I want to add a "remove(Object primarykey)" method to the home interface for a CMP entity bean, but WSAD doesn't like the name "remove".
Can someone clear up my confusion? Many thanks.
 
Cliff Edwards
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please disregard this question. The functionality I was trying to build is already part of the base interface.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic