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

Nexus 3 as a Docker GROUP around a proxy and 2 hosted repos

We want to provide this setup:dockergroup repository, "covering" a dockerproxy repo (proxy to docker hub) and 2 hosted reposEach repo will have its own http port!1) create these blob stores...

View Article


Wildfly file upload and download with Primefaces

Sample application available here https://github.com/vernetto/pffilehttps://www.primefaces.org/docs/api/6.2/org/primefaces/model/UploadedFile.htmlhttps://stackoverflow.com/a/8880083/651288 read BalusC...

View Article


Image may be NSFW.
Clik here to view.

primefaces cookbook on wildfly

The book is covering in depth many examples available on the official PF showcase. Don't expect advanced programming techniques, it's purely about implement not-so-common use cases in PFsample code is...

View Article

Docker resource control

systemd-cglssystemd-cgtopls -ltr /sys/fs/cgroup/https://goldmann.pl/blog/2014/09/11/resource-management-in-docker/mkdir stresscd stress/cat <<EOT >> DockerfileFROM fedora:latestRUN yum -y...

View Article

Spring testing

spring-test https://docs.spring.io/spring/docs/current/spring-framework-reference/html/integration-testing.htmlspring-boot-test...

View Article


Spring core tutorial

Although a bit outdated, it goes over the main points https://www.tutorialspoint.com/spring/I have put the code of each step in https://github.com/vernetto/springdemo , instructions in the readme.md, a...

View Article

Xml Parsing, tools, strategies and alternatives

JAXBIf you have an xsd, you can generate the @javax.xml.bind.annotation.XmlRootElement annotated Java POJOs with xjc: https://docs.oracle.com/javase/8/docs/technotes/tools/unix/xjc.htmlexample: cd...

View Article

Openshift Online getting started

Create yourself an Openshift Online account (account creation seems to me a bit buggish)https://docs.openshift.com/online/getting_started/basic_walkthrough.htmlI follow the instructions and create my...

View Article


more Docker in Action

docker run -d --volume /var/lib/cassandra/data --name cass-shared alpine echo Data Containerdocker run -d --volumes-from cass-shared --name cass1 cassandra:2.2docker run -it --rm --link cass1:cass...

View Article


Image may be NSFW.
Clik here to view.

Kubernetes up and running

https://github.com/kubernetes-up-and-running/examples

View Article

Eclipse generate JPA entities from DB

Unfortunately there doesn't seem to exist a tool to generate JPA Entities directly from SQL. Weird!So you have to start by populating a real schema.Create a Java projectConfigure "Targeted Runtimes"...

View Article

The Kubernetes Book by Nigel Poulton

I have learned much more from "Kubernetes Webinar Series" freely available on youtube. Unless you are a really total beginner, you have already heard/read most of the stuff in this...

View Article

Katacoda docker interactive tutorial

Katacoda is the best thing I have seen this year. IT teachers and IT books are made obsolete by this tool.https://www.katacoda.com/courses/docker/deploying-first-containerdocker search redisdocker run...

View Article


WebLogic on Kubernetes

https://blogs.oracle.com/weblogicserver/weblogic-server-certification-on-kuberneteshttps://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.2.1.3sample Dockerfile...

View Article

Image may be NSFW.
Clik here to view.

ANTLR

http://www.antlr.org/Source code: https://pragprog.com/titles/tpantlr2/source_code(I am using GIT bash)on Windows:export CLASSPATH=/d/pierre/downloads/antlr/antlr-4.0-complete.jar:.alias antlr="java...

View Article


H2 autogenerating unique IDs from Sequence

if you have annotated the ID withimport javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import javax.persistence.Id;import javax.persistence.SequenceGenerator;import...

View Article

Hibernate validator dependencies for unit testing

http://hibernate.org/validator/ home page of validationat javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:271)at...

View Article


debug hanging shell scripts

https://stackoverflow.com/questions/4640794/a-running-bash-script-is-hung-somewhere-can-i-find-out-what-line-it-is-onset -xlsof -p $pidstrace -p $pid -s 1024/proc/$pid/environpstree -pl 21156 + cat...

View Article

Jenkins sucks

Jenkins sucks. Ok it could suck more, but let me tell you what I find really frustrating from a begginner's perspectivea) documentation is pathetic. The Jenkins User Handbook until a few months ago was...

View Article

Docker run a command in an image

How many times you are baffled because you rundocker run myregistry/maven:3-alpine and it simply exists without doing anything.Then you do docker run myregistry/maven:3-alpine /bin/bashand the same...

View Article
Browsing all 1121 articles
Browse latest View live