the way I understood the connection manager’s documentation, clients and a connection manager cannot run on the same machine
since the clients need to resolve the IP of the connection manager but the connection manager needs to resolve the IP of the real openfire server which is different.
I tried to connect to a local connection manager with smack like this:
ConnectionConfiguration config = new ConnectionConfiguration(“localhost”, 5222);
XMPPConnection connection = new XMPPConnection(config);
org.xmlpull.v1.XmlPullParserException: could not determine namespace bound to element prefix stream (position: START_DOCUMENT seen stream:error… @1:14)
Exception in thread “main” Connection failed. No response from server.:
and in the connection manager’s error log:
2008.08.21 14:28:50 [org.jivesoftware.multiplexer.net.ConnectionHandler.messageReceived(ConnectionH andler.java:131)] Closing connection due to error while processing message: <stream:stream to=“localhost” xmlns=“jabber:client” xmlns:stream=“http://etherx.jabber.org/streams” version=“1.0”>
at org.jivesoftware.multiplexer.ServerSurrogate.getSASLMechanisms(ServerSurrogate. java:195)
Is it possible to have clients and the connection manager run on the same machine?
Thanks in advance