GT4????? - PowerPoint PPT Presentation

About This Presentation
Title:

GT4?????

Description:

GT4 Agenda GT4 GT4 GT4 GT4 (1) JDK1.4.2+ ANT1.5.4+ Tomcat 5+( ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 30
Provided by: lam104
Learn more at: http://www.lamost.org
Category:
Tags: gt4 | jndi

less

Transcript and Presenter's Notes

Title: GT4?????


1
GT4?????
  • ???

2
Agenda
  • GT4??
  • GT4???
  • GT4?????

3
GT4???(1)
  • ????
  •        JDK1.4.2
  • ANT1.5.4
  • Tomcat 5(??)

4
????
  • 2.1 ?????????,????,??GT4. such as globus,
    ?????????GT4,?GT4?????
  • 2.2 ??????
  • JAVA_HOME,ANT_HOME,GLOBUS_LOCATION,GPT_LOCATION

5
??GT4(????????)
  • 3.1. ??GT3.9.5?????
  • 3.2 ????? ./configure prefixGLOBUS_LOCATION
  • 3.3 make
  • 3.4 source GLOBUS_LOCATION/etc/globus-user-env.
    sh
  • globus-start-container -nosec

6
WEB SERVICE?????
7
WSDL
8
WS????
9
WS???(Apache Asix)
10
WS-----WSRF(1)
11
WS-----WSRF(2)
12
How to persist state in WSRF
13
How to persist state in WSRF(2)
14
WS-Resource
15
WS-Resource
  • WS-ResourceProperties
  • WS-ResourceLifecycle
  • WS-RenewableReferences

16
How to Write a stateful WS
  • Step 1 Defining the interface in WSDL
  • Step 2 Implementing the service in Java
  • Step 3 Configuring the deployment in WSDD (and
    JNDI)
  • Step 4 Create a GAR file with Ant
  • Step 5 Deploy the service into a Web services
    container

17
Step 1 Defining the interface in WSDL
  • MathService WSDL
  • Namespace mappings
  • http\//www.globus.org/namespaces/2004/11/progtut
    orial/wsrf/MathService org.globus.progtutorial.st
    ubs.MathService http\//www.globus.org/namespaces/
    2004/11/progtutorial/wsrf/MathService/bindings
    org.globus.progtutorial.stubs.MathService.bindings
    http\//www.globus.org/namespaces/2004/11/progtut
    orial/wsrf/MathService/service
    org.globus.progtutorial.stubs.MathService.service

18
Step 2 Implementing the service in Java
19
(No Transcript)
20
Write Java code
  • MathNameSpaces
  • MathService implements MathNamespaces
  • MathResource implements Resource,
    ResourceIdentifier, ResourceProperties,
    MathNamespaces
  • MathResourceHome extends ResourceHomeImpl

21
Step 3 Configuring the deployment in WSDD (and
JNDI)
  • The WSDD deployment descriptor
  • Tells the Web service container how it should
    publish our Web service
  • The JNDI deploy file
  • Locate resource homes.

22
Step 4 Create a GAR file with Ant
  • Processing the WSDL file to add missing pieces
    (such as bindings)
  • Creating the stub classes from the WSDL
  • Compiling the stubs classes
  • Compiling the service implementation
  • Organize all the files into a very specific
    directory structure

23
(No Transcript)
24
  • ./tutorial_build.sh -d ltservice base directorygt
    -s ltservice's WSDL filegt

25
Step 5 Deploy the service into a Web services
container
  • ant \ -f share/globus_wsrf_common/build-packages.x
    ml \ deployGar \ -Dgar.nameltfull path of GAR
    filegt

26
Client
  • implements MathNamespaces
  • MathServiceAddressingLocator locator new
    MathServiceAddressingLocator()

27
??GT4???(1)
  • ??GT4????????GT3???,?????????,?WSRF???OGSI,??,????
    ????GT4,??????????
  • ??GT4??GT3????,????GT4????GT3??????,??GT4?????,??
    ???????

28
??GT4???(2)
  • GT4??????????,??????????API,???????????,??????????
    ????

29
??GT4???(3)
  • ????????????????????
Write a Comment
User Comments (0)
About PowerShow.com