Disabling SSL for the IBM Sales Center
This sample demonstrates disabling SSL so that the IBM Sales Center connects to the WebSphere Commerce Server using a non-SSL port. Disabling SSL is useful for instance, if you do not want to use SSL within your development environment.
Make changes to the IBM Sales Center client
In this section, you will create a new plug-in in the IBM Sales Center development environment to contain your new code. Instead of this step of this sample, you can download the completed plug-in and import it into your IBM Sales Center development environment.
- Open the IBM Sales Center development environment.
- Create
a new plug-in called
disableSSL
. - In the plug-in, leave the default dependencies and add the com.ibm.commerce.telesales.config
as a new dependency. You should have three dependencies:
org.eclipse.ui org.eclipse.core.runtime com.ibm.commerce.telesales.config
- Add an extension to the org.eclipse.ui.startup plug-in. You can
use the plug-in editor interface, or edit the plug-in.xml file directly.
The resulting code should look similar to the following:
<extension point="org.eclipse.ui.startup"> </extension>
- In the disableSSL plug-in project, navigate to the disableSSL package and open the DisableSSLPlugin.java file for editing.
- Add the following import statements:
import com.ibm.commerce.telesales.config.ConfigPlugin; import com.ibm.commerce.telesales.config.IConfigConstants; import org.eclipse.ui.IStartup;
- Modify the class signature to implement the IStartup class.
The complete class signature should look like the following:
.public class DisableSSLPlugin extends AbstractUIPlugin implements IStartup
- Add the following method at the end of the class :
public void earlyStartup() { ConfigPlugin.getPlugin().getPreferenceStore().setValue(IConfigConstants.PREF_SSL_ENABLED, false); }
Make changes to the WebSphere Commerce Server
On the WebSphere Commerce Server, you must ensure that the Enablement-BusinessContextWebServicesRouter and Telesales-BaseWebServicesRouter web modules use a non-SSL port. In this sample, VH_ instance_name will be used as the non-SSL port. By default, the non-SSL port number is 80. This step is not required if your IBM Sales Center does not connect to the WebSphere Commerce Server directly; for example if your IBM Sales Center uses a non-SSL connection to a proxy server, then uses an SSL connection between the proxy server and WebSphere Commerce.
To change the Enablement-BusinessContextWebServicesRouter and Telesales-BaseWebServicesRouter web modules ports, you will change the virtual host settings then generate a new plugin-cfg.xml file:
- Launch the WebSphere Administration Console for your profile. For more information, see the Starting and stopping quick referencetopic.
- In the WebSphere Administration Console navigate to .
- Click WC_ instance_name .
- In the Additional Properties list click Map virtual hosts for Web modules.
- Change the Virtual host name for the Enablement-BusinessContextWebServicesRouter and Telesales-BaseWebServicesRouter web modules to VH_ instance_name .
- Click OK.
- Click Save and Save again to save to your master configuration. For more information, see Mapping virtual hosts for Web modules topic.
- Regenerate the plugin-cfg.xml file:
- In the WebSphere Application Server, click .
- Select your Web Server and click Generate Plug-in.
- Restart the WC_ instance_name application, by clicking Applications > Enterprise Applications, selecting WC_ instance_name then clicking Stop then Start.
- If necessary, restart your web server to pick up the new plugin-cfg.xml file. Some web servers will automatically pick up plugin-cfg.xml file changes, depending on your settings.
Test your changes
To test your changes, launch the IBM Sales Center and connect to your WebSphere Commerce server using the non-SSL port:
- To test your changes, click .
- From the Configurations list, select Sales Center.
- In the Arguments tab, select Clear workspace data before launching.
- Click Run.
- When asked if you really want to clear the workspace data, click Yes.
- When the IBM Sales Center client opens, click .
- Click .
- Click the Connectivity button.
- In the Server field, enter the fully-qualified hostname of your WebSphere Commerce Server.
- In the HTTPS Port field, enter the port you configured on the WebSphere Commerce Server for the Enablement-BusinessContextWebServicesRouter and Telesales-BaseWebServicesRouter web modules to use non-SSL. In this sample, that port is 80.
- Click OK.
- In the logon dialog, enter a valid user name and password and click OK. You should be able to connect to your WebSphere Commerce server.
- To open the IBM Sales Center using SSL, follow the same directions as above but deselect the disableSSL plug-in in the Run dialog before opening the Sales Center client.
Deploy your changes
Deploy your changes to a production server by following instructions in Deploying customizations to the IBM Sales Center.