Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB General  RSS feed

 
gadipe kris
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

According to the specification, every business method of the Bean class should be duplicated in the Remote interface.

Can we have the return types of these methods be different.

ex:
In Remote interface I have a method

public String hello();

Can I have a method in the Bean class as

public void hello();

Does it works out.

Thanks in advance.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36393
453
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gadipe,
No. You will get a validation error and will be unable to generate the deployed code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!