I'm using the default configuration of JBoss with an application that uses pojo cache.
All is well with pojo cache startup, but I get exceptions when trying to attach anything to the cache.
Do I have to set the -javaagent:..\lib\jboss-aop.jar option in the %JBOSS_HOME%\bin\run.bat file or is it not required?
Or maybe set it somewhere else?
How does the pojo cache work with the "all" configuration since the -javaagent is not set?
And what about the -Djboss.aop.path=path\to\pojocache-aop.xml?
Also set it in run.bat?
I would suggest to use server/all with the following
1:- Edit the C:\jboss-5.1.0.GA\server\all\conf\bootstrap\aop.xml in LINE no-72: <property name="enableLoadtimeWeaving">true</property>
2:- CopyC:\jboss-5.1.0.GA\server\all\deployers\jboss-aop-jboss5.deployer\pluggable-instrumentor.jar to C:\jboss-5.1.0.GA\bin
3:- EditC:\jboss-5.1.0.GA\bin\run.conf.bat file:LINE N0=-50 type : set “JAVA_OPTS=%JAVA_OPTS% -javaagent:pluggable-instrumentor.jar”
4:- Copy pojocache-aop.xml to C:\jboss-5.1.0.GA\server\all\deploy
|Retrieving data ...|