WLST based OSB domain creation

Oh WLST how I love thee, let me count the ways.. Even thought the scripting is something you can and should do, there are times when doing it manually, i.e. using the graphical tools, is still preferred. When is that time? When you have spent countless hours trying to create a new clustered domain with exactly the correct and wonderful configuration that you require. And sometimes even when you could do with just the bare bones, vanilla as they come, single cluster domain.

So the WLST script for creating a clustered domain is simple, right? You just do this:

  1. readTemplate(WL_HOME + ‘/common/templates/wls.jar’)
  2. <create clusters and managed servers etc>
  3. writeDomain(DOMAIN_HOME)

Easy as 1-2-3. As long as you are not making an Oracle Service Bus domain, because that process has some serious issues. There are some attempts to fix this, but here is a way of doing it with the standard OSB templates.

First the bird’s eye view:

  1. readTemplate(WL_HOME + ‘/common/templates/wls.jar’)
  2. addTemplate(WL_HOME + ‘/common/templates/applications/wls_webservice.jar’)
  3. addTemplate(OSB_HOME + ‘/common/templates/applications/wlsb.jar’)
  4. delete(‘osb_server1’, ‘Server’)
  5. <create clusters and managed servers etc>
  6. <!! retarget everything !!>
  7. writeDomain(DOMAIN_HOME)

So the magic lies in the retargeting of everything. How to do that? The answer is in the wi^H^HOracle Forums, where someone named PetervanNesatTheFutureGroup gives a nice partial answer to that question. What it boils down to, is using the WLST Offline commands for listing the resource names, looping through that list of names and then using those names to access and changing the resources. And the reason to do all of this, is because the OSB templates do not target the resources correctly to the defined environment, even though they should.

List of resources you will need to retarget:

  • Some of the Application Deployments
  • All of the Libraries
  • All of the Startup classes
  • All of the Shutdown classes

So what is the application list that you will need to retarget? Well, for the first Management Server only (these are the singleton services), you target: ALSB Cluster Singleton Marker Application, ALSB Domain Singleton Marker Application and Message Reporting Purger.

For the Admin server only, you target: ALSB UDDI Manager and FMW Welcome Page Application#11.1.0.0.0.

And for the cluster, you target: ALSB Coherence Cache Provider, ALSB Resource, ALSB Subscription Listener, ALSB WSIL, JMS Reporting Provider and WS Transport Async Applcation.

Everything else is targeted to both Admin server and the cluster. And there you go, you have a correctly formed, clustered Oracle Service Bus domain. Oh and by the way, it would seem that the old bug which left out the XACMLAuthorizerInit.ldift and DefaultAuthorizerInit.ldift files from an OSB domain created from the templates has been fixed. Which is just super!

Unboxing the new WebLogic Portal

Doesn’t it feel like Christmas when you download a new (point) release of a software and start the installation process. No? Really? Well, even so, you might want to mosey on down to the ever pleasant Oracle Technology Network and take a gander of the new WebLogic Portal and the wonders that it beholds.

All kidding aside, it does have a plethora of new features and improvements that belie it’s humble update from 10.3.1 (or 10.3.1.0.2 for those who like to patch these things) to 10.3.2. And as everyone likes lists, here’s one list for your enjoyment:

  • Windows installation kit is slightly (~100Mb) larger than before, which is nice
  • Binary installation now allows you to choose WebLogic SCA and Oracle Enterprise Pack for Eclipse
  • Prebundled JDK’s (well <a href=http://www.oracle.com/us/sun/index.htm alt=Oracle Buys Sun>they own them both now</a>) are version 1.6.0_14 instead of 1.6.0_05
  • The Eclipse and plugins want to install to a directory called oepe_11gR1PS1, how about a mouthful
  • The installation screens promote JSF 1.2 and full integration to UCM (and a richer web experience, but please..)
  • JSR-286 \o/ and WSRP 2.0, also UUP REST services
  • WebLogic Server is the same version (10.3.2) as WebLogic Portal, except for the marketing version, which is 11gR1 for WLS and 10gR3 for WLP (a rose by any other name..)
  • Funnily (ha ha?) enough the rest of the promos are about WebLogic Server and Oracle Technology Networks

So what to think of these things? Same same but different? We’ll just have to wait and see until the grand publishing of the Roadmap/Statement of Direction, hope it comes soon.

Oh, and just a quick run-through of the Dom^H^H^H Fusion Middleware Configuration Wizard, in the form of a list, because.. well you know why:

  • You are no longer allowed to have weblogic/weblogic, so I guess the new standard is weblogic/weblogic1 or something? This special character requirement obviously comes from WLS
  • The database settings (and you will need to go through these now) are more simple, except that from a usability standpoint the database Test Connections (which now runs automatically) screen warns that PointBase is not available. Don’t Panic! It’s all OK, just move on to the next screen and ignore the warnings, the SQL scripts will load up fine
  • Now the Dynamic Visitor Tools libraries seem to be deployed automatically, which is nice
  • And bye bye Autonomy, it was great knowing you