I haven't got around to producing an IDL for the Java class yet (that is for the next version).
But if you have an existing COM server (it's type library or IDL) , you can "replace" the interface pointer for that COM server
with your Java implementation. That is:-
a. You would implement the IDL\TypeLibrary in Java as Java class.
b. Where ever the IUnknown* of that component is being moved around, you can send the interface pointer
of your Java implementation instead. This can be done via JIInterfacePointer.getInterfacePointer(...).
***********************************************************************************************************************************************
0. Please make sure that "Server" service is running, else goto Service Manager and start it. (Start->Run->Services.msc).
1. Then, change directory to your installation location and the sub directory of the example.
2. Execute.bat needs valid values for these 4 parameters, in this order only.
targetServer domain username passwd
First is the Server host (localhost for your local machine) , then your domain (again localhost for your local machine),username,password.
You can even pass IP Addresses instead.
3. To run, first build the TestJavaServer project.
yourinstallation\examples\COMCallingJava:\> Execute targetServer domain username passwd
4. If you get any ACCESS_DENIED exceptions, please go through the main "readme.htm" at the root folder of the installation.
5. You are done.
This example, upon execution, you should see a message box from the Windows COM server and then you should see the same text
as was in the message box printed on the console.
For users using a Network login:- In this example, if the message box comes and then the application hangs, please use local authentication, it is highly likely that
you are on a machine presently not on the network and the COM server is trying to authenticate you to a Domain controller which it can't connect
to.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
j-Interop_1_08.zip_DCOM_DCOM in java_j interop_j-Interop_jni jav (256个子文件)
Execute.bat 335B
Execute.bat 316B
Execute.bat 314B
Execute.bat 307B
Execute.bat 306B
Execute2.bat 302B
Execute.bat 302B
Execute.bat 300B
Execute.bat 299B
Execute.bat 299B
Execute.bat 299B
stylesheet.css 1KB
test.doc 20KB
inherit.gif 57B
readme.htm 30KB
constant-values.html 108KB
JIException.html 104KB
JIErrorCodes.html 88KB
JIVariant.html 86KB
JICallObject.html 73KB
IJIDispatch.html 61KB
index-7.html 51KB
IJIWinReg.html 51KB
index-10.html 50KB
index-9.html 40KB
serialized-form.html 36KB
JIProxyFrame.html 34KB
TypeAttr.html 29KB
IJIOleObject.html 28KB
IJITypeInfo.html 27KB
index-3.html 26KB
index-18.html 25KB
IJIOleDocumentView.html 25KB
JIPolicyHandle.html 25KB
JIVariant.html 24KB
FuncDesc.html 24KB
JIArray.html 24KB
JIStruct.html 23KB
ComFactory.html 23KB
JIUserCallObject.html 22KB
index-22.html 21KB
IJIUnknown.html 21KB
IJIOleInPlaceSite.html 21KB
IJIOleInPlaceFrame.html 20KB
overview-tree.html 20KB
IJITypeLib.html 19KB
JISystem.html 19KB
index-23.html 19KB
index-19.html 19KB
index-20.html 18KB
index-1.html 18KB
index-6.html 18KB
IJIComObject.html 17KB
JIInterfaceDefinition.html 17KB
JIComServer.html 17KB
JISession.html 17KB
IJIOleInPlaceActiveObject.html 17KB
JIString.html 17KB
IJIOleInPlaceUIWindow.html 16KB
IJIWinReg.queryValue.html 16KB
IJIWinReg.setValue.html 16KB
IJIWinReg.createKey.html 16KB
JIStruct.html 16KB
JIJavaCoClass.html 16KB
IJIUnknown.html 16KB
IJIComObject.html 15KB
package-summary.html 15KB
ParamDesc.html 15KB
IJIEnumVARIANT.html 15KB
JISession.html 15KB
index-16.html 15KB
IJIWinReg.openKey.html 15KB
JIUnion.html 15KB
JIPointer.html 15KB
IJIWinReg.deleteValueOrKey.html 15KB
IJIOleClientSite.html 15KB
IJIWinReg.enumValue.html 14KB
IJIWinReg.enumKey.html 14KB
VarDesc.html 14KB
JIInterfacePointer.html 14KB
package-use.html 14KB
index-4.html 14KB
IJIWinReg.saveFile.html 14KB
IJIWinReg.closeKey.html 14KB
JIMethodDescriptor.html 14KB
JIPointer.html 14KB
package-use.html 14KB
index-5.html 14KB
JIParameterObject.html 14KB
JIDefaultAuthInfoImpl.html 14KB
IJIWinReg.openHKCR.html 13KB
IJIWinReg.openHKCU.html 13KB
IJIWinReg.openHKLM.html 13KB
IJIWinReg.openHKU.html 13KB
IJILogger.html 13KB
TypeDesc.html 13KB
CALLCONV.html 13KB
JIString.html 13KB
IJIOleWindow.html 13KB
IJIAuthInfo.html 12KB
共 256 条
- 1
- 2
- 3
资源评论
林当时
- 粉丝: 97
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功