Community

Using Liberty beta features on Bluemix

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:

  1. Download the WebSocket Sample from the Liberty repository.
  2. Extract the sample to a local directory:
    $ jar xvf WebsocketSample.jar
  3. Go into the wlp/usr/servers/WebsocketSample directory:
    $ cd wlp/usr/servers/WebsocketSample
  4. In the wlp/usr/servers/WebsocketSample directory create a manifest.yml file with the following contents:
    ---
    env:
    IBM_LIBERTY_BETA: "true"

    Setting the IBM_LIBERTY_BETA environment variable will cause the Liberty buildpack to install the beta features for the application.

  5. 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:

    beta-deploy

  6. 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.

More stories
May 7, 2019

We’ve Moved! The IBM Cloud Blog Has a New URL

In an effort better integrate the IBM Cloud Blog with the IBM Cloud web experience, we have migrated the blog to a new URL: www.ibm.com/cloud/blog.

Continue reading

May 1, 2019

Two Tutorials: Plan, Create, and Update Deployment Environments with Terraform

Multiple environments are pretty common in a project when building a solution. They support the different phases of the development cycle and the slight differences between the environments, like capacity, networking, credentials, and log verbosity. These two tutorials will show you how to manage the environments with Terraform.

Continue reading

April 30, 2019

Introducing IBM Analytics Engine v1.2 and Announcing the Deprecation of IBM Analytics Engine v1.0

We are excited to inform you about the new version of IBM Analytics Engine v1.2 that will be available starting May 15, 2019. Along with this release, Analytics Engine v1.0 will be retired.

Continue reading