Sample web page
WebSphere® MQ File Transfer Edition Web Gateway provides a sample web page. This sample uses Web Gateway API functions to upload files, view the status of file transfers, view the contents of a file space and download files from a file space.
The sample application file name is com.ibm.wmqfte.web.samples.war.
You can find this WAR file in the install-directory/samples/web/servlet directory
of the WebSphere MQ
File Transfer Edition Server installation.
Before setting up the sample, you must have the Web Gateway application deployed and running in an application server. For instructions, see Configuring the Web Gateway.
Installing the sample
Deploy the sample application into an application server.
If you deploy the sample into WebSphere Application Server Version 7.0:- Define a context root for the sample application. For example, if you use a context root of /wmqftesamples then the sample Web page is accessible through the URI /wmqftesamples.
- You must configure the sample application with security roles and users. The sample application uses the same security realm that you defined for the Web Gateway. For more information, see Deploying the Web Gateway with WebSphere Application Server Version 7.0.
If you deploy the sample into WebSphere Application Server Community Edition:- The application uses the context root defined in the geronimo-web.xml deployment plan that is located in the Web Gateway EAR file. This context root is /wmqftesamples.
- You must configure the sample application with security roles and users. The sample application uses the same security realm that you defined for the Web Gateway. For more information, see Defining a security realm.
- Open a web browser and type in the URI of the sample, based on
the context root that you defined when deploying the sample. The URI
of the sample is host:port/context_root.Note: The value of port depends on the application server that you are using. For example, for WebSphere Application Server Version 7.0, the default port used by applications is 9080.
- Log in to the sample application using a user name and password that you configured when defining the security realm.
- If you defined a context root for the Web Gateway other than the default value of wmqfte, use the Settings section in the sample application to specify the Web Gateway context root.
- Use the sample application to upload files to the Web Gateway, view the files in your file space, download and delete files from your file space, and view the status of file transfers.