gcc -c -o simpleJVMTI.o -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32" SimpleJVMTI.c
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> |
import org.junit.Assume; | |
import org.junit.Before; | |
import org.junit.Test; | |
public class SampleConditionTest { | |
@Before | |
public void beforeEveryMethod() { | |
Assume.assumeTrue(conditionToTest()); | |
} |
jBoss CLI Cookbook
standalone
ls /subsystem=datasources/data-source
domain
Go to $JBOSS_HOME/bin
Run the following command -
./jboss-cli.sh --connect controller=localhost:9999
Note : If you're using a port offset, the management console port can be calculated as,
port = managementNativeSocket (9999) + port offSet
<resource-root path="portal-request-handler.jar"> |