Imagos Consulting Weblog

Developers Cant Do Design (or Can They?) – Neville Richards Personal Blog

Using Oracle Weblogic with Amazon Web Services

Amazon Web Services have some great features if you are looking for a cloud based solution. If you are looking to install an Oracle Weblogic stack things can be a bit more challenging. In the next few articles I will present some tools to make installing and running Weblogic under AWS a bit easier.

If you are looking for an enterprise scale setup using a configuration management tool such as Chef will give you more flexibility. Chef uses Ruby based code modules called recipes to install and setup software for you.

The Oracle Weblogic installer can’t be downloaded directly from the Oracle web site easily so I suggest downloading the version you need and storing it in an AWS S3 bucket to make the setup easier.

The Weblogic installer is a Java package, so you will need to have Java installed on your EC2 instance. If you are using Chef you can make the Weblogic installation recipe dependent on the Java installation recipe.

Normally the Weblogic installer will use a GUI to control the installation. For spinning up a Ec2 instances automatically the GUI setup is not very practical. Fortunately the installer also has a silent installation mode.

Weblogic silent installation mode:

java -Xmx1024m -d64 -jar "weblogic package file" 
    -mode=silent 
    -silent_xml="weblogic_response_file"

Weblogic installer response file template:

<?xml version="1.0" encoding="UTF-8"?>
<bea-installer>
  <input-fields>
    <data-value name="BEAHOME" value="<%= @wlhome %>" />
    <data-value name="WLS_INSTALL_DIR" value="<%= @wl_install_dir %>" />
    <data-value name="COMPONENT_PATHS"
                value="WebLogic Server/Core Application Server|
WebLogic Server/Administration Console|
WebLogic Server/Configuration Wizard and Upgrade Framework|
WebLogic Server/Web 2.0 HTTP Pub-Sub Server|
WebLogic Server/WebLogic JDBC Drivers|
WebLogic Server/Third Party JDBC Drivers|
WebLogic Server/WebLogic Server Clients|
WebLogic Server/WebLogic Web Server Plugins|
WebLogic Server/UDDI and Xquery Support|
WebLogic Server/Server Examples|
Oracle Coherence/Coherence Product Files" />
  </input-fields>
</bea-installer>

In the next part I will put these pieces together into a basic Chef recipe that you can use to install Weblogic.

Please ensure your Oracle licensing is correct for your application.

Advertisements
Leave a comment »