[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjms-developer
Subject:    Re: [openjms-developer] Bug in openjms 0.7.7 beta 1
From:       Dean Anderson <dean () av8 ! com>
Date:       2007-07-03 13:40:57
Message-ID: Pine.LNX.4.44.0707030929040.11071-100000 () citation2 ! av8 ! net
[Download RAW message or body]

On Tue, 3 Jul 2007, Tim Anderson wrote:
> Not sure what you mean. When using the RMI registry, you need to
> connect to it using the rmi protocol. If the tcps connector is also
> configured, ConnectionFactory instances bound in the registry will
> connect to the server via tcps; you need to configure the tcps
> properties as per http://openjms.sourceforge.net/usersguide/tcps.html

Yes. Did that: (I think):

I had these properties:

factoryName=ConnectionFactory
destName=queue2
java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
java.naming.provider.url=rmi://localhost:1099
username=test1
password=<deleted>
org.exolab.jms.net.tcps.keyStore=client.keystore
org.exolab.jms.net.tcps.keyStorePassword=<deleted>
org.exolab.jms.net.tcps.trustStore=client.keystore
org.exolab.jms.net.tcps.trustStorePassword=<deleted>

These properties were passed to the Receiver.java program (slightly 
modified to load a properties file):

            context = new InitialContext(appProps);

            // look up the ConnectionFactory
            factory = (ConnectionFactory) 
		context.lookup(appProps.getProperty("factoryName"));

            // look up the Destination
            dest = (Destination) 
		context.lookup(appProps.getProperty("destName"));

            // create the connection
            connection = 
		factory.createConnection(appProps.getProperty("username"), 
                appProps.getProperty("password"));
            //connection = factory.createConnection();

            // create the session
            session = connection.createSession(
                false, Session.AUTO_ACKNOWLEDGE);

            // create the receiver
            receiver = session.createConsumer(dest);

            // start the connection, to enable message receipt
            connection.start();


This works, but only if -Djavax.net.ssl.trustStore=client.keystore
is added to run.sh.  Otherwise, you get an unknown_certificate error.

		--Dean


	


-- 
Av8 Internet   Prepared to pay a premium for better service?
www.av8.net         faster, more reliable, better service
617 344 9000   



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
openjms-developer mailing list
openjms-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openjms-developer
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic