• Save
Weblogic 12c experiences - migrations from iAS-platform
Upcoming SlideShare
Loading in...5
×
 

Weblogic 12c experiences - migrations from iAS-platform

on

  • 851 views

Presebtation from OUGN 2013 by Jon Petter Hjulstad and Cato Aune.

Presebtation from OUGN 2013 by Jon Petter Hjulstad and Cato Aune.

Statistics

Views

Total Views
851
Slideshare-icon Views on SlideShare
851
Embed Views
0

Actions

Likes
0
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Weblogic 12c experiences - migrations from iAS-platform Weblogic 12c experiences - migrations from iAS-platform Presentation Transcript

    • Weblogic 12c - Experiences- from some of our projectsjon.petter.hjulstad@evita.nohttp://twitter.com/jphjulstadcato.aune@evita.nohttp://twitter.com/catoauneOUGN 2013 - 18.04.2013
    • Jon PetterHjulstadSOA: Consultant, Presales and responsible for SOA-competence
    • Cato AuneSOA: consultant with focus on WL/SOA/BPM/IDM
    • Agenda• About e-vita• Oracle Internet Application Server (iAS)– Why migrate?– Components• Oracle Weblogic– Features• Projects– Oslo University Hospital (2)• Best Practices / Experiences• Q&A5www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • About e-vita• Established 1999 – 52 employees• CMS and Portal Framework iKnowBase (iKB)• Oracle Gold Partner - SOA, Database & AppsGrid Specialized• Established SOA Center of Excellence in 2012• Norwegian Middleware Partner of the year 2010, 2012• Oracle SOA Partner Community Award - Outstanding SOA 11g Contribution 2012• Member of Oracle Advisory Boards• WLS experience from SOA prosjects• iKB customers running WLS 11g: 2• iKB customers running WLS 12c: 3• Customers implementing WLS 12c: 26www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Certifications SOA COE7www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstadBPM• 2 Implementations SpecialistsArchitect•1 SpecialistSOA•8 Implementation SpesialistsApp Grid•3 Implementation Spesialists•1 Oracle Certified Professional (OCP)DB•2 Implementation Spesialists•8 Oracle Certified Professional (OCP)•2 Oracle Certified Associate (OCA)Exadata•2 Implementation Specialist•RAC: 1 Implementation Specialist•Enterprise Manager: 1 Implementation Specialist•Linux: 1 Implementation Specialist
    • <old-times>Oracle Application Server iAS</old-times>8www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Background• We have implemented internet and intranet portals thelast 10 years using Oracle Portal – probably more than 50• Many of our customer have Oracle iAS Portal 10.1.4– Only one we know have migrated to Portal 11g – Portal upgradesare traditionally painful– Most new pages are being developed in iKnowBase Portal Engine• Premier support Dec 2011 iAS 10.1.2– If support is possible, it will be expensive• OC4J prevents us from upgrading to newer iKnowBaseversions• Simplification of infrastructure• Availability of new features– Standards– Security– Scalability & manageability 9www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Convergence of Oracle iAS to Weblogic10www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Licence optionsFrom C2B2: http://www.youtube.com/watch?v=5m2CNUjBIGQ&feature=youtu.be
    • Oracle WLS Editions• WebLogic Basic Edition (licenced with iAS)• WebLogic Standard Edition– JRockit JVM– Toplink– ADF– Oracle Web Tier• WebLogic Enterprise Edition (includes WLS Standard Edition)– High performance clustering and failover capabilities– JRockit Mission Control with JRockit Flight Recorder– Enterprise Messaging -high performance JMS messaging– Oracle Virtual Assembly Builder• WebLogic Suite (includes WLS Enterprise Edition)– Coherence Enterprise Edition– Predictable performance: Java SE with JRockit Real Time– Active GridLink for RAC – High Availability with Oracle Database12www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • WLS Basic Edition• WebLogic Server Basic is a license-constrained version of WebLogic Server that isavailable in licenses for the following Oracle products:– Oracle Internet Application Server Standard Edition– Oracle Internet Application Server Standard Edition One– Oracle Internet Application Server Enterprise Edition– Oracle Forms and Reports– Oracle Business Intelligence Standard Edition• Lacks– High availability features as clustering– Deployment services and features, for example production redeployment– JMS Messaging– Services as WLDF, SNMP, Tuxedo Connector– Pack, unpack, recording of WLST scripts– Overload management– Use of Work Managers• In detail– http://docs.oracle.com/cd/E14571_01/doc.1111/e14860/wls_basic.htm• Important to be licence compliant!13www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Components iAS EE• iAS EE has many components• All components necessary to run aportal application was in it:– Webserver, Cache– Identity, SSO, WNA– Database (restricted)– Integration– Workflow• For future solutions, the architectureneeds to be revised• This means also licencing needs to berevised14www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • AlternativesComponent Oracle 10g Oracle 11g OtherCaching Oracle Webcache Oracle WebcacheOracle Traffic Dir.LBR, VarnishHTTP Oracle OHS Oracle OHS,iPlanet ApachePortal Oracle Portal Oracle PortalOracle WebcenteriKnowBaseIdentityManagementOracle InternetDirectoryOracle InternetDirectoryActive Directory,Open DJSSO / WNA OracleInfrastructureOracle WLS OPSSOracle SSO 10.1.4Oracle Access Mgr.Open AMIntegration InterConnectOracle ESBOracle SOA Suite ApacheServicemix, FuseWorkflow Oracle Workflow Oracle SOA Suite ActivitiJavaEE Oracle OC4J Weblogic Glassfish, JbossServlet Containers Jetty, Tomcat15www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <new-times>Oracle Weblogic</new-times>16www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Oracle WLS 12c – Key New Capabilities• Java EE 6 and Developer Productivity• Simplified Deployment and Management with Virtualization• Integrated Traffic Management• Enhanced High Availability andDisaster Recovery• Much Higher Performance• SeamlessUpgrade17www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Oracle WLS 11g vs 12c• Many features backported into 11g, but Java EE 6 will not (10.3.6 final)18www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <wls-feature>Active GridLink</wls-feature>19www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Connecting WebLogic Server to RAC• Two different connection approaches– Multi Data Sources, WebLogic GridLink Data Source• Multi Data Sources– Native implementation inside of WebLogic Server– Designed around WebLogic Server transactions, datasources, connection pooling, death detection– Serves as an abstraction over a set of individual datasources• WebLogic GridLink Data Source– Simplified data source configuration for RAC and Services connectivity – Single Data Source– Leveraging RAC notifications to provide fast-connection-failover– Improved load balancing and graceful RAC instance shutdown– Improved RAC instance affinities20www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Active GridLink for RAC• Simpler Configuration: single data source• Event-Based Model (ONS and FAN) for Adaptive Pool Management• SCAN Support• Fast Connection Failover• Runtime Connection Load Balancing• Affinities for Connection Routing (XA, Session, Data)• WebLogic Connection Labeling• Data Guard Support• RAC One Node Support• Certified for FMW 11.1.1.6 on 10.3.621www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <wls-feature>OPSS</wls-feature>22www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Oracle Platform Security Services (OPSS)• Oracle Platform Security Services (OPSS) is a security platform• OPSS is the underlying security platform that provides security to Oracle FusionMiddleware including WebLogic Server, SOA applications, ADF applications etc.• OPSS provides an abstraction layer in the form of standards-based applicationprogramming interfaces (APIs)• OPSS complies with the following standards: role-based-access-control (RBAC); JavaEnterprise Edition (JavaEE); and Java Authorization and Authentication Services (JAAS)• Built upon these standards, OPSS provides an integrated security platform thatsupports:– Authentication– Identity assertion– Authorization, based on fine-grained JAAS permissions– The specification and management of application-specific policies– Secure storage and access of system credentials through the Credential Store Framework– Auditing– Role administration and role mappings– The User and Role API– Security configuration and management– SAML and XACML– Oracle Security Developer Tools, including cryptography tools.23www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Oracle Platform Security Services (OPSS)24www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • OPSS Benefits• Allowing developers to focus on application and domain problems• Support for enterprise deployments• Verified interop testing across different LDAP servers and SSO systems• Certified on WebLogic Server• Pre-integration with Oracle products and technologies• A consistent security experience for developers and administrators• A uniform set of APIs for all types of applications• Optimization of development time with abstraction layers (declarative APIs)• A simplified application maintenance• Changing security rules without affecting application code• Ease of administration tasks• Integration with identity management systems• Integration with legacy and third-party security providers25www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <using-wls>Projects</using-wls>26www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <project>Oslo University Hospital - Intranet</project>27www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Background• Intranet Portal for 20.000 users– Incident handling (Achilles)• Solution based on Oracle Portal and iKnowBase– Clustered HA iAS installation– Oracle RAC Database• 4 Active Directory Domains– Did not have, but wanted automatic login via Active Directory – WNA• All AD users are migrated to a new domain (OUS-HF.NO)• New solution based on– WL 12c– iKnowBase PageEngine, all Portal-pages need to be rewritten– Active Directory Synchronization, WNA– Apache as HTTP Server– LBR for caching and https28www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Architecture• Highly Available• LBR for https andcaching (redundant)• Apache for rewritesand static files• WL 12c as appserver– ActiveGridLink• RAC on database29www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Architecture• Limited LBR• Complex OPSSuse• 4 AD Domains• Apache not incluster – identicalconfig30www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • OPSS Flow of authentication- and authorization• Authentication (first successful goes to authorization)– SSO Windows Native Authentication– Active Directory (LDAP)– iKnowBase– Weblogic• Authorization– Active Directory (LDAP)– iKnowBase– Weblogic• Created own Role Mapper by extending OPSS• One of the WLS advantages id the possibility to make auth-chains31www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Flow of authentication- and authorization32www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Authentication to several domains33www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Results• Application / database tuned– Better response times• Simplified architecture• Latest Apache release with many features• SSL for selected pages in the solution• WNA using 4 AD domains– But this required 4 managed servers...• Flexible authentication / authorization with OPSS– Configurable• Can now utilize RAC better with ActiveGridLink• Stable production since september 2012• IT had WLS experience – important!34www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <project>Oslo University Hospital - MyJournal</project>35www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Background• Hosted at www.minjournal.no• MinJournal is a collaboration between several majorhospitals with Oslo University as owner.• All hospitals that wish to offer their services to patientsMinJournal to Norwegian patients have a common point ofcontact with the health care system.• Originally based on Oracle Portal and iKnowBase– Single node iAS installation– Oracle Database– Custom SSO / OID modifications• New solution based on– WLS 12c– iKnowBase PageEngine– Oracle Internet Directory 11g36www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Architecture• Novell Access Manager to internet• No LBR was available for caching, so Varnish wasused for caching• Needed to be able to add new usersthat log on to the system, so OID 11gwas needed– Some 5.000 users activated,20.000 additional latent in OID37www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Experiences / Results• Needed to migrate applications from OC4J to Weblogic– Experience on several levels – application, migration– Did take more time than anticipated• OID does not run on WL 12c– Needed to install Weblogic 11g also– Complicates install, patching and maintenance• Needed to migrate existing users to OID 11g– Custom schema changes in old OID– 10g OID experience big advantage• Extended OPSS with necessary trust of HTTP headers– Coming from Novell Access Manager (User=> Novell AccessManager => Varnish => WLS)• Stable production since october 201238www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Other projects• In production running WLS 12c with iKnowBase– SKPREK – Tromsø University Hospital (DB authentication)• Very soon in production running WLS 12c with iKnowBase• Höegh Autoliners (Webtier 11g, AD Integration)• Under development (custom apps)– Toyota39www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <wls-feature>WLST</wls-feature>40www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • WebLogic Scripting Tool (WLST)• How can you make your configuration changes– Quick (adds speed, minimal downtime)– Repeatable (reduces risk, minimize chance of human errors)• People at keyboards are not quick enough, and they make errors• This requires scripting capabilities• OC4J had no such functionality• Simon Haslam«WLST: WebLogics Swiss Army Knife» 15:45 Friday• Blog: http://wlstbyexamples.blogspot.no/41www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • WebLogic Scripting Tool (WLST)• Can record WLST-script from Console (EE)• Provides front-end to JMX– You navigate in hiarchies• WLST maven goal• Start and stop servers• Create domains• Create config for JMS and JDBC• Start and stop datasources• Script as much as possible, takes a little longer the firsttime, pays back the 3rd time you have do to something42www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <experiences>Starting and stopping servers</experiences>43www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • NodeManager + WLST• Always use NodeManager to start and stop your servers– Restarts server in case of failure– Needed for server migration– Needed to start and stop managed servers from Admin Console• Use WLST script to call NodeManager to start and stop servers onboot/shutdown of physical/virtual server• There are no startscript provided out of the box, e-vita providesstartscript for our customers• There are different practices where to put start-up parameters– To standarize is important!44www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Clustered servers• Normally install servers as a cluster (if you have the rightlisence)– Important for SOA installations (which is not supported on WLS 12c yet)• Many different objects can be clustered• Advantages– Scalability (add servers if needed)– Load balancing (distribute requests)– High availability, different options45www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <experiences>Administration</experiences>46www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Administration• Do not use the weblogic user, create personal users for alladmins• Enable auditing for all changes• Do make backup of config.xml and other config files• Enable log rotate (best practise one log file per day)– How many days back in time will you ever need logfiles from ?• Learn the different tools monitoring– WebLogic Diagnostics Framework (WLDF)– VisualVM for HotSpot– Mission Control / Flight Control for JRockit (PS-licence)– Enterprise Manager 12 Cloud Control with WebLogic managementpack47www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <experiences>Java version</experiences>48www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Which Java version to use for WLS 12 c• JDK 6 is no longer supported (unless you pay for it)– RedHat has announced they will continue to support JDK 6• JRockit will not be in a 7 release• JDK 7 is the recommended Java version, and WebLogic 12 c is certifiedto run on JDK 7– But as always, test that the applications you are going to deploy works on JDK 749www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <experiences>Connection pools / Data sources</experiences>50www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Connection Pools• Connection Pools have an initial and maximum#connections• If initial > 0 and a connection is not available, the serverwill not start (ends up in ADMIN state)• Setting initial to 0 prevents this error• From 10.3.6 and onward, there is also a minimum• Initial = 0 => db need not to be up, faster boot, less load ondb when WLS start• Initial = max => All connections created at boot, more loadon db• Initial <> max => Create/delete connections on demand,less load on db51www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstadRef: https://blogs.oracle.com/WebLogicServer/entry/data_source_connection_pool_sizing
    • Connection Pool- Tuning• iKnowBase produces SQL dynamically• That means that the database server may never had seenthis query before• The user can supplement the WHERE-part by addingcriterias from search form– In case of bad statistics in database, bad execution plans may becreated– In case of missing indexes, there may be full table scans• We chosed Limiting Statement Processing to stop long-running-queries• http://docs.oracle.com/cd/E24329_01/web.1211/e24367/ds_tuning.htm52www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • XA Datasources• XA often is created by admins• You need to know when you need XA and not• Do not use XA when you do not need it• You may see strange problems due to XA (ADF, SOA)– In ADF: XA Closes all cursors on commit (Andrejus Baranovskis)– Databaselinks when used in SOA Composites– ..53www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <experiences>Patching</experiences>54www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Patching• MyOracle Support• Patch Set Update (PSU)• Experiences– Remove patches installed with the distribution before applying thelatest PSU– Easy command line patch util– Also possible to patch with GUI55www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • <experiences>Serving static files from WLS</experiences>56www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Serving static resource files• Common in internet applications to serve static .js, .gif,.png, .css etc.• Normally you would serve them from HTTP Server– But sometimes it is advantageous to reach also from WLS• Custom app with weblogic.xml and deployet on contextroot "/",• You can do it in WLS, but be aware that you may get only 99% of thecontent when it is changed (in production mode)• The reason is because content-length does not change..• Solution:– Change in weblogic.xml57www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • Summary• Many of the new features in 12c are also in 10.3.6– We have not used new Java-features in our solutions• OPSS has given us flexibility in authentication / authorizing• Architecture has been simplified– Direct use of Active Directory, no synchronization via OID• What was obvious choices of products in iAS now requiressome more thinking• Verify which WLS edition suits your needs• Invest in proper scripting of start/stop of environment withnodemanager• Satisfied with stability of 12c– But be on the latest patchset58www.iknowbase.com | 21.04.2013 | www.evita.no | twitter.com/jphjulstad
    • QUESTIONS? ANSWERS!
    • THANKS FOR YOUR ATTENTIONJon.petter.hjulstad@evita.nohttp://twitter.com/jphjulstadCato.Aune@evita.nohttp://twitter.com/catoaunehttp://www.evita.nohttp://www.evita.no/ikbViewer/soa-bloggen/forsideHave a nice conference!Jon Petter QRCato QR