Skip to content

Instantly share code, notes, and snippets.

@TxnContainer("MyContainer")
public class HelloWorldContainer {
@Txn("hello")
public String getHello() {
return "hello, world";
}
}
package com.dripstat.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Prashant Deva
*/
package com.dripstat.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Prashant Deva
*/
2015-01-05 23:24:20 XRebel: Class 'com.mongodb.QueryResultIterator' could not be processed by com.zeroturnaround.xrebel.do@null
2015-01-05 23:24:20 XRebel: ERROR com.zeroturnaround.xrebel.bundled.javassist.CannotCompileException: [source error] no such field: $4
at com.zeroturnaround.xrebel.bundled.javassist.CtBehavior.insertAfter(XRebel:877)
at com.zeroturnaround.xrebel.bundled.javassist.CtBehavior.insertAfter(XRebel:792)
at com.zeroturnaround.xrebel.do.process(XRebel:34)
at com.zeroturnaround.xrebel.sdk.trans.JavassistClassBytecodeProcessor.process(XRebel:36)
at com.zeroturnaround.xrebel.bootstrap.e.a(XRebel:32)
at com.zeroturnaround.xrebel.bootstrap.k.transform(XRebel:20)
at sun.instrument.TransformerManager.transform(TransformerManager.java:188)
at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:428)
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor518.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
package com.chronon.apm.utils;
import com.chronon.apm.Log;
import com.google.common.collect.Iterables;
import java.net.*;
import java.util.Collections;
import java.util.List;
public class Hostname
{
"meterVersion":"3.1.3-575",
"hostname":"dc3",
"mach":"x86_64",
"osver":"#39-Ubuntu SMP Mon Dec 15 22:27:29 UTC 2014",
"machdesc":"Ubuntu 14.10",
"osname":"Linux",
"arch":"x86_64",
"version":"3.16.0-29-generic",
"vendname":"Linux",
public String callWebService(String fromAccount, String toAccount, double amount, String currency)
throws MalformedURLException, Exception{
//create a metadata of the service
Service serviceModel = new ObjectServiceFactory().create(IBankingService.class);
System.out.println("callSoapServiceLocal(): got service model." );
//create a proxy for the deployed service
XFire xfire = XFireFactory.newInstance().getXFire();
XFireProxyFactory factory = new XFireProxyFactory(xfire);
@pdeva
pdeva / build.gradle
Last active June 26, 2018 22:23
DripStat APM Agent in Gradle
dependencies {
// $agentVersion is the version of the agent you wish to download
compileOnly('com.dripstat:apm-agent:$agentVersion') {
transitive = false
}
}
<!-- VERSION is the version of the agent you wish to use -->
<dependency>
<groupId>com.dripstat</groupId>
<artifactId>apm-agent</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>