Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Šmucr jsmucr

  • Aimtec a.s.
  • Česká republika
View GitHub Profile
@jsmucr
jsmucr / LeakDynamic.java
Created Jun 29, 2022
Groovy @CompileStatic is slow and leaks resources
View LeakDynamic.java
import groovy.lang.GroovyClassLoader;
class LeakDynamic {
public static interface TestClass {
String getThingy();
}
static String getTheThingy() {
return "the thingy";
@jsmucr
jsmucr / xpath-switch.md
Last active Jun 11, 2021
How to create switch in xpath
View xpath-switch.md
<root>
  <selector>3</selector>
  <value1>A</value1>
  <value2>B</value2>
  <value3>C</value3>
  <other>BAZINGA!</other>
</root>
@jsmucr
jsmucr / apache-artemis.md
Last active Mar 2, 2018
Apache Artemis thoughts
View apache-artemis.md

Intro

This file is meant to collect all my findings about the Apache ActiveMQ Artemis message queueing system. Although the framework documentation seems to be huge, it does not cover many situations anyone can get into while trying to adopt the technology.

I like to use Groovy along with the Core API.

Static discovery connection URL for multiple servers

Just separate the URLs with a hashmark:

tcp://10.0.0.2:61616#tcp://10.0.0.3:61616