You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start jolokia in a plain generic Java process that is not recognized by the discovery function (ie. not tomcat/jetty/jboss etc). For ease of testing the agent can be attached and started in the Connect / local tab.
Go to Connect / discover
Wait for process to show up. The process should show a Java coffee cup icon according to first step
Hit the play button to the far right
A new tab will appear for the other VM but it will be attached to the original/hawtio JVM
If you look in the drop down for connections in the Connect/remote tab, an entry called undefined will appear.
Problem:
The code works by
creating a connection specification for the other vm and save it to local storage.
Open a new hawtio tab
Pass the connection name to the newly opened tab ( ?con=undefined)
The problem is that the connection name is derived from the agent definition (information about discovered java process) options.name = agent.agent_description;
which may be undefined.
Solution:
Fall back to some safe name for the connection.
Either hard coded: options.name = agent.agent_description || 'discover';
Or unique (in case one fears overwriting definition for several discovered connections):
Possible further steps:
prefix to mark connection definitions?
Cleanup after successfully connecting from new tab to remove connection from local storage, to avoid connection list being filled up? But that may give issues if one reloads the tab in browser unless the information is saved elsewhere ?
Alternatively, hide discover connections from view or store in an alternate place in local storage.
The text was updated successfully, but these errors were encountered:
skarsaune
added a commit
to skarsaune/hawtio
that referenced
this issue
Jun 27, 2017
Procedure:
Problem:
The code works by
The problem is that the connection name is derived from the agent definition (information about discovered java process)
options.name = agent.agent_description;
which may be undefined.
Solution:
Fall back to some safe name for the connection.
Either hard coded:
options.name = agent.agent_description || 'discover';
Or unique (in case one fears overwriting definition for several discovered connections):
options.name = agent.agent_description || agent.agent_id;
Both solutions tested successfully locally.
Possible further steps:
prefix to mark connection definitions?
Cleanup after successfully connecting from new tab to remove connection from local storage, to avoid connection list being filled up? But that may give issues if one reloads the tab in browser unless the information is saved elsewhere ?
Alternatively, hide discover connections from view or store in an alternate place in local storage.
The text was updated successfully, but these errors were encountered: