This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Call EJB method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Call EJB method" Watch "Call EJB method" New topic
Author

Call EJB method

Andris Sigs
Greenhorn

Joined: Sep 16, 2013
Posts: 19
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

Joined: Mar 03, 2012
Posts: 14
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

Joined: Sep 16, 2013
Posts: 19

ctrl.doSale(sale);

sale is instance of SaleModel.
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1051
    
    5

Meanwhile, over on SO:

http://stackoverflow.com/questions/18827077/call-ejb-method
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Call EJB method
 
It's not a secret anymore!