Pushed applications to CF or PCF you would of most likely used a manifest.yml file and at some point wanted to use variable substitution. manifest.yml files don't support that and a feature request has been asked for this as follows
With a recent customer we scripted the creation of a manifest.yml file from a Jenkins job which would inject the required ROUTE to the application by creating the manifest.yml (more...)
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;
So most of the time you are probably aware of method references that either reference instance of static methods directly, and they are useful but not necessarily that interesting.
Integer example = 1;
// We can bind the instance variables, in this case just the return type is bound but there couple be method parameters also
Supplier<String> s = example::toString;
// We can bind to static method, here the generic parameter are the method parameter (more...)
On the 28th of July, I presented this topic at Kscope16. It was a great conference and if you ever have the chance to visit, definitely do so.
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...)
I'm blogging about WildFly swarm again? Short version is: I needed a test for remote JMS access and refused to setup something complex like a complete application server. The idea was to have a simple WildFly Swarm application which has a queue and a topic configured. Both should be accessible remotely from a standalone Java application. While the topic receives messages a Message Driven Bean (MDB) dumps the output to the console. The queue is (more...)
There's been a lot of buzz from me lately around microservices and containers. And all the efforts were directed towards today's public announcement by Lightbend and Mesosphere
. If you are interested in learning more about how traditional architectures are beginning to evolve very quickly to embrace microservices architecture and various cloud and hybrid-cloud deployment models, I would love to invite you to listen to the recording of my recent webinar with Aaron Williams from Mesosphere. (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...)
My kitchen has a very nice range hood over the cooktop. It has a powerful fan and beautiful brushed steel finish. And it has a user experience like most IT systems: Lousy.
Let’s think about what a range hood does. It has two main functions:
- Start the fan to extract grease and fumes
- Turn on the light over the cooktop
Because of the shape of a range hood, the buttons to operate it are typically (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...)
I've had the pleasure to talk at the Chicago Java User Group and talk about how Lagom implements CQRS, the Command Query Responsibility Segregation pattern. Thankfully, there is a recording and I also published the slides on slideshare
As soon as an application becomes even moderately complex, CQRS and an Event Sourced architecture start making a lot of sense. The talk is focused on: - the challenges and tactics of separating the write model (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...)
In this example I am going to show how to use IntelliJ IDEA 15 to create a service application from the IDE to be consumed by the Service Registry service in Pivotal Cloud Foundry (PCF). For more information on this service view the docs page below.http://docs.pivotal.io/spring-cloud-services/service-registry/index.html
Service Registry for Pivotal Cloud Foundry® (PCF) provides your applications with an implementation of the Service Discovery pattern, one of the key tenets of a (more...)
I created the following demo for PCF using spring boot / PCF. After showing a colleague he decided he would write a Kotlin version of the same application. It's interesting to see how the Kotlin classes differ to those of Java.https://github.com/papicella/PivotalSpringBootJPA
The Kotlin version of the same application is here.https://github.com/papicella/Kotlin-PivotalSpringBootJPA
Kotlin is a functional language developed by the JetBrains guys. Its main benefits are:
- Conciseness of code
- Code safety - Null (more...)
Apigee and Pivotal partnered to provide comprehensive API management capabilities that expedite the scalable delivery of apps on the powerful Pivotal Cloud Foundry platform. Apigee Edge is available for rapid deployment as a partner service in the Pivotal Network
The following link talks about this service in detailhttp://apigee.com/about/solutions/pivotal-cloud-foundry-apigee
In this blog post we walk through how we would use this Service on Pivotal Cloud Foundry 1.7 to expose Telstra SMS Api.
Are you in Chicago? We have an Oracle Professionals Meet-Up on June 30. I'll be there and would be happy to get to know you. Register at: http://meetu.ps/2XCD1J
See you there!
Yalim K. Gerger