3.3. Deploying a Service

By implementing the interface, we have developed the business logic of the service. However, until this logic is deployed, it cannot be accessed. Let’s create the HelloWorldService class that will do exactly that. The first thing we need to do in the deploying class is establish connection with the e-Speak service engine. This is done using the ESConnection object. The ESConnection object uses a configuration file (specified as an argument) to set the context for connection with the e-Speak engine. This configuration file specifies appropriate connection parameters. You will notice that our configuration file, Service.prop , contains few simple entries. It contains the minimal set of connection properties.

service.prop ...

Get Web Services: A Java™ Developer’s Guide Using E-Speak now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.