Consultor Eletrônico



Kbase P131945: How to configure a second instance of the AppServer Internet Adapter AIA?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/17/2010
Status: Verified

GOAL:

How to configure a second instance of the AppServer Internet Adapter AIA?

GOAL:

Is is possible to have two instances of AIA in the same machine?


FACT(s) (Environment):

All Supported Operating Systems
Progress 9.1x
OpenEdge 10.x
Tomcat

FIX:

The Tomcat Java Servlet Engine (JSE) includes its own Web server. This Web server should be used to test the Tomcat to AIA setup, prior to using the Apache Web server. The Tomcat Web server uses port 8080 by default, when Tomcat is started. This solution begins with the assumption that Tomcat has been install and the Tomcat home page is displayed with the following URL, http://localhost:8080.1. Define a new AIA instance in the ubroker.properties file (Aia2)
2. Create three new directories in the TOMCAT_HOME/webapps directory:
/aia
/aia/WEB-INF
/aia/WEB-INF/lib
3. Create a new file named "web.xml" in the TOMCAT_HOME/webapps/aia/WEB-INF directory.
Add the following XML to the file and substitute the path to the Progress installation for PROGRESS_HOME:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app>
<servlet>
<servlet-name>AiaName1</servlet-name>
<servlet-class>com.progress.aia.Aia</servlet-class> <init-param>
<param-name>InstallDir</param-name>
<param-value>PROGRESS_HOME</param-value>
</init-param> <init-param>
<param-name>instanceName</param-name>
<param-value>Aia1</param-value>
</init-param> <init-param>
<param-name>propertyFileName</param-name>
<param-value>PROGRESS_HOME/properties/ubroker.properties</param-value>
</init-param>
</servlet> <servlet-mapping>
<servlet-name>AiaName1</servlet-name>
<url-pattern>/AiaName1</url-pattern>
</servlet-mapping><servlet>
<servlet-name>AiaName2</servlet-name>
<servlet-class>com.progress.aia.Aia</servlet-class> <init-param>
<param-name>InstallDir</param-name>
<param-value>PROGRESS_HOME</param-value>
</init-param> <init-param>
<param-name>instanceName</param-name>
<param-value>Aia2</param-value>
</init-param> <init-param>
<param-name>propertyFileName</param-name>
<param-value>PROGRESS_HOME/properties/ubroker.properties</param-value>
</init-param>
</servlet> <servlet-mapping>
<servlet-name>AiaName2</servlet-name>
<url-pattern>/AiaName2</url-pattern>
</servlet-mapping> </web-app>
4. Copy PROGRESS_HOME/java/aia.jar into the TOMCAT_HOME/webapps/aia/WEB-INF/lib directory,

If you are running Progress Version 9.x the file name is aia.zip. Copy this file and rename the new copy of "aia.zip" to "aia.jar". 5. Connect to the AdminServer with the Progress Explorer Tool and open the AppServer Internet Adapter folder. Under the "General" tab folder makes sure the "HTTPS enabled" box is not checked if you are not using HTTPS. Click on the "Advanced Features" folder and check the box for "Internal Administrative Command" 6. Start tomcat. 7. From a local browser, test the servlet with this URL: http://localhost:8080/aia/AiaName1 The correct response is "Aia1 OK" page.8. From a local browser, test the servlet with this URL: ablelink" href="http://localhost:8080/aia/Aia">http://localhost:8080/aia/AiaName2 The correct response is "Aia2 OK" page..