Hi Arnaud: Below is the last version of many different tests, all of which
had the same effect. Thanks for your help.
----------------------------------------------------------------------
import java.io.*;
public class NewClass1 {
static ProcessBuilder pb = null;
static Process p = null;
static String cpdir = "c:\\qpid\\qpid-1.0-incubating-M2\\lib\\";
static String cp = cpdir+"backport-util-concurrent-2.2.jar;" +
cpdir+"com.ibm.icu-3.4.4.jar;" +
cpdir+"commons-cli-1.0.jar;" +
cpdir+"commons-codec-1.3.jar;" +
cpdir+"commons-collections-3.2.jar;" +
cpdir+"commons-configuration-1.2.jar;" +
cpdir+"commons-lang-2.1.jar;" +
cpdir+"commons-logging-api-1.0.4.jar;" +
cpdir+"geronimo-jms_1.1_spec-1.0.jar;" +
cpdir+"log4j-1.2.12.jar;" +
cpdir+"mina-core-1.0.0.jar;" +
cpdir+"mina-filter-ssl-1.0.0.jar;" +
cpdir+"mina-java5-1.0.0.jar;" +
cpdir+"qpid-broker-1.0-incubating-M2.jar;" +
cpdir+"qpid-client-1.0-incubating-M2.jar;" +
cpdir+"qpid-common-1.0-incubating-M2.jar;" +
cpdir+"qpid-incubating.jar;" +
cpdir+"slf4j-api-1.4.0.jar;" +
cpdir+"slf4j-log4j12-1.4.0.jar;" +
cpdir+"xalan-2.7.0.jar;" +
"C:\\ofs\\OFSFreeFlow\\build\\classes";
static String[] cmd =
new String[]{"java", "-classpath", cp, "OFFDataProducer"};
public NewClass1()
{
}
public static void main(String[] args) throws IOException
{
pb = new ProcessBuilder(cmd);
p = pb.start();
}
----------------------------------------------------------------------
Kamran Saadatjoo
-----Original Message-----
From: Arnaud Simon [mailto:[EMAIL PROTECTED]
Sent: Friday, May 23, 2008 7:28 AM
To: [email protected]
Subject: Re: InitialContext hangs
Hi Kamran,
How are you setting your ProcessBuilder environment? Can you send us the
relevant code snippet?
Regards
Arnaud
On Thu, 2008-05-22 at 19:05 -0400, Kamran Saadatjoo wrote:
> Hello: I’ve been working on resolving this for a couple of days now, and
I’m
> at the end of my rope. I have a JMS client application that works just
fine
> (using the Java broker). However, if I start this client program from
> another java program using ProcessBuilder the client program hangs on the
> call to InitialContext. Thank you in advance for your help.
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.0/1461 - Release Date: 5/22/2008
4:44 PM
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.0/1461 - Release Date: 5/22/2008
4:44 PM