Problem:
- Product: VisiBroker 8.0 for Java
- Patches Level: Service Pack 2 & below
- JDK: 1.5.0
On page 58 of VisiBroker for Java Programmer's Guide, it describes the following valid object adapter.
In previous versions of VisiBroker there was one adapter type, now there are several adapter types. The object adapter types that are initialized with BOA_init() include one of the following:
- TPool—Thread pooling
- TSession—Thread per session
- SSLTPool—SSL with thread pooling (optional feature)
- SSLTSession—SSL with thread per session (optional feature)
This test case verifies the configuration and will result to org.omg.CORBA.OBJ_ADAPTER exception.
Properties p = new Properties();
p.put("vbroker.se.boa_tp.scm.ssl.listener.port", 60000);
// Initialize the BOA.
com.inprise.vbroker.CORBA.BOA boa = ((com.inprise.vbroker.CORBA.ORB)orb).BOA_init("SSLTPool", p);
The following exception is thrown when starting up the application:
org.omg.CORBA.OBJ_ADAPTER: Unknown adapter type: SSLTPool vmcid: 0x0 minor code: 0 completed: No
at com.inprise.vbroker.poa.AdapterManager.BOA_init(Unknown Source)
at com.inprise.vbroker.orb.ORB.BOA_init(Unknown Source)
at Server.main(Server.java:13)
Exception in thread "main"
Resolution:
In order to resolve the exception and configure BOA with SSL, use the following VisiBroker properties:
vbroker.security.disable=false
vbroker.se.boa_tp.scms=boa_tp,boa_tp2
vbroker.se.boa_tp.scm.boa_tp.manager.type=Socket
vbroker.se.boa_tp.scm.boa_tp.listener.type=IIOP
vbroker.se.boa_tp.scm.boa_tp.listener.port=50000
vbroker.se.boa_tp.scm.boa_tp.listener.proxyPort=50000
vbroker.se.boa_tp.scm.boa_tp2.manager.type=Socket
vbroker.se.boa_tp.scm.boa_tp2.manager.connectionMax=10
vbroker.se.boa_tp.scm.boa_tp2.manager.connectionMaxIdle=30
vbroker.se.boa_tp.scm.boa_tp2.listener.type=SSL
vbroker.se.boa_tp.scm.boa_tp2.listener.port=60000
vbroker.se.boa_tp.scm.boa_tp2.listener.proxyPort=0
vbroker.se.boa_tp.scm.boa_tp2.dispatcher.type=ThreadPool
vbroker.se.boa_tp.scm.boa_tp2.dispatcher.threadMin=0
vbroker.se.boa_tp.scm.boa_tp2.dispatcher.threadMax=0
vbroker.se.boa_tp.scm.boa_tp2.dispatcher.threadMaxIdle=300
vbroker.se.boa_tp.scm.boa_tp2.listener.giopVersion=1.2
vbroker.security.secureTransport=true
vbroker.security.server.transport=SECURE_ONLY
vbroker.security.alwaysSecure=true
vbroker.security.supportIdentityAssertion=false
# Setting boa_tp2 Layer Attributes
vbroker.security.peerAuthenticationMode=NONE
vbroker.se.iiop_tp.scm.boa_tp2.listener.trustInClient=false
#OBJ_ADAPTER
#Security
#VisiBroker
#SSLTPool