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

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

How to setup your SCAS/IWD/PureApp plugin development environment?

The IWD technology is used in different IBM products such as IBM SmartCloud Application Services (SCAS) and IBM PureApplication (part of the PureSystems product line).

This technology uses patterns to deploy application and the underlying infrastructure. Pattern-types defines the rules to design patterns. SCAS out of the box provides pattern-types such as the “Web Application” or the “Java” pattern-types. Developers wrote the plugins which define the pattern-types.
Continue reading

IBM Application Pattern Type for Java: RAP application on Jetty

I read this article on developerWorks: Deploying into the cloud with the IBM Application Pattern for Java which I found very interesting. It explains how to deploy a Java application in SCAS. The author demonstrates how to setup a Tomcat environment and how to install its application on it.
Continue reading

Your own pattern-type in few steps!

I wrote an article on: http://expertintegratedsystemsblog.com 
Please read this to setup your development environment: How to setup your SCAS/IWD/PureApp plugin development environment?

IBM PureApplication can provide you out of the box a number of pattern-types; you can also upload new pattern-types at IBM PureSystems Center but what about if you want to create your own pattern-type that describe your own application environment!

Continue reading ->

Has Cyber Monday a taste of Black Monday for some companies?

After black Friday where American citizens can buy at low price goods in most of the shops comes the Cyber Monday. On that day eShops make incredible discount on their products via the web which attract a lot of cyber customers. This has for consequence a short and huge increase of the load of all servers owned by these companies. This sudden load increase is also called peak load. Continue reading

Pattern-type (Part 12): Call a service to insert parameters in the vm topology.

The provided Java API has a number of interfaces, one of them is the PostProvisioner on which I already wrote a blog (Pattern-type (Part 11): Add a post processor to a deployment) another one is the ServiceProvisioner. With this interface you can insert parameter value in the vm topology. Continue reading

Why choose IBM SmartCloud Application Workload Service instead of scripts?

Through this blog, I would like to explain the extra benefits you can get from IBM SmartCloud Application Workload Service (SCAWS) versus creating your own scripts with the provided IBM SmartCloud Enterprise API to deploy a topology on IBM SmartCloud Enterprise. Continue Reading ->