
284 WebSphere and .NET Coexistence
Figure 6-11 Visual Studio after creation of our blank Calculator ActiveX object
f. Implement the interface by copying in our Calculator.h and Calculator.cpp
files, or implement for yourself. Our approach was as follows:
i. Create public objects for the JClassFactory, JClassProxy and
JObjectProxy; we will need to access the service provider.
ii. Within the constructor, create a new JClassFactory object. Use that
object to create and initialize the Java Virtual Machine with the
XJBInit() method. Use the FindClass( ) method to find the Calculator
class in Java and then the NewInstance( ) method to create a new ...