Could you please explain me what is the use of createEJBstubs?
WebSphere Application Server Just-In-Time (JIT) deployment feature dynamically generates the RMI-IIOP stub classes that are required for invocation of remote EJB 3.0 business interfaces.
But in some cases you need to create these stub files by yourself using createEJBstubs,
example: if your client is a Java SE application, then you have to create stubs
How is this related to deployment of ear?
createEJBstubs adds stubs to the JAR or EAR given in the command (as in the link you mentioned) so if your client project is included in Ear, you have to use createEJBstubs before deploying the Ear
Do we need to generate the stub jar and packaged along with ear before deployment?
if your client is a JAR file, there's nothing to do with EARs if your client is an EAR file, you have to run createEJBstubs with the client EAR in the path before deploying the Ear