Non GUI OpenESB installation

I got asked a question about how to install OpenESB on a headless box, so I thought I'd write up a basic recipe.
The installer bundle at https://open-esb.dev.java.net/Downloads_OpenESB_Addons_NB6.html does support arguments for running in a scripted mode. Thanks to Jeff Lin for pointing this out to me.

It supports: (probably not a complete list, but important for scripting and installation)
  • --state Loads the states of components from a specified state file. This option is required for --silent e.g --silent --state /home/trond/installerstate.xml
  • --record Records the states of components to the specified state file when you exit the installer. Use this option to generate state files. e.g. --record /home/trond/installerstate.xml
  • --silent Runs the installer in silent mode. During silent installation, no interaction is required from the user as no graphic interface is used. In silent mode, all data required for installation is retrieved from the state file generated using the --state option. e.g. --silent --state /home/trond/installerstate.xml

Another way is to create your own installation.

If you want to "assemble" your own installation this is done quite easily, and with a bit of scripting magic you can automate it completely. This can be nice if you want to mix the versions of components you install, or which Binding Components or Service Engines you want available.

Brief Outline:
  1. Install GlassFish v2ur2b04 (http://download.java.net/javaee5/v2ur2/promoted/)
  2. Make sure GlassFish is stopped before 3.
  3. To upgrade the JBI runtime that ships with GlassFish you need jbi-core-installer.jar) (download from here: https://open-esb.dev.java.net/Downloads.html instructions on install here: http://download.java.net/jbi/binaries/open-esb/main/common/install-jbi-runtime-jar.html
    (note you might possibly have to delete the GLASSFISH_HOME/jbi directory
    to install a new JBI runtime, I don't think it supports an uninstall yet.)
  4. Download the versions of the following that you want:
    • Shared library
    • Encoder
    • Binding components
    • Service Engines.
    The latest are here:
    http://download.java.net/jbi/binaries/open-jbi-components/main/nightly/latest/ojc/
  5. Start GlassFish as it must be running before you can install the JBI components.
    Install these using GLASSFISH_HOME/bin/asadmin
    the commands are:
    asadmin install-jbi-shared-library --user admin -passwordfile={passwordfile} --host={hostname} --port={portno} {jarfile}
    for jar file use the file name of the jar of the shared library and
    encoder jars.
    These must be installed before the service engines and binding components.
  6. Installation of the binding components and service engines using asadmin:
    asadmin install-jbi-component --user admin -passwordfile={passwordfile} --host={hostname} --port={portno} {jarfile}

Comments:

You should also check out
https://open-esb.dev.java.net/public/install/open-esb-installation.html

which provides a non-graphical install option without having to construct your own installer.

Jason

Posted by jason on August 12, 2008 at 05:35 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blog will be about software that i work with; Java, OpenESB, GlassFish and perhaps a bit about photography.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today