To successfully deploy a Java service interface to an enterprise server region, you need to first set some options in Enterprise Developer.
To ensure that the deployment process runs smoothly, you must set some options that tell Enterprise Developer the name of your enterprise server region, what application server to use, and where to find certain files.
File | Project Folder |
---|---|
bookfile.dat | ProgramEJB |
bookfile.idx | ProgramEJB |
book.dll | ProgramEJB > New_Configuration.bin |
Before deploying your service interface, you must start the ESDEMO region where the ProgramEJB service will run.
ESDEMO provides a default user name and password that you can customize. For this tutorial, you use the default information.
The Enterprise Server Daemon is then invoked via the Console, starting the enterprise server region.
The Console shows the progression of the deployment process. If deployment was successful, you should see a message indicating success.
If deployment ever fails, you should find a message in the output window indicating why it failed. Also, the failure message contains the path to the deployment log file. You can type the address into a browser and view the log file from there.
Now that your service interface has been deployed as a service running on the ESDEMO enterprise server, you can look at the details of the deployed service Enterprise Server Administration page.
The Enterprise Server Administration Home page appears in a window of the Eclipse IDE.
In the row showing information for the ESDEMO enterprise server, you should see that the Objects column shows the number of services that this enterprise server runs. In this case, the number of running services should be at least 9. These are the five that come standard with the ESDEMO enterprise server, plus the one service you added containing four operations. You might see more if you have deployed other services to the ESDEMO enterprise server.
In the row showing your new service, ProgramEJB, you'll notice that the Current Status column shows all four operations as Available. This means that the service is ready to be access by a client.