previous next trail start tutorial home feedback openwings.org

Running the Secure HelloWorld Demo

In this lesson, we run the secure version of the Openwings HelloWorld demo. In the original demonstration, the HelloWorldProvider component provides the com.gd.openwings.demo.helloworld.synchronous.HelloWorldServiceSync service using a basic Java RMI connector. The HelloWorldUser component uses the service provided by the HelloWorldProvider and makes calls on the service, displaying the results in a window.

In this version of the demonstration, the same HelloWorldUser component is reused, but we introduce a new provider called "HelloWorldProviderSecure". This demo component is also configured to provide the HelloWorldServiceSync service, but it does so using a secure RMI GSS connector.

Follow the steps outlined in the Getting Started tutorial. That trail describes how to install the components for the synchronous HelloWorld demonstration, including HelloWorldServiceSync and HelloWorldUser. The only difference is that you should install and run the HelloWorldProviderSecure component instead of the HelloWorldProvider component.

When you run the demonstration, you should see no difference (assuming you've already started the Openwings core, you won’t even see a login screen). This is by design; the use of secure connectors is meant to be as transparent as possible.

Also note that there are basically no differences in source code between the HelloWorldProvider and HelloWorldProviderSecure components, with the exception of package names. The HelloWorldProviderSecure component is simply configured to use a secure connector. The HelloWorldUser component required no changes at all, it transparently uses any service that implements the HelloWorldServiceSync interface.

In the next lesson, we begin to explore how the HelloWorldProviderSecure component was built, starting with generating a secure connector.

Next: Generating a Secure Connector for your Component

back to top

Copyright 2003, General Dynamics Decision Systems. All rights reserved.

previous next trail start tutorial home feedback openwings.org