Category: Hacks

XPath fetch dynamic http header values

Following is an XPath that can come in handy to read name value pair elements. Basically this is done for reading tibco dynamic headers which comes as a repeated header containing name and value elements but the below xpath can be used for any XML document processing. Below is the XML and XPath example The
Read More »

Hotswap for Java using DCEVM+Hotswap Agent

Here is an opensource setup that does the job as JRebel which offcourse is not free. Download HotswapAgent latest release from this url https://github.com/HotswapProjects/HotswapAgent/releases Download DCEVM jar from the following url https://github.com/dcevm/dcevm/releases Install DCEVM as an administrator java -jar DCEVM-light-8u112-installer.jar Create a new run configuration in intelliJ with following VM option -XXaltjvm=dcevm -javaagent:C:\Dev\sw\HotswapAgent-0.3\hotswap-agent.jar -Xms1G -Xmx5G
Read More »