It's not a secret anymore!*
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
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: 18
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: 12
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: 18

ctrl.doSale(sale);

sale is instance of SaleModel.
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5

Meanwhile, over on SO:

http://stackoverflow.com/questions/18827077/call-ejb-method
 
 
subject: Call EJB method
 
Similar Threads
ejb error
Loading BusinessDelegates in Servlet Context?
error delploying ear file on JBOSS 3.0.8
EJB Deployment descriptor problem
Jboss Error