Essential ATG Dynamo Training - Got atg Certified Relationship Management Developer?
This is not an official ATG site: ATG, Dynamo, Scenario Server and Personalization Server are trademarks or registered trademarks of Art Technology Group
Articles Exercises Resources Links Search

ATG - OpenJMS Integration (3) - Setup

Installation

How I installed the components for this experiment

 

ATG Dynamo

Install Dynamo by running the standard installation procedures

Java Development Kit

Install the Java Development Kit jdk1.3.1 from Sun, I installed it to c:\jdk\1.3.1.

OpenJMS

The installation instructions for OpenJMS are published here, the steps I took were:

  1. Download the zip- file
  2. Extract the zip-file (with folders) to
    c:\java\openjms-0.7.2
  3. Create a batch file startOpenJMS.bat to initialize the environment settings. Later on I'll add the command to actually start the server,
    set JAVA_HOME=c:\jdk1.3.1
    set OPENJMS_HOME=C:\java\openjms-0.7.2
  4. Open a cmd shell and
    c:\>cd c:\java\openjms-0.7.2
    c:\java\openjms-0.7.2>startOpenJMS
    c:\java\openjms-0.7.2>build convert
    This generated the following:
    lib\xslp_1.1.jar;
    lib\xerces-J_1.3.1.jar;
    lib\oro-2.0.4.jar;
    lib\junit_3.7.jar;
    lib\exolabtools-1.0.jar;
    lib\castor-0.9.3.jar;
    lib\antlrall_2.7.1.jar;
    lib\ant_optional_1.5.jar;
    lib\ant_1.5.jar;
    c:\jdk1.3.1\lib\tools.jar
    Buildfile: src\build.xml
    
    convert:
      [fixcrlf] DEPRECATED: The cr attribute has been deprecated,
      [fixcrlf] Please use the eol attribute instead
      [fixcrlf] DEPRECATED: The cr attribute has been deprecated,
      [fixcrlf] Please use the eol attribute instead
      [fixcrlf] DEPRECATED: The cr attribute has been deprecated,
      [fixcrlf] Please use the eol attribute instead
      [fixcrlf] DEPRECATED: The cr attribute has been deprecated,
      [fixcrlf] Please use the eol attribute instead
    
    BUILD SUCCESSFUL
    Total time: 1 second
    Then to build the server
    C:\java\openjms-0.7.2>build all
    lib\xslp_1.1.jar;
    lib\xerces-J_1.3.1.jar;
    lib\oro-2.0.4.jar;
    lib\junit_3.7.jar;
    lib\exolabtools-1.0.jar;
    lib\castor-0.9.3.jar;
    lib\antlrall_2.7.1.jar;
    lib\ant_optional_1.5.jar;
    lib\ant_1.5.jar;
    c:\jdk1.3.1\lib\tools.jar
    Buildfile: src\build.xml
    
    clean:
    
    prepare:
        [mkdir] Created dir: C:\java\openjms-0.7.2\build
    
    examples:
        [mkdir] Created dir: C:\java\openjms-0.7.2\build\examples
        [javac] Compiling 34 source files to C:\java\openjms-0.7.2\build\examples
    
    prepare:
    
    make-keystore:
    
    prepare:
    
    generate-keystore:
    
    all:
    
    BUILD SUCCESSFUL
    Total time: 7 seconds
    
    C:\java\openjms-0.7.2>
  5. To start the server the command line is
    startjms -config ../config/rmi_jms.xml
    To keep things easy I'm going to add this to my startOpenJMS batch file:
    set JAVA_HOME=c:\jdk1.3.1
    set OPENJMS_HOME=C:\java\openjms-0.7.2
    @echo off
    echo Starting openJMS server
    cd %OPENJMS_HOME%\bin
    startjms -config ../config/rmi_jms.xml

    So I'll try my  startOpenJMS:

    C:\java\openjms-0.7.2>startOpenJMS
    
    C:\java\openjms-0.7.2>set JAVA_HOME=c:\jdk1.3.1
    
    C:\java\openjms-0.7.2>set OPENJMS_HOME=C:\java\openjms-0.7.2
    Starting openJMS server
    OpenJMS 0.7.2 (build 14)
    Exolab Inc. (C) 1999-2002. All rights reserved. www.openjms.org
    12:11:11.109 INFO  [main] - Instantiated the RmiRegistryService service on port 1099
    12:11:11.119 INFO  [main] - Embedded RMI Registry running on port 1099
    12:11:11.119 INFO  [main] - Creating the RMI-based JMS Server
    12:11:13.382 INFO  [main] - Registered the service JndiServer with the registry.
    12:11:13.382 INFO  [main] - Started service [RmiRegistryService]
    12:11:13.382 INFO  [main] - Started service [ThreadPoolManager]
    12:11:13.382 INFO  [main] - Started service [EventManagerThread]
    12:11:13.452 INFO  [main] - Removed expired messages.
    12:11:13.452 INFO  [main] - Started service [DatabaseService]
    12:11:13.452 INFO  [main] - Started service [Scheduler]
    12:11:13.452 INFO  [main] - Started service [LeaseManagerReaper]
    12:11:13.462 INFO  [main] - Started service [GCCollectionService]
    12:11:13.512 INFO  [main] - Started service [MessageManager]
    12:11:13.522 INFO  [main] - JMS Server is bound to //localhost:1099/OpenJMSServer
    12:11:13.552 INFO  [main] - JMS Admin Server is bound to //localhost:1099/JmsAdminServer
    Looks good!

    Now go to the JMS registration instructions to see how to integration Dynamo with OpenJMS

 


Technical Training Advertise your Training Programs for Free! Los Angeles Web Design Shopping Cart Software  Form a Corporation