Philipp,
I've tried both things that you suggest. According to everything that
I've read on JNDI, you should be able to use the directory where jndi.properties
resides in your classpath, but I can't make this work. I don't understand.
I'll just have to hardcode everything for now until I get more time
to fix this (I'm very pressed for time right now).

Thanks.

Tom

Philipp Meier wrote:
> 
> 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
> 
>   
>----------------------------------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to