Jboss Fuse Agent is not listed in the installed Agents in DevTest Portal

Document ID : KB000093671
Last Modified Date : 01/05/2018
Show Technical Document Details
Introduction:
I have installed the Lisa agent in a Jboss Fuse container. From the logs i could see that the agent started. But in the DevTest portal, i am not able to see the agent. I get the below message: " The broker cannot be detected. Please make sure the broker process is running and try again". 
Background:
JBoss Fuse Agent version 6.2  is installed without any issues. 
Environment:
All DevTest supported versions
 
Instructions:

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).

 
we 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 we 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. We were able to see Agent online and was able to capture HTTP and EJB transactions. 
Additional Information:
https://docops.ca.com/devtest-solutions/10-0/en/agents/devtest-java-agent/java-agent-installation/platform-specific-agent-configuration/configure-jboss-to-use-the-java-agent