OC4J to WebLogic Server Migration5
-
Upload
liran-zelkha -
Category
Documents
-
view
5.442 -
download
0
Transcript of OC4J to WebLogic Server Migration5
![Page 1: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/1.jpg)
![Page 2: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/2.jpg)
LIRAN ZELKHA VP BD SCALEBASE
![Page 3: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/3.jpg)
OC4J to WLS Migration
![Page 4: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/4.jpg)
Agenda
• What do we gain• How to do it
![Page 5: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/5.jpg)
WHAT DO WE GAIN
![Page 6: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/6.jpg)
Should We Migrate
• OC4J is dying, if not dead– WLS is the new king
• WLS is so much better– Better management– More features
• Migration is difficult– Takes a long time– Doesn’t have to…
![Page 7: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/7.jpg)
HOW DO WE DO IT
![Page 8: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/8.jpg)
The Process
Chose easiest
application
Move to JDev11g
Try to move to
WLS
Fix any problems that arise
Run Full QA
![Page 9: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/9.jpg)
Choose Easiest Application• Try to answer the following questions:
– OC4J version:– iAS version:– Java
• Java version?• Does the application open internal threads?• JDBC?
– J2EE Technologies in use:• Servlets• JSP• JSF• EJB
– Version• XML
– Does the application parse XML files on its own?– If yes, how?– XSL?
• JMS• JNDI lookup• JCA
![Page 10: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/10.jpg)
Choose Easiest Application – Cont’– Security:
• Single Sign On?• JAZN?• Build a custom JAZN module?
– ADF• ADF?• BC4J?• TopLink?
– Database• Oracle version?• RAC enabled?
– OC4J configuration• Custom start parameters for the OC4J instance?• Shared libraries?• JARs in LIB directory?• Management tool integration?
– Deployment?• WAR• JAR• EAR
![Page 11: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/11.jpg)
Choose Easiest Application – Cont’
• Choose the application with the minimal number of proprietary features used
• Some applications can’t be migrated easily– Old (not supported Java version, ADF migration)– Proprietary features (will be discussed later)
![Page 12: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/12.jpg)
Move To JDev11g
• Great tool• Integrated with WLS• Can generate EAR, JAR, WAR files for WLS for you– Including proprietary files
• Remember to have enough RAM on your developers machines
• Note:– If you use ADF – migration might be necessary
(depending on your ADF version)
![Page 13: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/13.jpg)
Try To Move To WLS11g
• Configuration– Data sources– JMS sources– Security
• Just run your app• Probably deployment issues will arise…
![Page 14: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/14.jpg)
Fix Problems
• Deploy– Keep your fingers crossed
• Identifying failures– Failed to start app in WLS– Exceptions in server console– Can’t access web application– Can’t see EJBs in JNDI view
![Page 15: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/15.jpg)
Fix Problems – Class Path
• Classpath issues– Are you using app-inf/lib?– Are you using lib/endorsed?
• XML libraries issues– Have you used standard XML parser or Oracle?
![Page 16: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/16.jpg)
Deployment Descriptors
• Missing info in weblogic.xml, weblogic-ejb-jar.xml files
• Weblogic.xml replaces orion-web.xml– Needed for resource/ejb references– Class loader management– Context root for standalone WAR files
![Page 17: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/17.jpg)
Deployment Descriptors – Cont’
• Weblogic-ejb-jar.xml replaces orion-ejb-jar.xml– Used for JNDI naming– Needed for resource/ejb references– MDB configuration– weblogic-cmp-rdbms.xml used for CMP beans
![Page 18: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/18.jpg)
Libraries
• Toplink– XML libraries
• Libraries that come with WLS might collide with your app– JSF– Log4J
![Page 19: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/19.jpg)
Web App
• OC4J auto exposed servlets– WLS does not. Make sure servlet and servlet-
mapping tags exist in your web.xml file• SSO configuration– No more jazn– Configuration is done at WLS level, not web-app
• SSL configuration
![Page 20: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/20.jpg)
EJB App
• CMP beans migration is a pain– EJB3 migration is much easier…
• JNDI naming is different• JNDI tree is different– Use JNDI view to recognize names
• If app client is used– Classpath is different– new InitialContext() parameters are different
![Page 21: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/21.jpg)
Run Full QA
• Make sure full tests run on the web application
• Same as releasing a new version
![Page 22: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/22.jpg)
2 Words On WLS Terminology
Domain
Admin Server
Managed Server
Managed Server
![Page 23: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/23.jpg)
Eco System
• Scripts– Management – install app, start server, stop
server, etc.– WLST against domain server – vs. opmnctl
• Security– SSL certificates, users
![Page 24: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/24.jpg)
Eco System
• Admin training• Forms/Reports/BI
![Page 25: OC4J to WebLogic Server Migration5](https://reader036.fdocuments.net/reader036/viewer/2022062307/555a76f1d8b42a98568b47a1/html5/thumbnails/25.jpg)
AQ&