-
15. Re: Core Bridge - Setup Question
timfox Sep 11, 2009 10:35 AM (in response to rnicholson10)I see you're specifying the ip address on the remote connector on box1, but you're specifying the hostname on box2 on the acceptor.
Try specifying the ip adress on the acceptor too. -
16. Re: Core Bridge - Setup Question
rnicholson10 Sep 11, 2009 11:04 AM (in response to rnicholson10)Ok, we are getting closer. If I do that nothing seems to change, but if I then kill box2 I get the following warning on box1:
2009-09-11 15:56:14,233 WARNING [org.hornetq.core.remoting.impl.RemotingConnectionImpl] (Thread-27) Connection failure has been detected: Channel disconnected [code=2]
Then once I restart box2 I get the following:2009-09-11 15:58:26,526 WARNING [org.hornetq.core.client.impl.ClientSessionImpl] (Thread-27) 28385890 Session not found on server when attempting to re-attach 2009-09-11 15:58:26,529 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-27) bridge InputToEngineBridge failed HornetQException[errorCode=2 message=Channel disconnected] 2009-09-11 15:58:26,545 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-5 (group:HornetQ-server-threads32863724-1105161)) Bridge InputToEngineBridge closed objects
If I continue to kill box2 and restart these log messages will cycle on box 1. Note: I don't see either of these messages on a normal startup, this only happens once both boxes are up and running.
Interesting... -
17. Re: Core Bridge - Setup Question
timfox Sep 11, 2009 11:12 AM (in response to rnicholson10)That means jbdevapp2 doesn't resolve to 172.16.113.22 in box2. Probably you have something in your hosts file which resolves it to 127.0.0.1 which won't be visible to another machine.
So you're bridge is connecting now. The messages you are getting when you kill the server are normal. box1 has detected the connection is dead and it is reconnecting when you bring box2 up. -
18. Re: Core Bridge - Setup Question
rnicholson10 Sep 11, 2009 11:37 AM (in response to rnicholson10)But why is the message on restart saying the bridge failed? Surely it should say succeeded?
I still don't get any messages sent across the bridge. It seems to me that the bridge is running but not correctly on box1.
If I run 'grep -i HornetQ server.log' on box1 I get:2009-09-11 15:50:05,216 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@21032809{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 15:50:05,217 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@21032809{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 15:50:05,217 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@21032809{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 15:50:05,218 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@21032809{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 15:50:05,228 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@22207423{vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/phase-test.ear/phase-input.jar/} 2009-09-11 15:50:05,228 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@22207423{vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/phase-test.ear/phase-input.jar/} 2009-09-11 15:50:05,897 INFO [org.hornetq.core.config.impl.FileConfiguration] (main) Loading server configuration from vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml 2009-09-11 15:50:14,321 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (main) live server is starting.. 2009-09-11 15:50:14,354 WARNING [org.hornetq.core.management.impl.ManagementServiceImpl] (main) It has been detected that the cluster admin user and password which are used to replicate management operation from one node to the other have not been changed from the installation default. Please see the HornetQ user guide for instructions on how to do this. 2009-09-11 15:50:14,480 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (main) AIO journal selected 2009-09-11 15:50:14,629 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (main) AIO loaded successfully 2009-09-11 15:50:14,742 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml for AddressSettingsDeployer 2009-09-11 15:50:14,892 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml for SecurityDeployer 2009-09-11 15:50:15,328 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml for QueueDeployer 2009-09-11 15:50:16,249 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-jms.xml for JMSServerDeployer 2009-09-11 15:50:17,311 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (main) HornetQ Server version 2.0.0.BETA5 (hornet-baby, 108) started 2009-09-11 15:50:21,923 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 2009-09-11 15:50:21,948 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 2009-09-11 15:50:22,223 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/jms-ra.rar/META-INF/ra.xml 2009-09-11 15:50:22,247 INFO [org.hornetq.ra.HornetQResourceAdapter] (main) HornetQ resource adaptor started 2009-09-11 15:50:22,330 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/mail-ra.rar/META-INF/ra.xml 2009-09-11 15:50:22,360 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/quartz-ra.rar/META-INF/ra.xml 2009-09-11 15:50:33,922 INFO [org.jboss.ejb3.deployers.JBossASKernel] (main) HornetQServer 2009-09-11 15:50:33,985 INFO [org.jboss.ejb3.deployers.JBossASKernel] (main) HornetQServer 2009-09-11 15:56:14,233 WARNING [org.hornetq.core.remoting.impl.RemotingConnectionImpl] (Thread-27) Connection failure has been detected: Channel disconnected [code=2] 2009-09-11 15:58:26,526 WARNING [org.hornetq.core.client.impl.ClientSessionImpl] (Thread-27) 28385890 Session not found on server when attempting to re-attach 2009-09-11 15:58:26,529 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-27) bridge InputToEngineBridge failed HornetQException[errorCode=2 message=Channel disconnected] 2009-09-11 15:58:26,545 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-5 (group:HornetQ-server-threads32863724-1105161)) Bridge InputToEngineBridge closed objects 2009-09-11 16:01:19,943 WARNING [org.hornetq.core.remoting.impl.RemotingConnectionImpl] (Thread-31) Connection failure has been detected: Channel disconnected [code=2] 2009-09-11 16:02:18,109 WARNING [org.hornetq.core.client.impl.ClientSessionImpl] (Thread-31) 5225780 Session not found on server when attempting to re-attach 2009-09-11 16:02:18,113 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-31) bridge InputToEngineBridge failed HornetQException[errorCode=2 message=Channel disconnected] 2009-09-11 16:02:18,115 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-6 (group:HornetQ-server-threads32863724-1105161)) Bridge InputToEngineBridge closed objects 2009-09-11 16:28:31,359 WARNING [org.hornetq.core.remoting.impl.RemotingConnectionImpl] (Thread-34) Connection failure has been detected: Channel disconnected [code=2] 2009-09-11 16:29:37,520 WARNING [org.hornetq.core.client.impl.ClientSessionImpl] (Thread-34) 17293487 Session not found on server when attempting to re-attach 2009-09-11 16:29:37,521 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-34) bridge InputToEngineBridge failed HornetQException[errorCode=2 message=Channel disconnected] 2009-09-11 16:29:37,523 INFO [org.hornetq.core.server.cluster.impl.BridgeImpl] (Thread-7 (group:HornetQ-server-threads32863724-1105161)) Bridge InputToEngineBridge closed objects
and on box2:2009-09-11 16:29:25,653 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@32341043{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 16:29:25,655 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@32341043{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 16:29:25,655 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@32341043{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 16:29:25,655 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@32341043{vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/profileservice-secured.jar/} 2009-09-11 16:29:25,663 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@11187615{vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/phase-engine.ear/phase-engine.jar/} 2009-09-11 16:29:25,663 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@11187615{vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/phase-engine.ear/phase-engine.jar/} 2009-09-11 16:29:26,324 INFO [org.hornetq.core.config.impl.FileConfiguration] (main) Loading server configuration from vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml 2009-09-11 16:29:33,040 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (main) live server is starting.. 2009-09-11 16:29:33,067 WARNING [org.hornetq.core.management.impl.ManagementServiceImpl] (main) It has been detected that the cluster admin user and password which are used to replicate management operation from one node to the other have not been changed from the installation default. Please see the HornetQ user guide for instructions on how to do this. 2009-09-11 16:29:33,157 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (main) AIO journal selected 2009-09-11 16:29:33,310 INFO [org.hornetq.core.persistence.impl.journal.JournalStorageManager] (main) AIO loaded successfully 2009-09-11 16:29:33,388 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml for AddressSettingsDeployer 2009-09-11 16:29:33,541 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml for SecurityDeployer 2009-09-11 16:29:34,586 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-configuration.xml for QueueDeployer 2009-09-11 16:29:34,965 INFO [org.hornetq.core.deployers.impl.FileDeploymentManager] (main) Deploying vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/hornetq.sar/hornetq-jms.xml for JMSServerDeployer 2009-09-11 16:29:35,551 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (main) HornetQ Server version 2.0.0.BETA5 (hornet-baby, 108) started 2009-09-11 16:29:38,813 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 2009-09-11 16:29:38,842 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 2009-09-11 16:29:39,035 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfsfile:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/jms-ra.rar/META-INF/ra.xml 2009-09-11 16:29:39,053 INFO [org.hornetq.ra.HornetQResourceAdapter] (main) HornetQ resource adaptor started 2009-09-11 16:29:39,117 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/mail-ra.rar/META-INF/ra.xml 2009-09-11 16:29:39,140 INFO [org.jboss.resource.deployers.RARDeployment] (main) Required license terms exist, view vfszip:/opt/jboss-5.1.0.GA-jdk6/server/default-with-hornetq/deploy/quartz-ra.rar/META-INF/ra.xml 2009-09-11 16:29:47,227 INFO [org.jboss.ejb3.deployers.JBossASKernel] (main) HornetQServer 2009-09-11 16:29:47,687 INFO [org.jboss.ejb3.deployers.JBossASKernel] (main) HornetQServer 2009-09-11 16:29:57,694 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (Thread-2 (group:HornetQ-client-global-threads-4486245)) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container 2009-09-11 16:29:57,852 WARN [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (Thread-2 (group:HornetQ-client-global-threads-4486245)) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
What's interesting is the final log message on box2? Is this warning OK? -
19. Re: Core Bridge - Setup Question
timfox Sep 11, 2009 11:56 AM (in response to rnicholson10)I don't know what is wrong with your setup, but it should be very easy to setup a bridge between two machines.
I can do it here without any problems. Without getting a consultant on site (which will cost you money) I don't really see how to resolve this.
I suggest you continue looking at the example and try and see what is different. -
20. Re: Core Bridge - Setup Question
rnicholson10 Sep 11, 2009 11:57 AM (in response to rnicholson10)I will. Thanks for all your help!
-
21. Re: Core Bridge - Setup Question
rnicholson10 Sep 11, 2009 12:58 PM (in response to rnicholson10)Once we had changed the machine name to IP Addresses everything started to work. I wasn't aware of it as by default JBoss is now set to INFO logging!
I didn't know it was working until one of the lads spotted a database table filling up.
Thanks for all your help in getting me up and running.