Archives
 
 
 
  Special
 
 
 
  About Us
 
 
 

Newsletter
Free E-mail Newsletter from BYTE.com

 
    
           
Visit the home page Browse the four-year online archive Download platform-neutral CPU/FPU benchmarks Find information for advertisers, authors, vendors, subscribers

ArticlesBridging Beans and Active X


February 1998 / Features / Making Components Portable with JavaBeans / Bridging Beans and Active X

While JavaBeans might be the greatest thing since sliced bread, the reality is that the dominant desktop environment and some of the major applications designed for it are built to use ActiveX components. Thus, JavaBean developers have been quick to provide a solution: the JavaBeans bridge for ActiveX.

This solution enables any JavaBean to be used as a first-class ActiveX component -- that is, it lets you mix JavaBeans with ActiveX components. The bridge run-time looks to the s ystem like an ActiveX control, while at the same time giving the Bean a Java environment.

The package contains a utility that allows the capabilities of a JavaBean to be expressed in terms of OLE-type-library and Windows-registry information. After the definition of the Bean is added to the Windows system, programs can create instances of it, and tools such as Visual Basic can interrogate its properties. The bridge run-time code then provides the mappings among the JavaBean, OLE events, and method calls so that everything is transparent to both the user and the JavaBean. This is significant: Creators of JavaBeans don't need to know whether their Beans are in an ActiveX container. They don't have to write any extra or specialized code to enable their Beans to be used as ActiveX components.

JavaBeans also provides tools for taking existing ActiveX components and turning them into JavaBeans in the form of the JavaBeans Migration Assistant for ActiveX. The Migration Assistant analyzes an ActiveX control and provides the skeleton implementation of a JavaBean that exhibits the equivalent public interface. It isn't able to convert the implementation code to Java, but it provides a quick start.

You can download the JavaBeans bridge for ActiveX from the JavaSoft Beans Web pages ( http://java.sun.com/Beans ).


Up to the Features section contentsGo to previous article: Bridging Beans and Active XGo to next article: Future Beans
Flexible C++
Matthew Wilson
My approach to software engineering is far more pragmatic than it is theoretical--and no language better exemplifies this than C++.

more...

BYTE Digest

BYTE Digest editors every month analyze and evaluate the best articles from Information Week, EE Times, Dr. Dobb's Journal, Network Computing, Sys Admin, and dozens of other CMP publications—bringing you critical news and information about wireless communication, computer security, software development, embedded systems, and more!

Find out more

BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE Volume 1: Programming Languages
The Best of BYTE
Volume 1: Programming Languages
In this issue of Best of BYTE, we bring together some of the leading programming language designers and implementors...

Copyright © 2005 CMP Media LLC, Privacy Policy, Your California Privacy rights, Terms of Service
Site comments: webmaster@byte.com
SDMG Web Sites: BYTE.com, C/C++ Users Journal, Dr. Dobb's Journal, MSDN Magazine, New Architect, SD Expo, SD Magazine, Sys Admin, The Perl Journal, UnixReview.com, Windows Developer Network