|
From: Tim A. <tm...@ne...> - 2005-04-19 14:02:37
|
By default JNDI listens on port 3035. You need to change org.jahia.cache.jmsCacheContextProviderURL =3D tcp\://blah.com.au\:3030/ =20 to: org.jahia.cache.jmsCacheContextProviderURL =3D tcp\://blah.com.au\:3035 /=20 -Tim =20 -----Original Message----- From: ope...@li... [mailto:ope...@li...] On Behalf Of Chris Stephens Sent: Monday, 18 April 2005 2:35 PM To: ope...@li... Subject: [openjms-user] problems getting OpenJMS to connect over tcp = (from Jahia CMS) Hi folks,=20 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=3D9099205). 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:=20 org.jahia.cache.jmsCacheContextProviderURL =3D rmi\://blah.com.au\:1099/=20 to read:=20 org.jahia.cache.jmsCacheContextProviderURL =3D tcp\://blah.com.au\:3030/=20 For completeness, this is the full extent of JMS configuration in = Jahia's properties file:=20 ### JMS Cache Settings ###############=20 org.jahia.cache.jmsCacheActivated =3D true=20 org.jahia.cache.jmsCacheInitialContextFactory =3D org.exolab.jms.jndi.InitialContextFactory=20 org.jahia.cache.jmsCacheContextProviderURL =3D rmi\://careerone01.ac3.com.au\:1099/=20 org.jahia.cache.jmsCacheTopicConnectionFactoryName =3D JmsTopicConnectionFactory=20 org.jahia.cache.jmsCacheTopicName =3D jahiaCache = org.jahia.cache.jmsCacheMaxMessagesInPackage =3D 2000=20 org.jahia.cache.jmsServerLookupSleepTime =3D 10000=20 I also opened up the appropriate ports: 3030 and 3035.=20 But this doesn't work and I get the following Jahia error in = catalina.out:=20 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=3Djavax.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?=20 Thanks in advance,=20 Chris=20 Chris Stephens > Technology Director phone > +61 2 9779 0129 mobile > +61 403 074 567 fax > +61 2 9779 0199=20 http://www.netreturn.com.au=20 |