Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Call EJB method

 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for my English.

I have EJB:



When I call doSale method remotely, I get error on server:



Other methods in this class works successfully.
Please help. Thanks You!

 
Jorge Montes
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The exception cause is: wrong number of arguments. You are calling the method doSale(SaleModel sale) with the wrong arguments. How are you calling the method?
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ctrl.doSale(sale);

sale is instance of SaleModel.
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Meanwhile, over on SO:

http://stackoverflow.com/questions/18827077/call-ejb-method
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic