Thursday, 30 July 2009

OFM 11g r1 Web Tier Utilities to enable OHS front end

My previous post "Installing the ADF Runtime on Oracle Fusion Middleware 11gR1" showed that using the "Application Development Runtime" we can enable FMW control (EM) and hence enable our managed servers to deploy/run ADF 11g applications.

The last install you may want to consider is the "Web Tier Utilities" which gives you the ability to front end our managed servers with OHS which is OPMN managed Apache HTTP server.
Web Tier Utilities

This will allow OHS instance to act as a proxy server to the cluster and as a result of doing this you can use FMW Control to managed your domain and the OHS instance.

Once you have installed this you will run the configure wizard as follows on windows

Oracle Web Tier – Home1 -> Configure Web Tier Instance

Make sure you select the correct Weblogic admin server you wish to front end here.

The final piece here is to ensure you then configure the OHS instance to act as a proxy server to the WebLogic cluster. You do this from FMW Control itself, by right-clicking on the OHS instance and selecting Ports Configuration and mod_wl_ohs Configuration from the Administration menu. Essentially it is doing the update of mod_wl_ohs.conf for you so you don't have to manally edit that file. here is an example of what that file looks like once your done.

<IfModule weblogic_module>
DynamicServerList Off
MatchExpression /*

Friday, 3 July 2009

Installing the ADF Runtime on Oracle Fusion Middleware 11gR1

I installed OFM 11g R1 today with just the Weblogic server itself installed. Once that was done my next task was to install ADF into the Weblogic server and found this in the documentation.

35.6 Installing the ADF Runtime to the WebLogic Installation

You can install the ADF runtime using the following installers:

  • Oracle 11g Installer: Installs JDeveloper, the ADF runtime, and Oracle WebLogic Server. It does not install Oracle Enterprise Manager.

  • Oracle Fusion Middleware 11g Application Developer Installer: Installs the ADF runtime and Oracle Enterprise Manager. You should use the Oracle Fusion Middleware 11g Application Developer Installer if you want to use Oracle Enterprise Manager to manage standalone ADF applications (without Oracle SOA Suite or Oracle WebCenter components). You must already have installed Oracle WebLogic Server before you can use this installer.

The first option I had previously done for Oracle weblogic 10.3 , but I thought it would be more useful to go the second option and actually obtain Oracle Enterprise Manager which amoung many features it includes a web application MBean browser which is what I was after from my OFM Weblogic server. To extend or create domains with ADF runtime and Oracle Enterprise Manager follow these steps.

1. Download the following.
Application Development Runtime

2. Unzip the file

3. Run "runInstaller" and install it into your OFM 11g R1 home. It will prompt you for the OFM home directory.

4. Finally use the steps below to either extend or create a new domain which has ADF runtime and OEM added to the domain.

35.7.1 How to Create an Oracle WebLogic Server Domain for Oracle ADF

Note: If you used the Oracle Fusion Middleware Application Developer Installer, select Oracle Enterprise Manager and Oracle JRF when creating the domain or extending it.

Now finally we want to ensure we can deploy ADF applications from JDeveloper 11g R1 to our domain which we must do as follows.

5. Login into OEM. The username and password should be your Weblogic Server console application credentials


6. Click the + symbol for "Weblogic Domain".
7. Click on the + symbol for your domain.
8. Select the managed server you wish to enable ADF applications for.
9. Click on the button "Apply JRF Template".

It was nice to know you could get Oracle Enterprise manager installed into your domain without Oracle SOA Suite or Oracle WebCenter components.

Thursday, 2 July 2009

Dynamic JMX Service URL for OC4J 10.1.3.x

Not for myself, the following code will dynamically generate a JMX service URL without using OPMN port.

private String url =
"service:jmx:ormi://" + System.getProperty("hostname.rmi") +
":" + System.getProperty("port.rmi");