[omniORB] transient exception handler and call timeout problem
Vladislav Vrtunski
vladislav.vrtunski at dmsgroup.co.yu
Wed May 4 13:38:32 BST 2005
Hi,
We are back and this time we are sending complete sample code that
is making omniorb behave as described in previous posts. Simple Makefile
that we used to build both server and client on a FC3 box is included.
We have also tested on windows boxes and the result is exactly the same.
Also, it does not matter whether the client and the server are on the
same machine or on different ones.
Please, can you tell us if this is the expected behavior of omniorb
or not.
Thanx in advance!
Regards,
--
Vladislav Vrtunski
DMS Group
Serbia & Montenegro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IServer_i.cpp
Type: text/x-c++src
Size: 738 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050504/4763e7ed/IServer_i-0001.bin
-------------- next part --------------
#ifndef __ISERVER_I_H__
#define __ISERVER_I_H__
#include "TestServer.h"
using namespace TESTSERVER;
class IServer_i: public POA_TESTSERVER::IServer,
public PortableServer::RefCountServantBase
{
private:
// Make sure all instances are built on the heap by making the
// destructor non-public
virtual ~IServer_i()
{};
CORBA::Long m_nStatus;
CORBA::ULong m_nCallCounter;
unsigned long m_nTimeToSleep;
public:
// standard constructor
IServer_i(unsigned long nTimeToSleep = 3) :
m_nStatus(0), m_nCallCounter(0), m_nTimeToSleep(nTimeToSleep)
{}
CORBA::Long GetStatus();
CORBA::Long SetStatus(CORBA::Long status);
};
#endif //__ISERVER_I_H__
-------------- next part --------------
TestServer.cpp TestServer.h TestServerDynSK.cpp: TestServer.idl
omniidl -bcxx -I. -Wbkeep_inc_path -Wba -Wbh=.h -Wbs=.cpp -Wbd=DynSK.cpp -nf TestServer.idl
TestServer: TestServer.cpp TestServer.h TestServerDynSK.cpp TestServerMain.cpp IServer_i.cpp IServer_i.h
g++ -o $@ TestServer.cpp TestServerDynSK.cpp TestServerMain.cpp IServer_i.cpp -lomniORB4 -lCOS4 -lomniDynamic4 -lomnithread
TestClient: TestServer.cpp TestServer.h TestServerDynSK.cpp TestClient.cpp
g++ -o $@ TestServer.cpp TestServerDynSK.cpp TestClient.cpp -lomniORB4 -lCOS4 -lomniDynamic4 -lomnithread
all: TestServer TestClient
clean:
rm TestServer
rm TestClient
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestClient.cpp
Type: text/x-c++src
Size: 6905 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050504/4763e7ed/TestClient-0001.bin
-------------- next part --------------
#ifndef __TESTSERVER_IDL__
#define __TESTSERVER_IDL__
module TESTSERVER
{
interface IServer
{
long GetStatus();
long SetStatus(in long status);
};
};
#endif // __TESTSERVER_IDL__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestServerMain.cpp
Type: text/x-c++src
Size: 3836 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20050504/4763e7ed/TestServerMain-0001.bin
More information about the omniORB-list
mailing list