Skip to content

Instantly share code, notes, and snippets.

View jangalinski's full-sized avatar

Jan Galinski jangalinski

View GitHub Profile
thomasdarimont /
Created June 7, 2017 19:56
Simple example for creating a User with Keycloaks Admin Client - with credentials, custom roles, and user attributes
package de.tdlabs.keycloak.client;
import java.util.Arrays;
import java.util.Collections;
import org.keycloak.OAuth2Constants;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.KeycloakBuilder;
edudant / SpringBoot3CamundaConfiguration.kt
Last active May 10, 2023 18:50
Necessary configuration for Camunda 7.19 and Spring Boot 3.
View SpringBoot3CamundaConfiguration.kt
package cz.datalite.tsm.process.camunda.boot3
import jakarta.persistence.EntityManager
import jakarta.persistence.EntityManagerFactory
import jakarta.persistence.PersistenceException
import jakarta.persistence.TransactionRequiredException
import org.camunda.bpm.engine.ProcessEngine
import org.camunda.bpm.engine.ProcessEngineException
import org.camunda.bpm.engine.impl.cfg.*
import org.camunda.bpm.engine.impl.context.Context
tomsquest / logback-test.xml
Last active September 4, 2020 20:24
logback-test.xml that suits well for testing.Includes the method and line of the call (not suitable for production).
View logback-test.xml
<?xml version="1.0" encoding="UTF-8"?>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<pattern>%date %highlight(%-5level) [%thread] %highlight(%class.%method:%line) - %msg%n</pattern>
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BinaryOperator;
import java.util.function.Supplier;
* Finds a certain customer in a collection of customers.
pendor /
Created September 21, 2012 19:30
SystemPropertiesService forward-ported for JBoss 7.x
package ucs.jb4compat;
* *
* JBoss: The OpenSource J2EE WebOS *
* *
* Distributable under LGPL license. *
* See terms of license at *
* *
garcimouche / jboss-deployment-structure.xml
Created September 28, 2012 10:31
jboss-as-5-client module.xml
View jboss-deployment-structure.xml
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1"
I have a ear deployment, I'm specifying only the module which is client of the EJB Remote module running in AS5.
My client class is itself an EJB 3.1 running in JBoss AS7. It is client of an EJB 2.0 running in JBoss AS5.
<sub-deployment name="my-ejb-module-on-as7-${project.version}.jar">