[omniORB] Working on CosTransactions, but need help

Duncan Grisby duncan@grisby.org
Mon Feb 17 12:37:01 2003


On Wednesday 12 February, Scott Robertson wrote:

> Upon further review of the code, it looks like omniCurrent is just for
> the per thread data... And that the only base class I should inherit
> from is CORBA::Current..... correct?

Correct.

Answering your earlier question...

> I got that part, but is there away to compile all my code into a shared
> library and then have a stock version of omniOrb find it, call some sort
> of init method where I can then register the initaliser? 

Modulo problems with linkers that are too clever for their own good,
you can just make a shared library that has static initialisers. When
an application links with your library, the static initialisers run
and everything works. Look at the codesets library, for example.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan@grisby.org     --
   -- http://www.grisby.org --