Win a copy of Fixing your Scrum this week in the Agile forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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.
 
This tiny ad is suggesting that maybe she should go play in traffic.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic