<?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>Question Re: Deployment takes long time in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217339#M2281205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some point form my side &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.You have called that method at &lt;STRONG&gt;wdDoinit() of Component Controller&lt;/STRONG&gt; .please avoid this by create a method at CC and call it at point where actually it require (Reason is let our presentation come first then only Business logic and its control , most of the cases which I found is initialize the UI logic at CC is OK and I prefer this unless &amp;amp; until it require).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If java code is big enough then create one java class at directory and use the method .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help you to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Satish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2009 06:32:15 GMT</pubDate>
    <dc:creator>former_member185086</dc:creator>
    <dc:date>2009-10-15T06:32:15Z</dc:date>
    <item>
      <title>Deployment takes long time</title>
      <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaq-p/6217335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a WDJ app, where i have called a java method to execute a system commant "cmd /c nbtstat -a ipadd" . It takes 10 mins to get deployed on the server.PLease advice how the response time can be reduced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ishita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 11:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaq-p/6217335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-14T11:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment takes long time</title>
      <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217336#M2281202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz put the code specific ot that java method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Satish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2009 12:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217336#M2281202</guid>
      <dc:creator>former_member185086</dc:creator>
      <dc:date>2009-10-14T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment takes long time</title>
      <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217337#M2281203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code from where i call the java code from the controller wdDoinit()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();&lt;/P&gt;&lt;P&gt;	   machinename = req.getClientHostAddress();&lt;/P&gt;&lt;P&gt;	 //  wdContext.currentContextElement().setMachname(machinename);&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;	   IWDClientUser clientUser = WDClientUser.getLoggedInClientUser();&lt;/P&gt;&lt;P&gt;	   String username="" ;&lt;/P&gt;&lt;P&gt;	   username = GetInfo.userinfo(machinename); // Java method called to execute the command&lt;/P&gt;&lt;P&gt;	   mgr.reportSuccess("Hostname :"+ username);&lt;/P&gt;&lt;P&gt;	   mgr.reportSuccess("IP :"+ machinename);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This the Java code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;package user_pwd_comp;&lt;/P&gt;&lt;P&gt;import java.io.BufferedReader;&lt;/P&gt;&lt;P&gt;import java.io.InputStreamReader;&lt;/P&gt;&lt;P&gt;import java.net.InetAddress;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import com.sap.tc.webdynpro.services.sal.adapter.api.IWDRequest;&lt;/P&gt;&lt;P&gt;import com.sap.tc.webdynpro.services.sal.adapter.api.WDProtocolAdapter;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Created on Oct 14, 2009&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To change the template for this generated file go to&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Window&amp;amp;gt;Preferences&amp;amp;gt;Java&amp;amp;gt;Code Generation&amp;amp;gt;Code and Comments&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;@author Ishita.Shah&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; *&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To change the template for this generated type comment go to&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Window&amp;amp;gt;Preferences&amp;amp;gt;Java&amp;amp;gt;Code Generation&amp;amp;gt;Code and Comments&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; */&lt;/P&gt;&lt;P&gt;public  class GetInfo {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    public static void main (String args[]) throws Exception{&lt;/P&gt;&lt;P&gt;    	String  ip = GetInfo.userinfo("192.168.100.229");&lt;/P&gt;&lt;P&gt;    	System.out.println(ip);&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;	public static String userinfo(String ipadd) throws Exception {&lt;/P&gt;&lt;P&gt;		InetAddress local = InetAddress.getLocalHost();&lt;/P&gt;&lt;P&gt;		String ip = ""+local; &lt;/P&gt;&lt;P&gt;		System.out.println(ip);		&lt;/P&gt;&lt;P&gt;		System.out.println(ipadd);&lt;/P&gt;&lt;P&gt;		Runtime rt = Runtime.getRuntime();&lt;/P&gt;&lt;P&gt;		ipadd = "cmd /c nbtstat -a " + ipadd;&lt;/P&gt;&lt;P&gt;		Process pr = rt.exec(ipadd);&lt;/P&gt;&lt;P&gt; 		BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));&lt;/P&gt;&lt;P&gt; 		String line=null;&lt;/P&gt;&lt;P&gt; 		String result = null;&lt;/P&gt;&lt;P&gt;		int i = 0;&lt;/P&gt;&lt;P&gt;		while((line=input.readLine()) != null) {&lt;/P&gt;&lt;P&gt;			if(i==14)&lt;/P&gt;&lt;P&gt;			{&lt;/P&gt;&lt;P&gt;			  result = line.substring(0,15);&lt;/P&gt;&lt;P&gt;			  pr.destroy();&lt;/P&gt;&lt;P&gt;	         } &lt;/P&gt;&lt;P&gt;			i++;&lt;/P&gt;&lt;P&gt;		}&lt;/P&gt;&lt;P&gt;		//int exitVal = pr.waitFor();&lt;/P&gt;&lt;P&gt;		//System.out.println("Exited with error code "+exitVal);&lt;/P&gt;&lt;P&gt;		return result;&lt;/P&gt;&lt;P&gt;	}&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ishita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ishita Shah on Oct 15, 2009 6:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 04:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217337#M2281203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-15T04:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment takes long time</title>
      <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217338#M2281204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While deploying you code , server dont run the code what you wrote inside you program, what it will do is it just builds your code and checks for any build time errors. So when you say deploying is taking time means&lt;/P&gt;&lt;P&gt;there might be 2 causes.&lt;/P&gt;&lt;P&gt;1. May be you have a very huge amount of UI or java code is there to build you application and deploy.&lt;/P&gt;&lt;P&gt;2. If you are deploying through SDM, please ask you basis guy to remove the unwanted .ear temp files in the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This delay in deployment happened with me also. In my case my webdynpro project had 10 applications with around 40 views. So it used to take 3  to 10 mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SrinivaS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 06:29:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217338#M2281204</guid>
      <dc:creator>srinivas_sistu</dc:creator>
      <dc:date>2009-10-15T06:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment takes long time</title>
      <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217339#M2281205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some point form my side &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.You have called that method at &lt;STRONG&gt;wdDoinit() of Component Controller&lt;/STRONG&gt; .please avoid this by create a method at CC and call it at point where actually it require (Reason is let our presentation come first then only Business logic and its control , most of the cases which I found is initialize the UI logic at CC is OK and I prefer this unless &amp;amp; until it require).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. If java code is big enough then create one java class at directory and use the method .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help you to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Satish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2009 06:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217339#M2281205</guid>
      <dc:creator>former_member185086</dc:creator>
      <dc:date>2009-10-15T06:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment takes long time</title>
      <link>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217340#M2281206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You very much for your answers.I think the issue was with the server.No action was required from my side . Now its working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ishita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ishita Shah on Oct 23, 2009 9:45 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ishita Shah on Oct 23, 2009 10:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2009 07:45:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/deployment-takes-long-time/qaa-p/6217340#M2281206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-23T07:45:44Z</dc:date>
    </item>
  </channel>
</rss>

