The Autonomous REST Connector includes the Autonomous REST Composer. The Composer is a GUI tool that enables users to generate and edit Model files. After Branding the Autonomous REST Composer, you may deploy the driver as a servlet in a SaaS application. A servlet deployment offers a streamlined, browser-based integration for enhancing worflows associated with developing Model files and connecting to REST data.

The following steps demonstrate how to deploy the Autonomous REST Connector in a SaaS environment as an Apache Tomcat servlet.

  1. Create a deployment descriptor file named web.xml with the following content:
    
    <web-app version="4.0">
      <servlet>
        <servlet-name>ARCDriverServlet</servlet-name>
        <servlet-class>com.ddtek.jdbc.autorest.portal.impl.config.DriverServlet
        </servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>ARCDriverServlet</servlet-name>
        <url-pattern>/</url-pattern>
      </servlet-mapping>
    </web-app>
    
  2. Build a WAR file with the following directory structure:
    
    WEB-INF/
    ├── web.xml
    └── lib/
        └── autorest-branded.jar
    
  3. From the directory containing WEB-INF, run the following command:
    
    jar -cvf autorest-branded.war WEB-INF
    
  4. Deploy the WAR file to Apache Tomcat using the following command:
    Note: This example uses a Docker container to run Tomcat, but you may use any standard Tomcat installation.
    
    docker run --name TomcatAutorestContainer \
      -p 8080:8080 \
      -v "%CD%\autorest-branded.war:/usr/local/tomcat/webapps/ROOT.war" \
      tomcat:9.0
    
  5. View the Composer by opening the browser http://your-server:8080/arc.html
  6. Optionally, enable logging by editing conf/logging.properties in Apache Tomcat:
    
    com.ddtek.jdbc.autorest.portal.impl.config.DriverServlet.level = FINE
    

Result:

The Autonomous REST Connector with a branded Composer is hosted as a web application from the servlet container, and end users may access the Composer from a web browser to create and edit Model files.