Book Image

Service Oriented Java Business Integration

Book Image

Service Oriented Java Business Integration

Overview of this book

Table of Contents (23 chapters)
Service Oriented Java Business Integration
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

Sample demonstrating Security


The security in ServiceMix can be configured at multiple levels and at multiple layers. In this section we will demonstrate a simple security configuration for the servicemix-http component. We will configure HTTP basic authentication and as per that, when a client tries to access a resource marked as protected in the server, the server prompts for a username and password combination. This is followed by the browser prompting with a username and password entry form where the user can enter the relevant information and submit.

Sample Use Case

The setup of components for the sample use case is shown in the following figure:

The security sample use case will have servicemix-http configured in the consumer role, listening for HTTP transport for a particular port. We then configure an Echo service component as the targetService for the above HTTP consumer. When doing so, we also tell that the HTTP basic authentication has to be applied. An external HTTP client...