I had a requirement to implement a HttpSessionListener in my Spring Boot application which has no web.xml. To achieve this I did the following
1. My HttpSessionListener was defined as follows
public class SessionListener implements HttpSessionListener
protected static Logger logger = Logger.getLogger("controller");
private HttpSession session = null;
The demo below is a full working example of using Spring Boot Application which will build/deploy to Pivotal Cloud Foundry using Concourse. Concourse pipelines can easily be created within your source code as this demo shows and hence created / executed quite easily. Concourse limits itself to three core concepts: tasks, resources, and the jobs that compose them.https://github.com/papicella/SpringBootSimpleRest
Detailed instructions on how to setup/run this demo using Concourse see the link referenced above (more...)
PCF Dev is a small footprint distribution of Pivotal Cloud Foundry (PCF) intended to be run locally on a developer machine. It delivers the essential elements of the Pivotal Cloud Foundry experience quickly through a condensed set of components. PCF Dev is ideally suited to developers wanting to explore or evaluate PCF, or those already actively building cloud native applications to be run on PCF. Working with PCF Dev, developers can experience the power of (more...)
If you heard of Telstra WIFI API you will know it will allow you to search for WIFI Hotspots within a given radius and can be used after signing in for Telstra.dev account at https://dev.telstra.com/
to obtain the Hotpots within a given Radius and Lat/Long location.
The WIFI API for Telstra is described at the link below. https://dev.telstra.com/content/wifi-api
The following application I built on Pivotal Cloud Foundry consumes this (more...)
Pivotal Cloud Foundry (PCF) provides a REST API to provide billing/metering data for application and service usage. Although this usage can we viewed in the applications manager dashboard UI in this post below we will show how to use the REST based API using PCF 1.7.
Below we will show how to use the cf CLI to retrieve information about your app and service instances via the Cloud Controller and Usage service APIs.Obtain (more...)