WLEC to WebLogic Tuxedo Connector Migration Guide
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The following sections provide information on the steps required to convert your WLEC applications for use with WebLogic Tuxedo Connector:
Tuxedo users need to make the following environment changes:
A new dmconfig
file must be created to provide connectivity between your Tuxedo and WebLogic Server applications. For more information on how to create Tuxedo domains, see Planning and Configuring CORBA Domains.
You will need to modify the tuxconfig
file so your application will use the Tuxedo /T Domain gateway. Add Tuxedo the domain servers to the *SERVERS
section of you UBB file.
DMADM SRVGRP=SYS_GRP SRVID=7
GWADM SRVGRP=SYS_GRP SRVID=8
GWTDOMAIN SRVGRP=SYS_GRP SRVID=9
Weblogic Tuxedo Connector does not use ISL. If you no longer have other applications that require ISL, you can remove the ISL
from the *SERVERS
section.
# ISL
# SRVGRP = SYS_GRP
# SRVID = 5
# CLOPT = "-A -- -n //lchp15:2468 -d /dev/tcp"
This section provides information on how to modify your WebLogic Server Environment.
Note: For more information on how to configure WebLogic Tuxedo Connector, see Configuring WebLogic Tuxedo Connector for Your Applications.
This section provides basic information on how to create a WTC Service for a migrated WLEC application using the WebLogic Server console. A WTC Service represents configuration information that WebLogic Server uses to create a connection to a Tuxedo application. Typical WTC Service configurations for migrated WLEC applications consist of a local Tuxedo access point, a remote Tuxedo access point, and an imported service.
Use the following steps to create a configuration to administer your application:
DOMAINID
in the *DM_REMOTE_DOMAINS
section of your Tuxedo DMCONFIG
file. DOMAINID
in the *DM_LOCAL_DOMAINS
section of your Tuxedo DMCONFIG
file. WebLogic Tuxedo Connector uses the Domain gateway to connect WebLogic and Tuxedo applications. IIOP connection pool are not used and the descriptors can be removed from the ejb-jar.xml
file. The following is an example of code removed from the wlec/ejb/simpapp
example:
Listing 2-1 IIOP Connection Pool Descriptors for the wlec/ejb/simpapp Example
.
.
.
<env-entry>
<env-entry-name>IIOPPoolName</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>simplepool</env-entry-value>
</env-entry>
.
.
.
The following sections provide information on how to modify WLEC applications to interoperate with WebLogic Server and Tuxedo CORBA objects using WebLogic Tuxedo Connector.
Use the following steps to modify your EJB to use WebLogic Tuxedo Connector to invoke on CORBA objects deployed in Tuxedo:
WLEC uses the weblogic.jndi.WLInitialContextFactory
to return a context used by the Tobj_Bootstrap
object.
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
InitialContext ic = new InitialContext(p);
rootCtx = (Context)ic.lookup("java:comp/env");
Replace the WLEC context reference and instantiate the WTC ORB in your Bean. Example:
// Initialize the ORB.
String args[] = null;
Properties Prop;
Prop = new Properties();
Prop.put("org.omg.CORBA.ORBClass",
"weblogic.wtc.corba.ORB");
orb = (ORB)new InitialContext().lookup("java:comp/ORB");
Each WLEC connection pool has a Tobj_Bootstrap
FactoryFinder object used to access the Tuxedo domain. Example:
Tobj_Bootstrap myBootstrap = Tobj_BootstrapFactory.getClientContext("
myPool
");
org.omg.CORBA.Object myFFObject =
myBootstrap.resolve_initial_references("FactoryFinder");
Remove references to the Tobj_Bootstrap
Factory Finder object. Use the following method to obtain the FactoryFinder object using the ORB:
// String to Object.
org.omg.CORBA.Object fact_finder_oref = orb.string_to_object("corbaloc:tgiop:simpapp/FactoryFinder");
// Narrow the factory finder.
FactoryFinder fact_finder_ref =
FactoryFinderHelper.narrow(fact_finder_oref);
// Use the factory finder to find the simple factory.
org.omg.CORBA.Object simple_fact_oref =
fact_finder_ref.find_one_factory_by_id(SimpleFactoryHelper.id());
Note: For more information how to implement JTA transactions, see Programming WebLogic JTA.
The following section provides information about how to modify WLEC applications that use transactions.
![]() ![]() |
![]() |
![]() |