[Fwd: [omniORB] OmniORB and JacORB]

Peter.Braun Peter.Braun@mchp.siemens.de
Fri, 14 Aug 1998 10:44:23 +0200


This is a multi-part message in MIME format.
--------------3BBAA2CCE47DC8F384FDE9B1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Zsolt Zsoldos wrote:
> 
> Jonas Andersen wrote:
> >
> > I'm currently looking into using JacORB in a Applet. Anyone got ideas? Netscape seems to want to use the internal ORB, which does not like to be initialized the same way.
> > I've tried ORB.init();
> > and ORB.init(this, props); Where this, is the applet instance and props is a empty Properties.
> >
> Check out:
> http://developer.netscape.com/tech/corba/index.html
> 
> Also for the use of Netscape internal naming service (from applets):
> http://developer.netscape.com:80/docs/technote/components/corba/naming.htm
> 

We are using the Java-Plugin (http://java.sun.com/products/plugin/)
instead of the JRE of the Communicator. JDK 1.1.6 does not include an ORB.

The attachments include the simple helloworld applet from the javaidl
example adapted for the JacORB example1.  
TutPlug.html file shows the html tags necessary for
the Java-Plugin.

The directory on the web server that contains the HTML page for the
applet contains the following files:
TutPlug.html    _JacORB_NS@     example1/       jacorb_rt.jar

The example1 directory contains the HelloApplet.class file and all other
required files. The _JacORB_NS is a link to the file that contains the
Object reference of the Nameserver.
The jacorb_rt.jar file contains the orb classes. (Does anybody know how
where to install the file on the client that the javaplugin would find it).

Hope that helps.

Peter
--
Dr. Peter Braun SIEMENS AG      | email: Peter.Braun@mchp.siemens.de
ZT IK 1                         | phone:  +49-89-636-48298
Otto-Hahn-Ring 6, 81739 Muenchen| fax:    +49-89-636-47457
--------------3BBAA2CCE47DC8F384FDE9B1
Content-Type: application/x-unknown-content-type-java_auto_file; name="HelloApplet.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="HelloApplet.java"

Ly8KLy8gRmlsZTogamFjb3JiL2RlbW8vZXhhbXBsZTEvQ29yYmFDbGllbnQuamF2YQovLwov
LwovLyBhIENPUkJBLWNvbXBsaWFudCBjbGllbnQgZm9yIHRoZSByZW1vdGUgc2V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zYWdlKCAiaGVsbG8gV29ybGQi
ICk7CgkJCgkgICAgfSBjYXRjaCAoamFjb3JiLk9yYi5TeXN0ZW1FeGNlcHRpb24gc2UpewoJ
CXNlLnByaW50U3RhY2tUcmFjZSgpOwoJICAgIH0KICAgIH0KICAgIAogICAgcHVibGljIHZv
aWQgcGFpbnQoR3JhcGhpY3MgZykgCiAgICB7CglnLmRyYXdTdHJpbmcobWVzc2FnZSwgMjUs
IDUwKTsKICAgIH0KCiAgICBTdHJpbmcgbWVzc2FnZSA9ICIiOwogICAgCn0K
--------------3BBAA2CCE47DC8F384FDE9B1
Content-Type: text/html; charset=us-ascii; name="TutPlug.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="TutPlug.html"
Content-Base: "file:///J|/JacORB_0.9d/jacorb/demo/exa
	mple1/TutPlug.html"

<HTML>
<!--Copyright 1997, Sun Microsystems, Inc. -->
<HEAD>
   <TITLE>Java IDL Getting Started: Running HelloApplet</TITLE>
<!-- Changed by: vlc, 7/30/97 -->
   <X-SAS-WINDOW TOP=42 BOTTOM=477 LEFT=4 RIGHT=534>
</HEAD>
<BODY BGCOLOR="#FFFFFF">


<H1 ALIGN=CENTER>Running the Hello World Applet</H1>
<HR>

<P>If all goes well, the applet appears below:

<P>

<EMBED  type="application/x-java-applet;version=1.1" 
	width="500"
	height="300"
	align="baseline" code="example1.HelloApplet.class"
	archive=jacorb_rt.jar
	pluginspage="http://java.sun.com/products/1.1/plugin-install.html">
<NOEMBED>
         No JDK 1.1 support for APPLET!!
</NOEMBED>
</EMBED>

<P><HR>
<FONT
SIZE="-2"><A HREF="http://www.sun.com/share/text/SMICopyright.html">Copyright
&copy;</A></FONT><FONT SIZE="-2"> 1996, 1997 Sun Microsystems, Inc.,
2550 Garcia Ave., Mtn. View, CA. 94043-1100 USA., All rights
reserved.</FONT></P>

</BODY>
</HTML>




--------------3BBAA2CCE47DC8F384FDE9B1--