[jdom-interest] C++ interface to jdom

philip.nelson at omniresources.com philip.nelson at omniresources.com
Tue Sep 25 06:08:15 PDT 2001


>Can anyone suggest a commercial or freeware system that would allow a
Visual C++ program >to interface to jdom? 
>Thanks 

Not sure why you wouldn't want to use msxml via COM or Xerces C++, but some
options are

JNI - you could program wrapper classes around each JDOM class and use the
functions of jvm.dll to invoke classes and methods.

JNI - you can write a bridge between JDOM and your code that puts a simpler
application specific interface on JDOM and access it via JNI, perhaps
passing Strings with your documents as arguments

COM - now that Sun and Microsoft have settled the lawsuit and Microsoft will
continue to ship the old jdk 1.1.4, you can use the java moniker to access
java classes directly through COM.  You just have to wrap the JDOM classes
in a factory that can make up for the lack of constructors in the COM call.
This is probably not a great long term strategy because the jvm will go away
at some time or JDOM may use java 2 features at some point that won't be
compatible with jdk1.1.4.

App servers - lots of app servers have bridges

JIntegra 



More information about the jdom-interest mailing list