We have a JBoss application server running on a host where OneAgent is deployed. We have mobile applications (Android and iOS) calling the JBoss server and I would like to implement an endpoint on the JBoss server which provides the Dynatrace environment id to the mobile application such that the agent running on the client can report to that environment. The question is, how can I obtain the Dynatrace environment from within our deployment (ear) on the JBoss server?
Solved! Go to Solution.
If you have SaaS installation, you are using your tenant url. If you have managed, first you need to setup cluster activegate (or set dynatrace server to be public). Than you will be able to configure public url to your tenant to send data.
Ebout enviornment ID, for managed when you go to your enviornment your url will looks like:
Part between /e/ and / is your enviornment ID
Directly from within an J2EE application, you cannot, since the application itself is unaware of the Oneagent instrumentation.
However, you can find your tenant ID in the ruxitagentproc.conf on the server. But if you need this for the configuration of the mobile app (Beacon), I think it does not use the tenant ID, but a different one.
Thank you for the answer. I think I'll just put the environment id in a configuration on the JBoss server manually.