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 what application server to use and where to find certain files.
File | Project Folder |
---|---|
bookfile.dat | ProgramEJB |
bookfile.idx | ProgramEJB |
book.dll | ProgramEJB > bin > x86 > Debug |
You need to associate the ESDEMO enterprise server region with your ProgramEJB project:
Before deploying your service interface, you must start the ESDEMO region where the ProgramEJB service will run.
The Enterprise Server Console Daemon is then invoked, starting the enterprise server region.
You need to generate a .dll executable file from your project to deploy with your service interface. This is necessary so that you can debug the service after generating a client.
The Output window 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 Visual Studio 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.