Quantcast
Channel: Java mon amour
Browsing all 1121 articles
Browse latest View live

REST Management Services in weblogic reverse engineered

wls-management-services.waronly Administrator and Operator can invokeweblogic.management.rest.Application main entry pointweblogic.management.rest.bean.utils.load.BuiltinResourceInitializer : all the...

View Article


Istio presentation by Burr Sutter

Presentation slides http://bit.ly/istio-canariesand the code is here https://github.com/redhat-developer-demos/istio-tutorialWhat I understand is that Istio provides you a central control to monitor...

View Article


beauty of Spring Data

thanks to Greg Turnquisthttps://www.slideshare.net/SpringCentral/introduction-to-spring-datahttps://spring.io/guides/ type "data"my code is available here https://github.com/vernetto/springdata

View Article

Cisco CCNA 200-125

GNS3 https://gns3.com/https://github.com/GNS3/gns3-gui/releases/download/v2.0.3/GNS3-2.0.3-all-in-one.exeinstall 2.0.3 !you can download IOS image here https://srijit.com/working-cisco-ios-gns3/...

View Article

kubernetes mount file on an existing folder

With ConfigMap and Secret you can "populate" a volume with files and "mount" that volume to a container, so that the application can access those files. echo "one=1"> file1.propertiesecho...

View Article


joy of Openshift SCC

if you do oc describe projectyou will see 2 annotationsopenshift.io/sa.scc.supplemental-groups=1000800000/10000openshift.io/sa.scc.uid-range=1000800000/10000Even if you specify a "USER 10001" in your...

View Article

kubernetes "change-cause" to describe a deployment

$ kubectl run nginx --image=nginx --replicas=4$ kubectl annotate deployment/nginx kubernetes.io/change-cause='initial deployment'deployment.extensions/nginx annotated$ kubectl set image deploy nginx...

View Article

Mocking rest services with Mockito and MockRestServiceServer in Spring

https://www.baeldung.com/spring-mock-rest-templatethe code in the article is broken, here https://github.com/vernetto/mockrest you find a fixed version.It's very simple and elegant solution.You see...

View Article


CKAD CNCF Kubernetes Certification

Today I have attempted CKAD certification test. It was TOUGH, but not impossible, actually I was expecting worse in term of complexity. And pass threshold is 66%, which is mild.Good thing is that each...

View Article


JPA Parent child relationship

https://vladmihalcea.com/the-best-way-to-map-a-onetomany-association-with-jpa-and-hibernate/a quick reminder to myself:if Post -> PostComment is a Unidirectional association (Post has a...

View Article

busybox docker image

https://hub.docker.com/_/busybox/docker pull busyboxdocker inspect busybox if I see in the Config section (don't look at ContainerConfig ) the Cmd is simply "sh"which means that if I do kubectl run...

View Article

kubernetes quotas

kubectl create namespace pippokubectl create quota myhq --hard=cpu=1,memory=1G,pods=2 --namespace=pippokubectl run --restart=Never busybox --image=busybox --namespace=pippoError from server...

View Article

creating a domain with WLST

in WLS 12.1 + the config.sh script no longer supports a silent installation./config.sh -silent -response response_filesee Document "Can config.sh be Run in Silent or Non-GUI Mode in Weblogic 12c ? (Doc...

View Article


rats, in OracleXE DB a create user no longer works unless....

create user PIPPO IDENTIFIED BY PIPPOFehlerbericht -ORA-65096: Ungültiger allgemeiner Benutzer- oder Rollenname65096. 00000 - "invalid common user or role name"*Cause: An attempt was made to create a...

View Article

Image may be NSFW.
Clik here to view.

CKAD, woah!

View Article


memory effectively used by a Java process

cat /proc/102433/smaps | grep -i pss | awk '{Total+=$2} END {print Total/1024" MB"}'499.514 MBcat /proc/102433/smaps | grep -i rss | awk '{Total+=$2} END {print Total/1024" MB"}'506.32 MBjmappmapTo...

View Article

Collections

https://dzone.com/articles/the-best-of-java-collections-tutorialshttp://falkhausen.de/Java-10/java.util/Collection-Hierarchy.html...

View Article


LinkedBlockingQueue

import java.util.concurrent.LinkedBlockingQueue;public class MyLinkedBlockingQueue { public static void main(String[] args) throws InterruptedException { LinkedBlockingQueue linkedBlockingQueue = new...

View Article

Functional Interfaces

The Supplier interface is a generic functional interface with a single method that has no arguments and returns a value of a parameterized type.The Consumer functional interface. Its single method...

View Article

Collections

https://dzone.com/articles/the-best-of-java-collections-tutorialshttp://falkhausen.de/Java-10/java.util/Collection-Hierarchy.html...

View Article
Browsing all 1121 articles
Browse latest View live