Using the HTTP Binding Component

Using Application Configuration to Configure Connectivity Parameters

The Application Configuration property allows you to configure the external connectivity parameters for an application that you have created, such as a service assembly, and without changing or rebuilding the application, deploy the same application into a different system. For example, you could take an application that is running in a test environment, and deploy it to a production environment without rebuilding the application.

From the Application Configuration property, you can specify values for a Composite Application's external connectivity parameters, which are normally defined in the WSDL service extensibility elements. You can then apply these values to a user-named endpoint Config Extension Property. The Application Configuration property editor includes fields for all of the connectivity parameters that apply to that component's binding protocol. When you enter the name of a saved Config Extension and define the connectivity parameters in the Application Configuration editor, these values override the WSDL defined connectivity attributes when your project is deployed. To change these connectivity parameters again, you simply change the values in the Application Configuration editor, then shutdown and start your Service Assembly to apply the new values.

The Application Configuration property editor allows you to create several application configurations referenced by their own user-defined names. Note that different binding component protocols will have different attributes. The HTTP binding attributes are not the same as the JMS binding attributes, and therefore, the Application Configuration property editors for each of these binding components will contain different attributes.

To change a property when the application is running, change your Application Configuration property value, then right-click your application in the Services window under Servers -> GlassFish -> JBI Service Assemblies, and click Stop in the popup menu. When you restart your project, your new settings will take effect.

The HTTP Binding Component's Application Configuration property contains one parameter only: HTTP URL Location.

ProcedureTo apply a named Config Extension to the Application Configuration

  1. In the CASA editor, specify a name for your endpoint Configuration Extension , from the endpoint's Configuration Extension property.

  2. In the Services window, go to the Binding Components directory under the JBI node, right-click the binding component used by your application, and select Properties.

    The Properties window appears.

  3. In the binding component's properties, click on the Application Configuration property ellipsis (...) button.

    The Application Configuration property editor appears.

  4. Enter the user-defined name of the Config Extension you want and define the values for the connection parameters.

  5. Once the Application Configuration values have been defined, deploy your application.