Pattern-type (Part 15): How to create a client using Python scripts for a shared service on IBM SmartCloud Application Workload Service

The example provided in the PDK is very clear. The idea is to call the shared service by adding some function in your *.py scripts.

In the PDK example, you will find a Python script call ‘action.py’ which contains all methods in order to call your shared service.

You will need only to change, the name of the shared service.

    regInfo = maestro.registry.getRegistry("sample", "1.0")        # Retrieve info on SharedService (IP) so we know where to go
    ipAddr = regInfo['ip']
    jsonResults = pcurlInvoke(ipAddr, "sample", method, sslOpts, url, str(json))       # Drive pcurl method

by

    regInfo = maestro.registry.getRegistry("poolmanager", "1.0")        # Example to call the poolmanager .
    ipAddr = regInfo['ip']
    jsonResults = pcurlInvoke(ipAddr, "poolmanager", method, sslOpts, url, str(json))       # Drive pcurl method

Pattern-type (Part 14): How to create a client using ServiceProvisioner for a shared service on IBM SmartCloud Application Workload Service

In this article, I explain how to create a simple client for the shared service created in the article Pattern-type (Part 13): How to create shared services for IBM SmartCloud Application Workload Service.
We can call APIs defined by a shared service either from an OSGI component or from python scripts. In this article I will demonstrate the OSGI component method.
We will use as base plugin, the Master-Slave plugin we developed along this education series.
Continue reading

Pattern-type (Part 13): How to create shared services for IBM SmartCloud Application Workload Service

Let’s imagine you would like to manage a pool of resources, each resource are not sharable and thus a pattern can request a resource at deployment time and return the resource during its deletion.
To reach that goal, you can create, what we call, a shared service. The shared service will manage the pool of resources and provide basic functionality such as ‘get a resource’, ‘return a resource’. Continue reading

How to setup Eclipse to develop Web App for IBM SmartCloud Application Service

It is very easy to setup an eclipse environment (Indigo or Juno) to develop Web Application for IBM SmartCloud Application Service.
For the time being IBM SmartCloud Application Service (Workload Service) provides WebSphere Application Server version 7.x and of course to be able to develop an application for this platform you will need the stub. The stub is provided by installing the WebSphare Application Server on your laptop which make non-sense! Why using the cloud if you have to install an application server on your laptop in order to make some development! Continue reading

Deleted your IBM SmartCloud Application Collaborative Lifecycle Management Service by mistake!

You deleted you IBM SmartCloud Application Collaborative Lifecycle Management Service by mistake!
First Don’t worry because you will be able to restore your service with the last backup.Remember, when you provision the SCACLMS, you had the provide a schedule for your daily backup and this backup is done in a separate persistent disk. Continue reading

Backup/Restore with IBM SmartCloud Application Collaborative Management Service

Backup

The IBM SmartCloud Application Collaborative Management Service backups your data once a day on a persistent disk located in the same data-center. This persistent disk is automatically generated when you enable the service. At service enablement time, you can choose also the time when the backup must be done.
SCACLMS Backup schedule Continue reading

Reusable assets in IBM PureApplication System and IBM SmartCloud Application Services

This article is also valid for IBM SmartCloud Application Services!

Summary:  Reusable components provide a method by which domain experts can capture their knowledge of an enterprise system into reusable components that can be easily consumed by users creating new application patterns. This article describes the use of reusable components and application templates within IBM® PureApplication™ System. Learn about processes that can be used to accelerate the development life cycle and provide consistent implementations across deployments. Continue Reading ->