
Originally Posted by
matthew
Code:
_adapter->add(new ChatSessionManagerI, Ice::stringToIdentity("ChatSessionManager"));
Code:
<adapter name="ChatServer" endpoints="tcp">
<object identity="ChatSessionManager" type="::Chat::ChatSession"/>
<object identity="verifier" type="::Glacier2::PermissionsVerifier"/>
Regards, Matthew
I don't understand why you put type="::Chat::ChatSession" and not type="::Chat::ChatSessionManager"
I can't configure glacier2 to contact my icepack
Code:
glacier2router: error: service caught unhandled Ice exception:
Network.cpp:545: Ice::ConnectionRefusedException:
connection refused: Connection refused
[ glacier2router: Network: accepted tcp connection
local address = 192.168.0.3:10005
remote address = 192.168.0.3:50121 ]
[ glacier2router: Network: accepted tcp connection
local address = 127.0.0.1:32785
remote address = 127.0.0.1:47850 ]
[ glacier2router: Network: closing tcp connection
local address = 192.168.0.3:10005
remote address = 192.168.0.3:50121 ]
[ glacier2router: Network: closing tcp connection
local address = 127.0.0.1:32785
remote address = 127.0.0.1:47850 ]
[ glacier2router: Network: stopping to accept tcp connections at 192.168.0.3:10005 ]
[ glacier2router: Network: stopping to accept tcp connections at 127.0.0.1:32785 ]
My glacier2 config file
Code:
Glacier2.Client.Endpoints=tcp -h 192.168.0.3 -p 10005
Glacier2.Server.Endpoints=tcp -h 127.0.0.1
Glacier2.SessionManager=ChatSessionManager:tcp -h 127.0.0.1 -p 10001
Glacier2.PermissionsVerifier=verifier:tcp -h 127.0.0.1 -p 10001
Glacier2.SessionTimeout=30
Ice.Trace.Network=3
Ice.Trace.Protocol=3
Ice.Warn.Connections=3
ChatService code
Code:
_adapter=communicator->createObjectAdapter(name);
Ice::Identity id=Ice::stringToIdentity("ChatServer/ChatServer");
_adapter->add(new Oz::Chat::PermissionsVerifierI,Ice::stringToIdentity("verifier"));
_adapter->add(new Oz::Chat::SessionManagerI,Ice::stringToIdentity("ChatSessionManager"));
Oz::Chat::ChatServerPtr server=new Oz::Chat::ChatServerI(id);
_adapter->add(server,id);
_adapter->activate();
I atacht here my icepacnode cofing files