gcc -c -o simpleJVMTI.o -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32" SimpleJVMTI.c
<?xml version="1.0" encoding="UTF-8"?> | |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" | |
xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"> | |
<jaxws:endpoint id="HelloWorldServiceEndpoint" | |
implementor="#helloWorldService" address="/HelloWorldService" /> | |
<bean id="helloWorldService" | |
class="com.sachinhandiekar.example.webservice.HelloWorldService" /> |
package com.sachinhandiekar.example.webservice; | |
import javax.jws.WebService; | |
@WebService(endpointInterface = "com.sachinhandiekar.example.webservice.HelloWorld") | |
public class HelloWorldService implements HelloWorld { | |
public String sayHello(String name) throws Exception { | |
return "Hello " + name; | |
} |
#include <stdio.h> | |
int main(void) { | |
int number, temp; | |
int reverseNumber = 0; | |
printf("Enter your number : \n"); | |
scanf("%i", &number); | |
while (number != 0) { |
cov-configure --java | |
cov-build --dir ./cov-int mvn -Dmaven.compiler.fork=true \ | |
-Dmaven.compiler.forceJavaCompilerUse=true \ | |
-Dmaven.test.skip=true \ | |
-DskipTests \ | |
clean verify |
rem Stackoverflow Ref : http://stackoverflow.com/questions/1502913/how-to-delete-all-files-and-folders-in-a-folder-by-cmd-call | |
rem echo off | |
ECHO Change to C drive | |
cd /d C:\ | |
ECHO Setting target directory | |
set targetDir=c:\logs | |
c:/Eclipse/eclipse.exe -data /path/to/workspace |
#include <jvmti.h> | |
#include <stdio.h> | |
JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) { | |
printf("I'm a native Agent...."); | |
return JNI_OK; | |
} |
/subsystem=web/virtual-server=default-host/access-log=configuration:add | |
/subsystem=web/virtual-server=default-host/access-log=configuration:write-attribute(name="pattern",value="%h %l %u %t \\"%r\\" %s %b %S %T") | |
:reload |
<subsystem xmlns="urn:jboss:domain:web:1.2" default-virtual-server="default-host" native="false"> | |
<connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http" /> | |
<virtual-server name="default-host" enable-welcome-root="true"> | |
<alias name="localhost" /> | |
<alias name="example.com" /> | |
<access-log pattern="%h %l %u %t %r %s %b %{Referer}i %{User-Agent}i %S %T" prefix="access_log_" /> | |
</virtual-server> | |
</subsystem> |