On Fri, Jul 06, 2001 at 06:20:46PM -0600, Tom Marrs wrote:
> Hi,
> I'm new to JBoss and JMS, although I've used the J2EE
> on other app servers. I've got a couple of questions about
> connecting to JMS queues from standalone Java applications
> (i.e., not from an EJB):
> 
> 1) I'd like to use the default constructor for InitialContext,
>    but no matter what I do to the CLASSPATH, the jndi.properties
>    file isn't found. Is this because I'm connecting as a standalone
>    client? Anyway, here are my attempts to set the CLASSPATH (in Windows 98):
> 
> SET
> 
>CLASSPATH=%CLASSPATH%;%JBOSS_HOME%\lib\ext\jboss.jar;%JBOSS_HOME%\client\ejb.jar;%JBOSS_HOME%\client\jaas.jar;%JBOSS_HOME%\client\jbosssx-client.jar;%JBOSS_HOME%\client\jboss-client.jar;%JBOSS_HOME%\client\jbossmq-client.jar;%JBOSS_HOME%\client\jnp-client.jar
> SET
> 
>CLASSPATH=%CLASSPATH%;%JBOSS_HOME%\lib\ext\jndi.jar;%JBOSS_HOME%\lib\ext\jms.jar;%JBOSS_HOME%\conf\default

SET CLASSPATH=%CLASSPATH%;DIR_WHERE_JNDI.PROPERTIES_LIES_IN

or, if jndi.properties is in the current working directory

SET CLASSPATH=%CLASSPATH%;.

-billy.

-- 
Philipp Meier                              o-matic GmbH
Gesch�ftsf�hrer                  Pfarrer-Wei�-Weg 16-18
Tel.: +49-(0)700-66284236                     89077 Ulm

PGP signature

Reply via email to