October 3, 2014 | Written by: Jarek Gawor
Categorized: Community | How-tos | What's New
Share this post:
The Liberty beta provides an early access to new functionality or programming models that might be included in a future Liberty release. For example, the beta provides new functionality such as WebSocket 1.0, Servlet 3.1, or JAX-RS 2.0.
With the updated Liberty Buildpack v1.5-20140923-1143 most of the Liberty beta features can now also be used in applications deployed to Bluemix. See Using Liberty beta features documentation for a full list of beta features available and other information related to Liberty beta in Bluemix.
The following describes how an application using the WebSocket beta feature can be deployed to Bluemix:
- Download the WebSocket Sample from the Liberty repository.
- Extract the sample to a local directory:
$ jar xvf WebsocketSample.jar
- Go into the wlp/usr/servers/WebsocketSample directory:
$ cd wlp/usr/servers/WebsocketSample
- In the wlp/usr/servers/WebsocketSample directory create a manifest.yml file with the following contents:
Setting the IBM_LIBERTY_BETA environment variable will cause the Liberty buildpack to install the beta features for the application.
- Finally, from the wlp/usr/servers/WebsocketSample directory execute the cf push command with your application name to deploy the server directory to Bluemix:
$ cf push <appName>
The output from the buildpack during the push should look like the following:
- Once the application is deployed, you can access it at http://<appName>.mybluemix.net/WebsocketApp.
Note: The Liberty beta features are for development and test purposes only and may not be used in production.