Java idl question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Firewalker

    #1

    Java idl question

    Hello all,
    I am trying to write the simple hello world program by java sun. The thing
    that the implemnetation of the interface is in seperate class than the
    server. The tutorial on the web just shows you that the implementation
    returns a simple string "hello world". What if I want to return a preperty
    of the serve (say the value of the variab) or if I want to use a function
    written in the server class? How would I be able to use the server's
    information if the implemnatation is in different class?!

    Thank you very much for your help


  • David Moss

    #2
    Re: Java idl question

    In article <OPidneHWnLbQfc beRVn-og@rogers.com>, hana1@rogers.co m
    writes...
    [color=blue]
    > Hello all,
    > I am trying to write the simple hello world program by java sun. The thing
    > that the implemnetation of the interface is in seperate class than the
    > server. The tutorial on the web just shows you that the implementation
    > returns a simple string "hello world". What if I want to return a preperty
    > of the serve (say the value of the variab) or if I want to use a function
    > written in the server class? How would I be able to use the server's
    > information if the implemnatation is in different class?![/color]

    If you have a server it is serving something.
    Most likely requests for information.

    Write a servlet for your server that returns the information you seek.
    Write a function in your application that calls the servlet.
    Use the result in your application same as any other variable.


    --
    DM
    personal opinion only

    Comment

    Working...