Preview

corba

Powerful Essays
Open Document
Open Document
4045 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
corba
CORBA Example

Description of the example

This example illustrates the basic tasks in building a CORBA distributed application using Java IDL. You will build the classic Hello World program as a distributed application. The Hello World program has a single operation that returns a string to be printed.

1.The client invokes the sayHello method of the HelloServer.
2.The ORB transfers that invocation to the servant object registered for that IDL interface.
3.The servant's sayHello method runs, returning a Java String.
4.The ORB transfers that String back to the client.
5.The client prints the value of the String.

Getting started

You will need two things: version 1.2 of the JDK software and the idltojava compiler. The JDK provides the API and ORB needed to enable CORBA-based distributed object interaction. The idltojava compiler uses the IDL-to-Java mapping to convert IDL interface definitions to corresponding Java interfaces, classes, and methods, which you can then use to implement your client and server code.

Writing the IDL Interface

In this section, you will write a simple IDL interface for the Hello World program. The IDL interface defines the contract between the client and server parts of your application, specifying what operations and attributes are available. OMG IDL is programming-language independent. You must map it to Java before writing any of the implementation code. (Running idltojava on the IDL file does this for you automatically.) Here's the complete Hello.idl file:

module HelloApp
{
interface Hello { string sayHello(); };
};

OMG IDL is a purely declarative language designed for specifying programming-language-independent operational interfaces for distributed applications. OMG specifies a mapping from IDL to several different programming languages, including C, C++, Smalltalk, COBOL, Ada, and Java. When mapped, each statement in OMG IDL is translated to a corresponding statement

You May Also Find These Documents Helpful

  • Good Essays

    For Graphical User Interface, Net Beans or Eclipse is used to have a greater degree of interfaces between end user and the tool.…

    • 1533 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Phase 2 Db

    • 390 Words
    • 2 Pages

    Integrated Development Environment or IDE is simply programs to write programs. It is generally an editing program with tools to help programmers write code quickly and…

    • 390 Words
    • 2 Pages
    Good Essays
  • Good Essays

    The program is a graphical interface environment, which comes in many different types of programs in many different languages. The graphical interface environment allows…

    • 542 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Cort

    • 834 Words
    • 4 Pages

    Demonstrative communication is in large the greater part of how we communicate with others. The many methods of communication continue to adjust with all the technology that we practice on an everyday base; we manage to depend on this technology for our principal form of communication. “We are witnessing a breathtaking evolution of new forms of digital communication. More than witnessing, we are facilitating it. All of this is unfolding so quickly that we do not have time to pause and reflect on what is happening.” (Iskold, para. 11)…

    • 834 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Deitel, H.M., & Deitel, P.J. (2002). Java: How to program (6th ed.). Upper Saddle River, NJ: Pearson Education…

    • 356 Words
    • 2 Pages
    Good Essays
  • Good Essays

    In this chapter, we will cover asynchronous socket programming and common recipes using Netty for building network-based application. The user story is, you get requirements to develop a system, that client and server can communicate asynchronously using TCP/IP . So we will divide the problem to 6 common recipes:…

    • 1485 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Implementing the design system with coding for this purpose programming languages like C++, JAVA, and C #.…

    • 801 Words
    • 4 Pages
    Satisfactory Essays
  • Powerful Essays

    Comparison of J2Ee and .Net

    • 2752 Words
    • 12 Pages

    .NET is very tightly integrated into Microsoft operating systems, so the decision needs to be made whether to have a Microsoft framework in place. J2EE will work on any operating system, but is more complex and its GUI environment is very limited compared to .NET. There are pros and cons to using both platforms and this paper will discuss the differences and similarities between .NET and J2EE which should be considered before making the decision to use either platform.…

    • 2752 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    pow pow

    • 5205 Words
    • 21 Pages

    1) It is a plain Java technology interface that is designated with the MappedSuperclass annotation.…

    • 5205 Words
    • 21 Pages
    Good Essays
  • Powerful Essays

    Sashi Thangaraj (SAIC), “F2F_UML_Intro_Presentation.pdf “, Introduction to Unified Modeling Language, NCCIB Software Development Processes Facilitating Systems Interoperability…

    • 3409 Words
    • 14 Pages
    Powerful Essays
  • Good Essays

    4.5.4 Activity Diagram

    • 735 Words
    • 3 Pages

    In this project, the object diagram mainly consists of classes or frames login frame, db connection, register frame, set level search frame, element level search frame, user frame and server frame the flow of process is carried over all these frames or objects.…

    • 735 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Java Programming- Chinmay

    • 6385 Words
    • 41 Pages

    As of December 2008, the latest release of the Java Standard Edition is 6 (J2SE). With…

    • 6385 Words
    • 41 Pages
    Powerful Essays
  • Satisfactory Essays

    Anna Hazare

    • 276 Words
    • 2 Pages

    To work sincerely, efficiently and to produce outstanding results by applying my skills, researching aptitude and experience to best of my ability and thereby ensure steady and mutual growth of my organisation.…

    • 276 Words
    • 2 Pages
    Satisfactory Essays

Related Topics