| Yup, Java<->COM<->OBB seems to work fine for many cases. However, there
are limits (as one might expect). For instance, I had written a much
more complete Java client app for the example posted in
objectbroker_dtc, but was never able to successfully access the
transactions array (bridged to the COM dual interface as a variant
containing an array of IDispatch references). Mail from Microsoft
support confirms that they never got around to implement any methods
for their Java com.ms.com.Variant class to support accessing VT_Array
types. (Variants are improved in their current beta software, but even
that doesn't support VT_Array.)
As a work around, I'm adding additional methods to the example corba
server for fetching transactions without using arrays. Easy to do
in an example, not so easy to do with some existing servers.
The lesson in all of this is that the Java<->COM<->OBB bindings work,
but treat it with suspicion and write a quick little prototype to
verify that all your datatypes work before committing to a major
Java client application.
|