RE: problems getting OpenJMS to connect over tcp (from Jahia CMS)

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <000801c544e9$7a61ddb0$eb7cfddc@xerces>
By default JNDI listens on port 3035. You need to change
   org.jahia.cache.jmsCacheContextProviderURL              =
tcp\://blah.com.au\:3030/  

to:

   org.jahia.cache.jmsCacheContextProviderURL              =
tcp\://blah.com.au\:3035  / 

 -Tim

 
  -----Original Message-----
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Chris
Stephens
Sent: Monday, 18 April 2005 2:35 PM
To: [email protected]
Subject: [openjms-user] problems getting OpenJMS to connect over tcp (from
Jahia CMS)



Hi folks, 

I am setting up a Jahia CMS (www.jahia.org) cluster according to the
instructions in their Jahia Clustering HOWTO (v2) document. Jahia uses
OpenJMS for syncing the CMS cache across multiple instances.

If I set up my two Jahia instances to use RMI to connect to OpenJMS (running
on a third server) all is well - except that I cannot then firewall the
machines properly because of the anonymous ports used (cf.
http://sourceforge.net/mailarchive/message.php?msg_id=9099205).

So I switched across to the TCP connector by changing the Connector scheme
to tcp. All apears fine and I can connect OK to OpenJMS with "telnet
localhost 3030".

In Jahia, the config change is performed by just changing one line: 

org.jahia.cache.jmsCacheContextProviderURL              =
rmi\://blah.com.au\:1099/ 

to read: 

org.jahia.cache.jmsCacheContextProviderURL              =
tcp\://blah.com.au\:3030/ 

For completeness, this is the full extent of JMS configuration in Jahia's
properties file: 

### JMS Cache Settings ############### 

org.jahia.cache.jmsCacheActivated                       =   true 
org.jahia.cache.jmsCacheInitialContextFactory           =
org.exolab.jms.jndi.InitialContextFactory 
org.jahia.cache.jmsCacheContextProviderURL              =
rmi\://careerone01.ac3.com.au\:1099/ 
org.jahia.cache.jmsCacheTopicConnectionFactoryName      =
JmsTopicConnectionFactory 
org.jahia.cache.jmsCacheTopicName                       =   jahiaCache 
org.jahia.cache.jmsCacheMaxMessagesInPackage            =   2000 
org.jahia.cache.jmsServerLookupSleepTime                =   10000 

I also opened up the appropriate ports: 3030 and 3035. 

But this doesn't work and I get the following Jahia error in catalina.out: 

1315607 [JMS Reconnection]  WARN -
org.jahia.services.cache.JMSConnectionException: JMS Connection error, Could
not get the InitialContext [org.exolab.jms.jndi.InitialContextFactory] on
provider [tcp://blah.com.au:3030/]., root cause:Operation getNameParser
failed: java.io.EOFException root cause=javax.naming.NamingException:
Operation getNameParser failed: java.io.EOFException

I have since flushed my iptables so I know it is not a firewall problem. 

Is this an OpenJMS config error on my part? Am I missing something? 

Thanks in advance, 

Chris 

Chris Stephens > Technology Director
phone > +61 2 9779 0129
mobile > +61 403 074 567
fax > +61 2 9779 0199 
http://www.netreturn.com.au
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.