Archived
This forum has been archived. Please start a new discussion on GitHub.
IcePack Question
xdm
La Coruña, Spain
in Help Center
Helow
I have icepack runing on a linux server whith and ice service
it is posible access to this service from windows clients?
I have icepack runing on a linux server whith and ice service
it is posible access to this service from windows clients?
0
Comments
-
Yes, you can use IcePack from Windows clients, but you currently cannot run IcePack servers on Windows platforms.
Take care,
- Mark0 -
My linux clients use this code to adquire a proxy to TiendaService
Ice::PropertiesPtr properties = communicator()->getProperties(); IcePack::QueryPrx query=IcePack::QueryPrx::checkedCast(communicator()->stringToProxy("IcePack/Query")); ClienteAdmin::tienda= TiendaRezAdminPrx::checkedCast(query->findObjectByType("::TiendaRez"));
but this don't compile in windows because the header file IcePack/Query.h is missing
Then I try in windows creating a proxy from comunicatorIce::PropertiesPtr properties = communicator()->getProperties(); const char* proxyProperty = "Tienda.Proxy"; std::string proxy = properties->getProperty(proxyProperty); Ice::ObjectPrx object= communicator()->stringToProxy(proxy); tienda=TiendaRezAdminPrx::uncheckedCast(object);
but the client throw a exception Ice::ObjectNotExist
I set Tienda.Proxy in config fileTienda.Proxy=tienda/tienda:tcp -h Mydomain.com -p 12000
And I create The Object tienda/tienda in server with the next code:Ice::Identity idTienda=Ice::stringToIdentity("tienda"); idTienda.category="tienda"; if (!TiendaRezI::_evictor->hasObject(idTienda)) { TiendaRezIPtr tienda=new TiendaRezI(); TiendaRezI::_evictor->createObject(idTienda,tienda); }
can you said me what is wrong
Thanks for all0 -
Originally posted by xdm
but this don't compile in windows because the header file IcePack/Query.h is missingI set Tienda.Proxy in config file
Tienda.Proxy=tienda/tienda:tcp -h Mydomain.com -p 12000
- Mark0 -
the end point is of IcePack0
-
Originally posted by xdm
the end point is of IcePack
The example proxy you used above is a direct proxy that points to the IcePack endpoint, but there is no object with identity tienda/tienda at that endpoint, and therefore Ice::ObjectNotExistException is raised.
See the IcePack chapter in the manual for more information on indirect proxies.
Take care,
- Mark0