Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

How to use CORBA in Perl?

( #11624=categorized question: print w/ replies, xml ) Need Help??
Contributed by Anonymous Monk on May 15, 2000 at 17:59 UTC
Q&A  > network programming


After download an see the CORBA::MICO module, I can't get any idea on how to use CORBA in Perl. How map IDL methods to Perl class methods?

Answer: How to use CORBA in Perl?
contributed by djantzen

When building a CORBA-based application, the link between your IDL files and your own code is bridged by an IDL compiler. In the COPE package, this compiler is called idl2perl.

The compiler will parse the IDL and use it to generate code required to support method invocations between objects. The generated code fits into two general categories: client-side stubs, and server-side skeletons. (Note that the specific files generated will vary according to ORB implementation.)

As a programmer, your job at this point will be to supply the server-side behavior, generally contained within a class named "Class_impl", where "impl" indicates that it is the implementation. Your client objects will compile and link to the stubs, and invoke methods upon remote objects as though they were running within the same process.

Answer: How to use CORBA in Perl?
contributed by princepawn

An alternative I saw posted to CPAN recently was COPE: corba objects for Perl. I havent tried it, but you might check it out.

Please (register and) log in if you wish to add an answer

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (9)
    As of 2015-11-26 12:24 GMT
    Find Nodes?
      Voting Booth?

      What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

      Results (697 votes), past polls