Be aware of “opentracinqZipkin”, when you update to “MicroProfile 3.0” using “OpenTracing” with “OpenLiberty”

Today, just a very short note. You should be aware of opentracinqZipkin when you use  MicroProfile OpenTracing with OpenLiberty, because I noticed with the update to MicroProfile 3.0 I had a problem with usr:opentracinqZipkin-0.31. I created an issue on OpenLiberty

“MicroProfile 2.1 includes mpOpenTracing-1.2. MicroProfile 3.0 includes mpOpenTracing-1.3. Please make sure you are using the Zipkin sample built for mpOpenTracing-1.3. It can be downloaded at https://github.com/WASdev/sample.opentracing.zipkintracer/releases/tag/1.3

I got that solution from Felix Wong.

But inside the server.xml will not reflect the version change, it will remaining the same feature name usr:opentracingZipkin-0.31.

<server description=”OpenLiberty Server”>
  <featureManager>
      <feature>microProfile-3.0</feature>
     <feature>webProfile-8.0</feature>
     <feature>usr:opentracingZipkin-0.31</feature>
</featureManager>
<httpEndpointid=”defaultHttpEndpoint”host=”*”httpPort=”8080″httpsPort=”9443″/>
….
</server>

I hope this was useful for you and let’s see what’s next?

Greetings,

Thomas

PS: You can try out Cloud Foundry Apps or Kubernetes on IBM Cloud. By the way, you can use the IBM Cloud for free, if you simply create an IBM Lite account. Here you only need an e-mail address.

#ibmdeveloper, #MicroProfile, #Java, #OpenTracing

A small source code update, when you use MicroProfile Health

I just want to highlight a small change for the MicroProfile Health, because I noticed with the update to MicroProfile 3.0 that the annotation @Health is deprecated.

mp-health-dep-2.1

It took me a little bit, because it was still listed in the MicroProfile documentation .

mp-health-dep-2.1-01.jpg

But I figured out in the blog post from Philip Riecks , when you replace the annotation @Health with @Readiness and import org.eclipse.microprofile.health.Readiness that it will work:

mp-health-dep-21.-02

I hope this was useful for you and let’s see what’s next?

Greetings,

Thomas

PS: You can try out Cloud Foundry Apps or Kubernetes on IBM Cloud. By the way, you can use the IBM Cloud for free, if you simply create an IBM Lite account. Here you only need an e-mail address.

#ibmdeveloper, #MicroProfile, #Java, #Health, #Readiness

Create one Java Microservice with OpenLiberty and MicroProfile – made for beginners

Today I created a YouTube video, where I developed one Microservice. The level of content of that video is for beginners. The video was “live” recorded and I made some minimal editing and the video takes 18 min.
The recoding is related to Java Microservices with MicroProfile and OpenLiberty in Visual Studio Code . The source code is available in the open sourced Cloud Native Starter GitHub project.

Check it out:

Maybe you are interested, how did I setup the IDE and the Project? … here are the basics.

Continue reading

Being @codemotion 2019 in Berlin

I was as part of the great IBM Developer team at the codemotion in Berlin. We did so many contribution at codemotion that I would like to share the main topics and some personal impressions with you.

IMG_0662.jpg

The Conference and location

The codemotion is a two days multi track tech developer conference and had this year 1200 attendees.

It took place at an awesome location called Kulturbrauerei | Berlin . The sessions and codelabs (hands-on workshops), were in the cinema and in the theatre.

The content

I didn’t have the chance to visit many sessions, because we were very busy at our booth showing our open sourced based Blue-Cloud-Mirror fun game and talking about open technologies like Kubernetes, which can be used on IBM Cloud. The attendees liked this open source approach and the interactive game, so that they did their own instance of the game in just 10 min on their free IBM Cloud account.

… but surely I was at my own session 😉 … you will see here …

Here is the content of the two days from our IBM team, which contributed a keynote, sessions and codelabs. I just inserted the abstracts from the agenda provided on the codemotion page

Continue reading

Fast setup of a Java microservice project with MicroProfileStarter

In this blog post I want to show the easy setup of an own MicroProfile/OpenLiberty project with MicroProfileStarter . From my perspective that is  very useful for new Java developers, who want to build microservices. The prerequisite is, you have installed maven and Java on your local machine.

You can use for more information the MicroProfileStarter it self and the OpenLiberty getting started documentation.

That’s fits perfect to the topic Cloud-Native. Maybe you already know, we (Niklas, Harald and I) working on the open sourced Cloud Native Starter project. That project contains sample code that demonstrates, how to get started with Cloud-Native applications and microservices based architectures. Here we use also MicroProfile/OpenLiberty.

We created a new 60 -90 min hands-on workshop with the focus on Java microservice development with MicroProfile/OpenLiberty and the deployment to Kubernetes on IBM Cloud. This workshop is perfect to get a basic understanding of the Cloud-Native and Java development topics and the combination with MicroProfileStarter is awesome for newer Java Developers.

Continue reading

How to connect a Cloudant database as datasource in Watson Studio?

I just want to share this small information:  How to connect a Cloudant database as a datasource and use the data in Watson Studio?

You maybe have a Node-RED flow and you want to use sample IoT data from that flow in a jupyter notebook? Therefor you save the data for example in a Cloudant database and then you access the data inside Watson Studio in a jupyter notebook to work with the data. Maybe that flow could be useful in a Hackathon.

Continue reading

A promo code is used as a feature code @IBM Cloud

With this post I want to help to avoid pitfalls in wording of promo code and feature code in context with IBM Cloud.

I wrote in two blog posts about, how to enter feature codes and use them:

Sometimes you get a ” promo (promotion) code” or “feature code” at a conference or at a hackathon or on a website for free IBM Cloud usage.

So, the best definition from my point of view is:

“The promo code wording is often used for a feature code, but feature code is not a promo code.”

Continue reading

Definition of a Dockerfile to use bash scripts on a Windows 10 machine for our Cloud-Native-Starter workshop

We defined a Dockerfile to create a Docker image for our Cloud-Native-Starter workshop especially for Windows 10 users. The users can now simply create a Docker image on the local Windows 10 machine and then follow the guided steps in the hands-on workshop documentation and use the bash scripts. The reason why we don’t build a Docker image and share the image on Dockerhub is, we want to provide users the freedom of own customizations.

These are some challenges we had during the testing of the Dockerfile definition:

  • File sharing for Docker images on Windows
  • Docker port forwarding
  • Docker in Docker
  • Istio Virtual service configuration
  • Linux tools missing

Continue reading

Handle mircoservice resiliency with MicroProfile – a short teaser video

Today I finished the last part of my   “Let’s get started with cloud native Java applications on Kubernetes hands-on workshop”  3-minutes teaser videos series on youtube.

This short 3-minute teaser video is about: Handle mircoservice resiliency with MicroProfile in context of the cloud native starter project and workshop on GitHub project.

Check it out:

You can get more detailed information about the topic: Developing resilient Microservices with Istio and MicroProfile in one of the blog posts of @Niklas.

Continue reading

Traffic management in Kubernetes with Istio – a short teaser video

Today it is time for Part 5 of my   “Let’s get started with cloud native Java applications on Kubernetes hands-on workshop”  3-minutes teaser videos series on youtube.

This short 3-minute teaser video is about: Traffic management in Kubernetes with Istio in context of the cloud native starter project and workshop on GitHub project.

Check it out:

You can get more detailed information about the topic: Traffic management in Kubernetes with Istio in one of the blog posts of @Harald.

Continue reading