Editing the ejb-j2ee-engine.xml
Use this procedure to edit the ejb-j2ee-engine.xml deployment descriptor.
...
1. From the META-INF folder of the HelloJobProject, open the ejb-j2ee-engine.xml.
2. Update the file as shown in the sample below.
You have to specify JobQueue as the destination name, and JobQueueFactory as the connection factory name as shown in the code sample below.

<?xml version="1.0" encoding="UTF-8"?> <ejb-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <enterprise-beans> <enterprise-bean> <ejb-name>HelloJobBean</ejb-name> <jndi-name> HelloJobBean </jndi-name> <message-props> <destination-name>JobQueue</destination-name> <connection-factory-name>JobQueueFactory</connection-factory-name> </message-props> </enterprise-bean> </enterprise-beans> </ejb-j2ee-engine> |
3. Save the file.
Creating and Editing the job-definition.xml