EJB from WL6.1 to WL8.1 transplant (Maps EJB Migrate from WLS6.1 To WLS8.1 Guideline)

xiaoxiao2021-03-06  17

FIX SYNTAX ERROR

1) Use WLS8.1 Tools "Weblogic Builder" Re-Gen The EJB Description Files (WebLogic-Ejb-jar.xml, EJB-jar.xml, WebLogic-Cmp-Rdbms-jar.xml)

Since the head in the EJB description file indicates the version of the Server, the version file of 6.0 cannot be identified by the version of 8.1 when using. WL8.1 can be installed in the local (WIN environment), using Start Menu / Programs / Bea WebLogic Plat Menu / Other Development Tools / WebLogic Builder implementation. Just point to the Source file of your EJB can be achieved!

After execution, the description file will be converted to 8.1 in the description file in the folder that produces a build!

2) Fixed All EJB Description Files EJB-QL Syntax Error (WebLogic-EjB-jar.xml, EJB-JAR.XML, WebLogic-Cmp-Rdbms-jar.xml)

For example:

EXAMPLE 1)

FILE: EJB-jar.xml

From manufacturerejb as m

Should be changed to:

EXAMPLE 2)

FILE: WebLogic-Cmp-Rdbms-jar.xml

From manufacturerejb as m Orderby m.shortname

Should be changed to:

EXAMPLE 3)

FILE: WebLogic-Cmp-Rdbms-jar.xml

Should be changed to:

8.1 The format in the description file is strict, so pay attention to the modifications in it!

2. Package All Ejb Into One EJB Named "WizDomejb.jar" (FIX THE LOCAL Interface Problem)

2.1 Combine EJB-JAR.XML INTO One.

a) Retrieve the statements Between And From EJB-JAR.XML IN EVERY EJB JARS, AND INSERT INTO The Place Between And in EJB- jar.xml of the WizdomEJB.jar.b) Retrieve the statements between and from ejb-jar.xml in every EJB jars, and insert into the place between and in Ejb-jar.xml of the wizdomEjb.jar.

2.2 Combine WebLogic-Cmp-Rdbms-Jar.xml INTO One.

Retrieve the Statements Between and from WebLogic-Cmp-Rdbms-Jar.xml in Every Ejb Jars, And Insert Into the Place Between and < / WebLogic-Rdbms-Jar> in WebLogic-Cmp-Rdbms-jar.xml of the wizdomejb.jar.

2.3 Combine WebLogic-ejb-jar.xml INTO One.

Retrieve the Statements Between And from WebLogic-Ejb-jar.xml in Every EJB JARS, AND INSERT INTO THE PLACE BETWEEN and in WebLogic-ejb-jar.xml of the wizdomejb.jar.

2.4 Combine Class Files Into One.

Copy The Class Files in Every EJB JARS INTO The Class path of the wizdomEjb.jar.

3. RE-Compile EJB USE WLS8.1 LIBRARY AND EJBC

a) Change Property File:

/APPS/Maps/src/old/components/com/wisdom/maps.properties

Change Weblogic Home To WLS 8.1 Home:

For example: wl_home = / bea / weblogic81

2) Change build.xml file to meet the new environment

For example:

Should be changed to:

two examples of build.xml file:

One:

<-! Make a standard ejb jar file, including XML deployment descriptors ->

two:

<-! Make a standard ejb jar file, including XML deployment descriptors ->

转载请注明原文地址:https://www.9cbs.com/read-44029.html

New Post(0)