Skip to content

WebLogic T3 protocol

The WebLogic T3 protocol is the proprietary network protocol used by Oracle WebLogic Server for communication between Java clients and the server instance^[weblogic-ejb.md].

Connection Configuration

To establish a connection using the T3 protocol, clients typically utilize the WebLogic JNDI provider. This requires setting specific InitialContext properties to locate and access remote services, such as EJBs^[weblogic-ejb.md].

The standard configuration involves the following parameters^[weblogic-ejb.md]:

  • Initial Context Factory: weblogic.jndi.WLInitialContextFactory
  • Provider URL: The address of the server using the format t3://<host>:<port> (e.g., t3://localhost:8080)
  • Security Credentials: Username and password (e.g., weblogic user)

Usage Example

The following Java code snippet demonstrates how to initialize a connection to a WebLogic Server using the T3 protocol and perform a JNDI lookup^[weblogic-ejb.md]:

Properties prop = new Properties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
prop.put(Context.PROVIDER_URL, "t3://localhost:8080");
prop.put(Context.SECURITY_PRINCIPAL, "weblogic");
prop.put(Context.SECURITY_CREDENTIALS, "1qaz2wsx");

InitialContext ctx = new InitialContext(prop);

// Example lookup
Object obj = ctx.lookup("bpm/ejb/WorkflowEngineService#core.bpm.service.workflow.engine.WorkflowEngineServiceRemote");

Sources

  • weblogic-ejb.md
  • [[WebLogic]]
  • [[EJB]]
  • JNDI