<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Example Java main method for -Dappdynamics.agent.startup.hook=&amp;lt;JAR-file&amp;gt; in AppD Archive</title>
    <link>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724479#M1760</link>
    <description>&lt;P&gt;I got this working now.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jul 2015 12:29:41 GMT</pubDate>
    <dc:creator>Ketan_Mistry</dc:creator>
    <dc:date>2015-07-23T12:29:41Z</dc:date>
    <item>
      <title>Example Java main method for -Dappdynamics.agent.startup.hook=&lt;JAR-file&gt;</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724475#M1756</link>
      <description>&lt;P&gt;Looking at&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO40/Instrument+JVMs+in+Restricted+Environments" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO40/Instrument+JVMs+in+Restricted+Environments&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Step 1.&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;Implement a class with Java main method&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Can someone send me an example of how the main method would look like?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724475#M1756</guid>
      <dc:creator>Ketan_Mistry</dc:creator>
      <dc:date>2015-07-10T14:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Example Java main method for -Dappdynamics.agent.startup.hook=&lt;JAR-file&gt;</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724476#M1757</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You could google it example, this is general&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/tutorial/getStarted/application/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/tutorial/getStarted/application/&lt;/A&gt;&amp;nbsp; and &amp;nbsp;&lt;A href="https://docs.oracle.com/javase/tutorial/deployment/jar/build.html&amp;nbsp;" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.oracle.com/javase/tutorial/deployment/jar/build.html&amp;nbsp;&lt;/A&gt;&lt;SPAN style="line-height: 15px;"&gt;, Hope that is what you are looking for&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:22:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724476#M1757</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2015-07-10T14:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Example Java main method for -Dappdynamics.agent.startup.hook=&lt;JAR-file&gt;</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724477#M1758</link>
      <description>&lt;P&gt;Hmmm, no not what I was looking for. The AppDynamics documentation states:&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;This "startup hook" allows a single point of deployment for the agent.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;I want to understand what this means, and how you do it, if you do not want to specify AppDynamics properties on the JVM command line.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2015 14:37:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724477#M1758</guid>
      <dc:creator>Ketan_Mistry</dc:creator>
      <dc:date>2015-07-10T14:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Example Java main method for -Dappdynamics.agent.startup.hook=&lt;JAR-file&gt;</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724478#M1759</link>
      <description>&lt;P&gt;Hi Ketan,&lt;/P&gt;

&lt;P&gt;Say you are starting a standalone jar as referred in attached screenshot initially Or using startup script instead modifying jvm args, you can pass the jar as jvm arg as referred in attached screenshot see if that information helps, agent config parameters like application-name, node-name must be passed under &amp;lt;Agent_dir&amp;gt;/conf/controller-info.xml as well, Can you please confirm if this info helps&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37797i09E9B8F12AB1F760/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 14:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724478#M1759</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2015-07-13T14:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Example Java main method for -Dappdynamics.agent.startup.hook=&lt;JAR-file&gt;</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724479#M1760</link>
      <description>&lt;P&gt;I got this working now.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2015 12:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Example-Java-main-method-for-Dappdynamics-agent-startup-hook-lt/m-p/724479#M1760</guid>
      <dc:creator>Ketan_Mistry</dc:creator>
      <dc:date>2015-07-23T12:29:41Z</dc:date>
    </item>
  </channel>
</rss>

