Do you use a client that calls the searhBook method remotely?
For Java RMI, I think the client needs to know the IP address of the server and make connection to the server.
Refer to the Java RMI tutorial from Oracle.
Does your client inject the BookService bean?
If the client instantiate the BookService object, then it is not used as an EJB.
He's my best friend. Not yours. Mine. You can have this tiny ad: