When you export an EJB module, or project, the contents of the project are exported into an EJB JAR file regardless of whether deployment code has been generated or not. You can use the exported server-side JAR file as the client JAR file, since it contains all of the required code from both a server-side and client-side perspective.
This process for exporting an EJB project to a JAR file is not meant to be a project sharing mechanism. If you want to share projects, see Sharing Projects.
To export an EJB project:
To deploy your EJB JAR file to an application server after you export it, you need to use the deployment tools provided by the vendor of that server.