Skip to content

Instantly share code, notes, and snippets.

View jsmucr's full-sized avatar

Jan Šmucr jsmucr

  • Aimtec a.s.
  • Česká republika
View GitHub Profile
@jsmucr
jsmucr / LeakDynamic.java
Created June 29, 2022 05:42
Groovy @CompileStatic is slow and leaks resources
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 June 11, 2021 17:45
How to create switch in xpath
<root>
  <selector>3</selector>
  <value1>A</value1>
  <value2>B</value2>
  <value3>C</value3>
  <other>BAZINGA!</other>
</root>
@jsmucr
jsmucr / apache-artemis.md
Last active March 2, 2018 11:10
Apache Artemis thoughts

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