You need to assemble the source files that you have developed in the UtilCallbackproject into a JAR file. Then, this JAR file is assembled into an EAR file into an Enterprise Application project.
Since the UtilCallback bean is a simple one and does not reference any other beans or resources, you can skip the editing of the deployment descriptors. The default settings describing the bean that the Developer Studio generates are sufficient, so you can proceed with building the JAR file:
...
1. From the context menu for the UtilCallback project choose Build Ejb.jar File. This generates the UtilCallback.jar file.
2. Create the Enterprise Application project:
...
a. Choose File → New → Project from the main menu of the Developer Studio to access the wizard. Then choose J2EE → Enterprise Application Project and then choose Next to give it a name.
b. Enter CallbackApplication as the name of the project in the Project name field on the next screen. Then choose Next to add the EJB Module project that this application project references.
c. From the Referenced Projects list on the next screen of the wizard, select UtilCallback and then choose Finish.
d. Again, the simplicity of the application structure does not require you to edit any of its deployment descriptors. You can go on and build the EAR file itself.
e. From the context menu for the CallbackApplication project, choose Build EAR File:
At the end of this procedure, you have the CallbackApplication packaged in an EAR file and ready to be deployed on the J2EE Engine.