HowTo deploy J2EE Application using ATG D ynam o by usr10478

VIEWS: 59 PAGES: 14

									                 !




        Autor Michael Maretzke

         "
    #
    #




$
    %        $          !




         1
                                                                                                 Overview of J2EE Deployment




            & ' '              (                                                                                         )
                  "                      "
                  #      $ %                                                                                             &
                       ' ( #                 $ )' # *                                                                    &
                       +                      , $ -   #                $ .+ ,- ,# *                                      &
                       #                        /   #   $              .# /      ,# *                                    &
        &              +                      #        #               $ .+ # *
                  *                $ $
                       #                      /                   0 $         1# / 0 2
                       #                      #          (       1# # 2

                                                                                                                         *
                  #34                                                                                                    5
                    #34                  6                                                                               5
                    #34                           , ++
                  #34 7                                      "                                                           8
                  "                          6
                                    (                            6 6
                           6            #34 7                             "
    &             "                                                +#*
    &                      6            #34 7                             "
                  9                #34 "
    5             96                     #34        , ++                                 6   3    9   /   /

)           + (                                                                                                          ,
                                                                                                       Overview of J2EE Deployment



             & '      '               (
, ++                                                    (                                6              (                             3                 9           $   :
, $ 9 $           0           :3     ; (                    +                , $ -           0 6
, ++)
, ++              6       $                                                   , 9+            7             ( 6                                                 3
                                           6       , ++ #
'          , ++                6                                                  $                                                       (                 "
                                                                $       6                , ++                     1   #34 "                   2 <
            , ++
#                              $ $                      $                        , ++                          (         (                  %6
    ( 6 , ++                                   (    6               =9 > ?   @: =9 > ? @: =9 > ?       @: =9 > ? &@: =9 > ?       @       =# 3 4    @




Graphic 1Overview of J2EE deployment process and involved roles



3      6                                                                                           $        3                         $
                               ( 6                  6                                         A                               $                                 (
                                                                                                                         Overview of J2EE Deployment


                       3            $                      6      (               6           (                                        (   6       3                ) $
1                                                                         2
3                                                        B ! ;)                                                            7                       7        $
                       - ' .
+                                           $                                             $                    3     6              ,# *               (6
               / 0            - '               1/   +
3          (           $                                   :              :,9 0                                                                    „web.xml“                      (
                   C                                       ' #*                       ,# * )              $                     (      7       6
WAR archive structure
<JSP pages and content resources>
WEB-INF/
               web.xml (deployment descriptor)
               classes/
                   <classes and resources>
               lib/
                   <class and resource .jar files>


                                            ' 2                 - '       3           2           +
3      + ,- ,# *                                                                                                         + ,-                      3            $         (           ,# *
                                                                                      „ejb.xml“
EJB JAR archive structure
<classes and resources>
META-INF/
               ejb.xml (deployment descriptor)


      )                                 4                 - '         3       4                       +
3      #       /           ,# *                                                                                                                         3                     $   (
    ,# *                                    :                                                                 MANIFEST.MF
                                                                                                                                    Deployment process


AppClient JAR archive structure
<classes and resources>
META-INF/
                  application-client.xml (deployment descriptor)
                  MANIFEST.MF (names the main class)


         ,                                                 -'         3        +
# +#*                 $                (                   ,# *                $           A                  + ,- ,# * :' # *                  #   /    ,# *
3                                          6                      +#*              :                             (                          3
   3                                               $
EAR archive structure
<EJB JAR, WAR and AppClient JAR>
META-INF/
                  application.xml (deployment descriptor)


     )            +         ' '                    -
*                                                                                                                                   *                      $

                                                       4                       5       '       6 457
C                     #/0     6                    $                      , ++                   3            6           ' # * :+ ,- ,# * :# /          ,# *
     $                                                                    3                                           $              ##      (
                                                                  0        6       7
3            ##                                $                                           #/0            6                                               D
 6                    ##               (                                   $                                                    (                               :
                                  (6                        $                                        ##           6                     $           .   +#*:
                                       $
                                                                                                         Deployment process




3 6                                                   , ++                                 #34 "             , ++                         7
                              #34            , ++                   < $                                  (           =# 3 4   @




Graphic 2 Architecture of ATG Dynamo

, ++ 6                                   6                     $    (     #34    6     6                     #34                          $
       $          , ++                                                                3            #34               6                6
  , ++                                                              , ++             6                           $       (    #34
                     , ++/                   A                       E $ F, ++
3                                                    #34                                   (        (        (


                          (         8
                              8
=# 3 4   @: =# 3 4 &@ 3                          6           , ++                                        #34                      3

/config/atg/dynamo/service/j2ee/J2EEContainer.properties
/META-INF/MANIFEST.MF
3                                                  J2EEContainer 3
                                        # J2EEContainer.properties
                                                                                                         Deployment process


# Version: $RCSfile: J2EEContainer.properties,v $$Revision: 1.2 $$Date:
2000/06/16 22:12:44 $
applications+=\
             {atg.dynamo.root}/AdditionBean/AdditionBean.dar

3                                           $ (         #34 "         A                 6
    G6            < $
Manifest-Version: 1.0
ATG-Config-Path: config/
ATG-Required: DAS
ATG-Patch-Build: 2714
ATG-Patch-Date: 20010619
ATG-Merge-Log: 5.1p2 5.1.1p2
ATG-Patch-Time: 18:52:52
ATG-Patch-Version: 5.1.1p2


3                           6 6                         (   , ++
ATGAPP
  |- config
  |    |- atg
  |        |- dynamo
  |             |- service
  |                  |- j2ee
  |                      |- J2EEContainer.properties
  |- META-INF
  |    |- MANIFEST.MF
  |- J2EEAPP
       |- WAR
       |- EJB JAR
       |- APP CLIENT JAR


3                                                                         , ++                   3       ( 6             , ++
                             $


                        (             8
-                                         ( $       7        , ++                            #34 "              A7
/J2EEAPP/META-INF/DYNAMO-INF/dynamoJ2EESpecifier.xml
3             6                                 6   #34 "             (                                  "
         6                        $                                                                  3         6 6
application.xml               %                                 ( 6              =# 3 4 &@
#                                     7                                                      (                       (


<?xml version="1.0" encoding="UTF-8"?>
                                                              Deployment process


<!DOCTYPE dynamo-j2ee-specifier SYSTEM
"http://www.atg.com/j2ee/dtds/dynamoJ2EESpecifier/dynamoJ2EESpecifier_1.0.dtd">
<dynamo-j2ee-specifier>
  <application-name>
    reverser
  </application-name>
  <war>
    <module-uri>
      web-app
    </module-uri>
  </war>
  <ejb-jar>
    <module-uri>
      ejbs
    </module-uri>
    <enterprise-beans>
      <session>
        <ejb-name>
          Reverser
        </ejb-name>
      </session>

     <entity>
       <ejb-name>
         StorageBean
       </ejb-name>
       <cmp-mapping>
         <repository-name>
           dynamo:/atg/dynamo/service/jdbc/SQLRepository
         </repository-name>
         <repository-view-name>
           Storage
         </repository-view-name>
         <read-only>
           False
         </read-only>

         <field-mapping>
           <field-name>
             itemid
           </field-name>
           <property-name>
             itemid
           </property-name>
         </field-mapping>
         <field-mapping>
           <field-name>
             item
           </field-name>
           <property-name>
             item
           </property-name>
         </field-mapping>
         <field-mapping>
           <field-name>
             description
           </field-name>
           <property-name>
             description
           </property-name>
         </field-mapping>
         <field-mapping>
           <field-name>
             location
           </field-name>
           <property-name>
                                                        Deployment process


               location
             </property-name>
           </field-mapping>
         </cmp-mapping>

         <finder-method>
           <method-name>
             findByPrimaryKey
           </method-name>
           <finder-query>
             <![CDATA[ emp_itemid = ?0 ]]>
           </finder-query>
         </finder-method>

        <finder-method>
          <method-name>
            findAll
          </method-name>
          <finder-query>
            ALL
          </finder-query>
        </finder-method>
      </entity>
    </enterprise-beans>
  </ejb-jar>
</dynamo-j2ee-specifier>


           9
# , ++                              (        6   , ++      3
•
•                       6 6
•                   6
•          6(                 6         (
•
•
3               (       "         < $             ( 6     6 "
                                                                                                                      Deployment process


    )                                                   $
3                               "                           (        (6              #34         , ++                                      3
        7                                     $                                        6   +#*     1  ,- 6       :3            9       /       /       :
            +#*            2"                                             $          3                                 7
                                        $         (             $                   1 7                      $                                     2
    )                       0
-                          (                          6 6       A7            6 6     #34 6      7                         A       $
                  7

ATG_J2EE_Application
  |- j2ee_application.dar
  |- META-INF
  |   |- MANIFEST.MF
  |- config
  |   |- atg
  |       |- dynamo
  |            |- service
  |                |- j2ee
  |                |   |- J2EEContainer.properties
  |                |- jdbc
  |                    |- ...
  |- j2ee-apps
      |- META-INF
      |   |- application.xml
      |   |- DYNAMO-INF
      |        |- dynamoJ2EESpecifier.xml
      |- appclient
      |   |- META-INF
      |   |    |- application-client.xml
      |   |    |- MANIFEST.MF
      |   |- (packaged sources)
      |- ejbs
      |   |- META-INF
      |   |    |- ejb-jar.xml
      |   |- (packaged sources of ejbs)
      |- web-app
          |- (web resources as JSP's, HTML's, etc.)
          |- WEB-INF
               |- web.xml
               |- classes
               |   |- (packaged sources of servlets & tags)
               |- taglibs
               |   |- (TLD files)
               |- lib
                   |- (libraries, resources, etc.)


*                         #34               :( 6                      , ++ >
    )                               9
9       "             7                           (                                                  7                 1
ATG_J2EE_Application2
                                                                                                                                       Deployment process


$DYNAMO_HOME/ATG_J2EE_Application#> $DYNAMO_HOME/bin/runDarina ./j2ee-apps –o
j2ee_application.dar –build –overwrite-dar
#        6           6        6          "              6           (       #34                              j2ee_application.dar            (6         %
                    ( 6 "                      =# 3 4       @
    ,                                                                           + (
# , ++                       +#*                                                  6                                                               ( $        -6
                                                        $ $
%                , ++ +#*                       6                       $              $         (       #                                            , ++
    $        (          1              #34 "                2 3                                                      $
    ,                              9
#                            +#*                                7                                              H" I ? # ! C J< C ! +                              $
(
•       6 "                                   dynamoJ2EESpecifier.xml
•                  /META-INF/MANIFEST.MF
•                  /config/atg/dynamo/service/...                                                                   6      #34
•       6 "                                     6       (       #34
'                                                                           6 6

ATG_J2EE_Application
  |- j2ee_application.dar
  |- META-INF
  |   |- MANIFEST.MF
  |- config
  |   |- atg
  |       |- dynamo
  |           |- service
  |               |- j2ee
  |               |   |- J2EEContainer.properties
  |               |- jdbc
  |                   |- ...
  |- j2ee_application.ear


*                    #34                     :( 6                       , ++
%                    (             6
$DYNAMO_HOME/ATG_J2EE_Application#> $DYNAMO_HOME/bin/runDarina
j2ee_application.ear
"                                                                                     +#*)           1         j2ee_application2 3            6 6
                                                                                             (                           6 6
#                        "                              dynamoJ2EESpecifier.xml                                                +                  6
?   7          /META-INF/MANIFEST.MF                                                                         #34                   6
/config/atg/dynamo/service/... < $                                                                                  #34
#            $                                                              6          7                     6 "
                                                                                            Deployment process


$DYNAMO_HOME/ATG_J2EE_Application#> $DYNAMO_HOME/bin/runDarina
j2ee_application –o j2ee_application.dar –build –overwrite-dar
?     "                   #34 6           (                     j2ee_application.dar


          #                                   -
9         "                                                 9         H " I ? # ! C J < C ! + K(

$DYNAMO_HOME/bin#> ./startDynamo –m ATG_J2EE_Application
3                         .                                                       "          #         $   1" # * 2
#34                                   6           6
'                     $                               ( $   A                           6          6
              #   6               L
                                                                                 References


               #         (                                             -   # (
           4       4




Graphic 3 Deployment process in detail - focus on integration between ControlCenter and ATG
Dynamo
                                                                                                                                                             References


)            + (
=9 > ?   @             KKM $ 6                KM       K                                N                            :, + +
                        9>?
=9 > ?   @             KKM $   6              K        6            K M( K                      :                              M(
=9 > ?   @             KKM $   6              K        6            K      $   K                             :                               $
=9 > ? &@              KKM $   6              K        6            KM K                            :                                    M
=9 > ?   @             KK $             M $        6                    K $          K                   #              K, + + K
                   (               K-                      9              AA 0 " % :                                                                         :$
=# 3 4   @         #34 "                :0                               4 6       :O                            :            8 :
=# 3 4   @         #34 "                :0                               4 6       :O                            :       P          :"           !       6
=# 3 4   @         #34 "                :C $ $                 :O                           :           :C $ $                 #34 "                 #            6
=# 3 4 &@          #34 "                :0                               4 6       :O                            :                  :/
                   dynamoJ2EESpecifier.xml
=# 3 4   @         #34 "                :0                               4 6       :O                            :                  : 6 "

								
To top