| HelloCorba |
Creating Sample Crossware |
Once you have run BuildHelloCorba and created all the necessary classes, you will want to make sure your Enterprise Server is set up with a directory (for example, one called iiop_objects) for CORBA objects with read/write permissions granted to all.
Note: Setting up such a CORBA repository directory with read/write permissions granted to All will pose a security risk, and is not a recommended technique for use outside of a firewall.
Setting Up the iiop_objects Directory
The following assumes a familiarity with Enterprise Server 3.x or better.
iiop_objects
.
iiop_objects
to.
Now save and apply your changes.
Running the HelloCorbaDaemon
Note: Before you run RunHelloCorbaDaemon, you may need to modify
it to point to appropriate directories on your machine.
Running the script RunHelloCorbaDaemon.bat (type
If you look in the
Using the HelloCorba Crossware Component in Visual JavaScript
Now, when you press "Get String" it will retrieve the string from the CORBA object -- even if you go to another
machine and load the page there, pressing "Get String" will retrieve the same string!
Congratulations! You have just built your first CORBA Crossware Application!!
source RunHelloCorbaDaemon.sh
on Unix) will run the HelloCorbaDaemon object in a Java session with the ORB Locator disabled.
This should produce output similar to:
HelloCorba: initializing...
HelloCorba: starting CORBA...
HelloCorba being registered to: http://jenni/iiop_objects/HelloCorba
HelloCorba Daemon ready for service
iiop_objects
directory on your server, you should now
see a HelloCorba file. This contains the data for the Corba object which is being managed by
the HelloCorbaDaemon.
(see the instructions for Creating Sample Crossware from the ShowText
example for more information on the basics of creating a new palette page and importing
a component).
http://mymachine.mydomain.com/iiop_objects/HelloCorba
Note: If you accidentally omit this step, you will get a "corbaObject not defined" error when you
press a button on the page after deployment.
document.Form1.Text1.value
.
to read
idl_HelloCorba1.getOneString()
document.Form1.Text2.value = idl_HelloCorba1.getOneString()
If it is on the same machine, you can simply deploy it to a file which is
located somewhere under the primary document root directory mapping for your server.