A client must include stub classes when you start a remote EJB bean that is hosted on WebSphere Application Server. In some cases, if the client is WebSphere Application Server, the product automatically generates the correct stub classes:
EJBHome
and EJBObject interfaces, then the client must include stub
classes on its classpath. If the EJB is hosted on WebSphere
Application Server traditional, you can copy the EJB client JAR file
from the application in the EAR file after it is processed by the ejbdeploy
command. If the EJB is hosted on Liberty,
you must use the rmic program that is included
with your Java 8 software development kit (SDK) from the WebSphere Application Server
traditional client to generate the stub classes for the target EJB bean,
and then you must include the stub classes with the client.
For more information, see Using Enterprise JavaBeans (EJB) with remote interfaces on Liberty.