Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 13546 invoked from network); 12 Sep 2004 10:15:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Sep 2004 10:15:08 -0000 Received: (qmail 79688 invoked by uid 500); 12 Sep 2004 10:14:58 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 79637 invoked by uid 500); 12 Sep 2004 10:14:57 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 79624 invoked by uid 99); 12 Sep 2004 10:14:57 -0000 X-ASF-Spam-Status: No, hits=2.4 required=10.0 tests=DATE_IN_FUTURE_12_24,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [203.123.176.52] (HELO satyaki.pacific.net.in) (203.123.176.52) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 12 Sep 2004 03:14:55 -0700 Received: from mail2.bgr.ionidea.com (sixz0035.bgr.ionidea.com [203.123.184.35] (may be forged)) by satyaki.pacific.net.in with SMTP id PAA03714 for ; Sun, 12 Sep 2004 15:44:47 +0530 (IST) Received: from ionlifesci19 (W186.bgr.ionidea.com [10.91.1.186] (may be forged)) by mail2.bgr.ionidea.com (8.12.8p1/8.12.2) with ESMTP id i8CAEkYI016488 for ; Sun, 12 Sep 2004 15:44:46 +0530 From: "Ashutosh Kumar" To: Subject: weblogic config through ant Date: Mon, 13 Sep 2004 15:43:21 +0530 Message-ID: <004301c4997a$4bfa2100$ba015b0a@ionlifesci19> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0044_01C499A8.65B25D00" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0044_01C499A8.65B25D00 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I have a swing interface for installer .I call my java program for configuring weblogic server . I works well for configuring jdbc, datasource, deployment But when I configure startup class , the swing interface hangs. I have to kill the program. But it works fine from command line or jbuilder it configures startuclass also? Code is like this Regds Ashutosh MBeanQueryCommand mb=new MBeanQueryCommand(); mb.setDomain("mydomain"); mb.setType("Server"); mb.setName("myserver"); mb.setProperty("servermem"); config.addQuery(mb); MBeanDeleteCommand mdeleteStartup = new MBeanDeleteCommand(); MBeanQueryCommand qryCommandStartup= new MBeanQueryCommand(); qryCommandStartup.setDomain("mydomain"); qryCommandStartup.setName("StartApplication"); qryCommandStartup.setType("StartupClass"); qryCommandStartup.addDelete(mdeleteStartup); config.addQuery(qryCommandStartup); MBeanCreateCommand mstartup=new MBeanCreateCommand(); mstartup.setType("StartupClass"); mstartup.setName("StartApplication"); MBeanSetCommand msetStartup =new MBeanSetCommand(); msetStartup.setAttribute("Arguments" ); msetStartup.setValue("port=7001"); MBeanSetCommand msetClassname =new MBeanSetCommand(); msetClassname.setAttribute("ClassName"); msetClassname.setValue("com.cfm.pcm.core.startup.CFMStartup"); MBeanSetCommand msetfailure =new MBeanSetCommand(); msetfailure.setAttribute("FailureIsFatal"); msetfailure.setValue("false"); MBeanSetCommand msload =new MBeanSetCommand(); msload.setAttribute("LoadBeforeAppDeployments"); msload.setValue("false"); MBeanSetCommand msetTargetds =new MBeanSetCommand(); msetTargetds.setAttribute("Targets"); msetTargetds.setValue("${"+mb.getProperty()+"}"); mstartup.addSet(msetStartup); mstartup.addSet(msetClassname); mstartup.addSet(msetfailure); mstartup.addSet(msload); mstartup.addSet(msetTargetds); config.addCreate(mstartup); config.setProject(psc); configStartUP.addTask(config); psc.executeTarget("config_startup") ; shutdownServer(); ------=_NextPart_000_0044_01C499A8.65B25D00--