Hi,
Java Agent technology is a generic technology. It is not specific to
DevTest but is used in many products.
You do not start a Java Agent standalone, it is started together (at the
same time) with the java application that it instruments. So, on the same
command-line that starts your Java application or java service there will
have been an option added that also starts the agent. Your java program or
service and the agent run in the same JVM, you can only start the JVM once,
so there is a command-line used that starts them both together.
How or where does your onprem java application run? Is it a standalone java
application? Or a WebSphere service? Or Tomcat, or JBoss?
My suggestion is to look at how your onprem java application is started.
When you look at the command line of how it is started you will see what
needs to be done in your cloud environment. Let us know how that
command-line looks, so we can assist with more specific information, if
still needed at that point.
If you do not have access to the management console of your application
server platform you will need the help of an administrator to show you the
onprem command line used.
Also consult
https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-7/agents/devtest-java-agent/java-agent-architecture.htmlto understand the DevTest java agent architecture.
Cheers
Danny Saro
Client Services Consultant
Broadcom Software
-------------------------------------------------
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
Original Message:
Sent: 11/8/2023 10:54:00 AM
From: Preethu K G
Subject: RE: Java Agent Migration to a new server
Thanks Danny,
I can see the agents in agent folder of devtest but could you please me how I can start my custom agent in this new cloud server? For Eg: If I need to start an agent called TestAgent, how is it possible ? I havent worked on java agents before, hence such a question.
it would be great help if you can guide through on the same.
Regards,
Preethu
Original Message:
Sent: Nov 08, 2023 10:14 AM
From: Danny Saro
Subject: Java Agent Migration to a new server
Hi Preethu,
It is a 2 step process.
First, after migrating your java services (your custom proprietary
software) to cloud you need to migrate the "DevTest java agent" software
also, and then adapt the startup command of your java services such that
the DevTest java agent is also started within your java services JVM. The
JVM options on your startup command line will be similar to your onprem
startup line (the paths of the DevTest java agent software might be
different)
Second, after startup of your java services and after validating that the
running java agents are connecting to the DevTest Broker you do need to
copy and deploy the mar files to the cloud VSE.
Hope this helps,
Danny Saro
Client Services Consultant
Broadcom Software
-------------------------------------------------
--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.
Original Message:
Sent: 11/8/2023 7:22:00 AM
From: Preethu K G
Subject: Java Agent Migration to a new server
Hi Everyone,
Could you please help with this below scenario related to java agents?
We have been using couple of java based services in an on prem windows server for sometime now. Agents are seen successfully running in the same devtest server portal. Now we need to migrating from on prem to new cloud server. How can I migrate those java based services as I need to have those agents also running in the cloud server?
I believe copying and deploying the mar file from old to new server wont help with java agents migration.
kindly help.
Regards,
Preethu