Re: Bug in openjms 0.7.7 beta 1

Dean Anderson <[email protected]> Tue, 3 Jul 2007 09:40:57 -0400 (EDT)
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
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/