BEA Logo BEA WebLogic Server Release 6.1

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

  |  

  WebLogic Server Doc Home   |     WebLogic jCOM Reference Guide   |   Previous Topic   |   Next Topic   |   Contents   |   View as PDF

WebLogic jCOM Reference Guide

 

 

The com2java Tool

Using com2java

Selecting the type library

Specifying the Java package name

Options

Clash Prefix

Lower case method names

Only generate IDispatch

Generate retry code on '0x80010001 - Call was rejected by callee'

Generate Arrays as Objects

Prompt for names for imported tlbs

Don't generate dispinterfaces

Generate depreciated constructors

Don't rename methods with same names

Ignore conflicting interfaces

Generate Java AWT classes

Generate the proxies

Files generated by com2java

Enumerations

COM Interfaces

COM Classes

Special case -- source interfaces (Events)

Summary - Events

 

WebLogic jCOM and COM Event

 

Exceptions

Exceptions raised in COM components

Raising exceptions in a COM component

Catching them in Java

Use IOException rather than AutomationException?

Exceptions raised in Java objects

The source

The description

The code

What if you want to specify the source/description/code yourself?

Using the Exception Interception Mechanism

 

Garbage Collection and Reference Counting

On COM objects referenced from Java clients

On Java objects referenced from COM clients

 

Native Mode

What is supported?

Both IDispatch and vtable

In-process and out-of-process

All JVMs

Microsoft Transaction Server / COM+

How to run Java clients in native mode

Threading Models

How to run COM clients in native mode (JVM out-of-process)

How to run COM clients in native mode (JVM in-process)

Unsupported features and known issues

 

Security/Authentication

Authenticating using JNDI with WebLogic Server

Authenticating Java clients accessing COM components

Running your Java code under Windows

Running your Java code on non-Windows platforms

Verifying that authenticated access is taking place

Identifying the identity of COM clients calling your Java code

Authenticating NT domain/user/passwords from pure Java software

Listening for new connections from COM clients

 

Supported COM data types, and their Java Equivalents

Accessing Java Objects as Visual Basic Collections

Example Visual BASIC code

How COM IDL types map to Java, VB, and VC++

How COM Variants containing different types map to Java

Type conversions used during late-bound access from COM to Java

Java boolean, byte, short and int

Java long, char, float and double

Java String, Date and Object

Arrays

Accessing COM VariantEnums from Java

 

Threading

From Java to COM

From COM to Java

 

Using COM Objects from Java

Java classes generated from COM classes by com2java

The default constructor

The second constructor (String host)

The third constructor (AuthInfo authInfo)

The fourth constructor (String host, AuthInfo authInfo)

The final constructor (Object objRef)

Java interfaces & classes generated from COM interfaces by com2java

 

Java Properties in jCOM.jar

 

Troubleshooter

Improving WebLogic jCOM's performance

Use the reduced logging runtime

Run in native mode

DOS Errors

Java Errors

Visual BASIC Errors

Visual C++ Errors

DCOM security problems when running under certain environments

The IID*.java Wrappers Generated by java2com do not compile

The error I am getting is not listed

 

back to top   next page