Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Remote methods

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Please clarify my doubt.
If i am having 2 business methods in remote interface of EJb and i am implementing(definition) only one in the bean class but i am not getting any error.

Please tell me the relation between remote interface and bean class.For my understanding it should have both method in the bean class.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB3 spec (section 4.6.2) says:


The class must implement the bean�s business interface(s) or the methods of the bean�s business interface(s), if any.



So your bean class should implement both the methods in the interface.


i am implementing(definition) only one in the bean class but i am not getting any error.


Where are you checking the error for? Are you looking in a IDE or are you checking during deployment of the beans on the server? And does your bean class "implement" the business interface or are you using annotations or deployment descriptor to specify the business interface for the bean?
[ November 05, 2008: Message edited by: Jaikiran Pai ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic