Have installed the Lisa agent in a Jboss Fuse container.
From the logs can see that the agent started. But in the DevTest Portal not able see the agent.
Getting the message: "The broker cannot be detected. Please make sure the broker process is running and try again".
JBoss Fuse Agent version 6.2 is installed without any issues.
Configuration issue.
To configure JBoss Fuse 6.2 to use the DevTest Java Agent, edit the JBoss startup script. The name of the script is fuse.bat or fuse. If start up script is setenv.sh use that. . The boot delegation information can be added to the config.properties file in the JBOSS_HOME/etc directory instead.
Follow these initial steps:
1. Open the config.properties file in a text editor.
2. Add com.itko.* to the org.osgi.framework.bootdelegation property. and save the file
3. Open the startup script (setenv.sh)in a text editor.
4. Specify the agent parameters string as documented in our docops (see additional content).
Added...
PF_AGENTDIR=C:\agent
PF_BROKER=mycomputer-w7
export CLASSPATH=D:\pf\g_lisa\lisa-remote\JavaAgent\build-gradle\libs\InsightAgent.jar;%CLASSPATH%
export BOOTDEL=-Dorg.osgi.framework.bootdelegation=com.itko.*,org.apache.karaf.jaas.boot,sun.*,com.sun.*,javax.transaction,javax.transaction.*,org.apache.xalan.processor,org.apache.xpath.jaxp,org.apache.xml.dtm.ref,org.apache.xerces.jaxp.datatype,org.apache.xerces.stax,org.apache.xerces.parsers,org.apache.xerces.jaxp,org.apache.xerces.jaxp.validation,org.apache.xerces.dom
export JAVA_TOOL_OPTIONS=-javaagent:%PF_AGENTDIR%\InsightAgent.jar=name=Jboss_Fuse,url=tcp://%PF_BROKER%:2009
In fuse.bat added:
rem enable standalone mode
set FABRIC8_ENSEMBLE_AUTO_START = false
set FABRIC8_AGENT_AUTO_START = false
call "%DIRNAME%\karaf.bat" %*
Started Fuse Agent and Broker. Able to see Agent online and was able to capture HTTP and EJB transactions.
Refer to section "Configure JBoss to Use the Java Agent" in the documentation of the DevTest release you are running.