Tải bản đầy đủ (.pdf) (23 trang)

BuildCompApps catchUpInstructions

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (226.5 KB, 23 trang )

Solution Guide for
D53946GC30 Build
Composite Applications

[Type text]


Summary: Setting the Start or End State for a Practice ...............................................................................3
Undeploying a Composite Application ..........................................................................................................5
Undeploying an Application (Practice 09) .....................................................................................................6
Installing a Solution File ..................................................................................................................................7
Practice 01 ........................................................................................................................................................8
Practice 02 ........................................................................................................................................................9
Practice 03 ........................................................................................................................................................10
Practice 04 ........................................................................................................................................................11
Practice 05 ........................................................................................................................................................12
Practice 06 ........................................................................................................................................................13
Practice 07 ........................................................................................................................................................14
Practice 08 ........................................................................................................................................................15
Practice 09 ........................................................................................................................................................16
Practice 10 ........................................................................................................................................................17
Practice 11 ........................................................................................................................................................18
Practice 12 ........................................................................................................................................................19
Practice 13 ........................................................................................................................................................20
Practice 14 ........................................................................................................................................................21
Practice 15 ........................................................................................................................................................22

2


Quick Reference: Setting the Start or End State for a Practice


Each practice follows the general steps on this summary page. To set the start or end state for a
given practice, it is recommended that you follow the specific instructions for that practice later
in this document.
1.

If the desired practice has already been deployed, undeploy the application(s).

2.

If the desired practice has already been created, stop JDeveloper, and rename or delete
the directory containing that application/project.

3.

To set to the end state for a given practice:
a. Complete steps 1-2 above.
b. Be sure practice 1 has been completed (manually).
c. Unzip and deploy the solution for the desired practice to the appropriate directory.

This practice

1. Overview
2. HelloWorld
3. Managing
Applications
4. Working With
Data

5. Adapters
6. Hello BPEL

7. More BPEL
8. Fault
Handling
9. Human Task
10. Business
Rules
11. Testing

…deploys these projects:

To set the start state, complete
Practice 1 and…
Install the
solution file
for this
practice(s)

Open and deploy
these
applications.

practice 05

CCValidate

none
none
Basics\HelloWorld
Basics\NativeData
Basics\CCValidate

Basics\JMSProducer
Basics\JMSConsumer [optional]
Basics\HelloBPEL
Files\ADFBCApplication\InternalStoreSDO
MyProjects\InventoryMgmt
MyProjects\Enroll
MyProjects\Booking
MyProjects\Approval
MyProjects\ApprovalTaskForm

practice 09
practice 05

12. Security

MyProjects\OrderProcessing
Basics\CCValidate (redeploy)
MyProjects\Enroll (redeploy)
MyProjects\Booking (redeploy)

13. Event

MyProjects\UpdateStock
MyProjects\RetrieveOrder

practice 09
practice 10

14. BAM
15. SOA and


MyProjects\OrderProcessing (redeploy)
MyProjects\CallApproval

practice 08

practice 09
practice 10

Approval
ApprovalTaskForm
CCValidate
Enroll
Booking
Approval
ApprovalTaskForm
OrderProcessing
Approval
ApprovalTaskForm
OrderProcessing

3


This practice

…deploys these projects:

To set the start state, complete
Practice 1 and…

Install the
solution file
for this
practice(s)

BPM

Open and deploy
these
applications.

BPMApplication\ApprovalProject (BPM)
BPMApplication\OrderApproval_UI

4


Undeploying a Composite Application
Overview
If you wish to deploy a solution file for an application that has already been deployed, remove
the deployed version from the runtime environment first.
1.

Undeploy the Composite Application.
a.

Open the Oracle Enterprise Manager page (http://localhost:7001/em).

b.


On the Farm navigation pane, expand the SOA > soa-infra > default nodes in the tree.

c.

Right-click the name of the application you wish to undeploy.

d.

Select SOA Deployment > Undeploy.

The Confirmation screen is displayed.
e.

Click Undeploy.

f.

The Progress screen is displayed. When undeployment is complete, you are returned
to the soa-infra page of the Enterprise Manager.

g.

Verify that the application is no longer displayed under the default node of the soa-infra
branch of the Farm navigation pane.

5


Undeploying an Application (Practices 09 and 15 use this.)
1.


For Practices 9 and 15 ONLY, undeploy the application MyProjects.
a.

On the Farm navigation pane, expand the Application Deployments branch of the tree.

b.

Right-click application MyProjects and select Application Deployment > Undeploy.

The Confirmation screen is displayed.
c.

Click Undeploy.

d.

The Progress screen is displayed. When undeployment is complete, you are returned
to the soa-infra page of the Enterprise Manager.

e.

Verify that the application is no longer displayed under the Application Deployments
branch of the Farm navigation pan

6


Installing a Solution File
Overview

To deploy a solution file, complete the instructions below.

Assumptions
These instructions assume you have removed any deployed version of the solution application
from the runtime environment.

Tasks
1.

Close JDeveloper.

2.

If work on a given lab is partially complete, rename the directory for that lab under
D:\labs\mywork. For instance, If the project 5 has been partially completed, before
installing the solution file, rename directory D:\labs\mywork\Basics\CCValidate (for
example, CCValidate.old).

3.

Open the zip file containing the solution for the practice and unzip it to the appropriate
application directory (Basics or MyProjects).

4.

Restart JDeveloper.

5.

Deploy the application(s).

Important Note: Refer to the specific deployment instructions in the Activity Guide for the
solution you are deploying. Several of the lessons deploy multiple applications. Recall also
that Practices 9 and 15 involve a different set of steps for deployment than other practices.

7


Practice 01


This practice must be completed manually.



It is a prerequisite for all other labs.

8


Practice 02
Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If project HelloWorld already exists:



If the project is already deployed, undeploy it.



If you wish to save your work



o

Stop JDeveloper.

o

Rename d:\labs\mywork\Basics\HelloWorld directory to
HelloWorld.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o

Delete project HelloWorld from JDeveloper.

Set the end state:


No separate solution is provided for this practice.




Complete the Set the end state instructions for Practice 03 (steps 2-4) to achieve a nearly
equivalent state.

9


Practice 03
Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If it does not exist, use JDeveloper to create application Basics.

3.

If project HelloWorld already exists:


If the project is already deployed, undeploy it.



If you wish to save your work




o

Stop JDeveloper.

o

Rename d:\labs\mywork\Basics\HelloWorld directory to
HelloWorld.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o

Delete project HelloWorld from JDeveloper.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.


Unzip the solution file 03_HelloWorld.zip to d:\labs\mywork\Basics.

4.

Restart JDeveloper.

5.

Deploy project HelloWorld as described in Practice 3-2 step 6.

6.

If you wish, test the deployed application as described in Practice 3-2 steps 7-13.

7.

If you wish, complete Practice 3-3 and 3-4 manually.

10


Practice 04
Set the start state:
1.

If it is not already done, complete Practice 01.

2.


If it does not exist, use JDeveloper to create application Basics.

3.

If project NativeData already exists:


If the project is already deployed, undeploy it.



If you wish to save your work



o

Stop JDeveloper.

o

Rename d:\labs\mywork\Basics\NativeData directory to
NativeData.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o


Delete project NativeData from JDeveloper.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 04_NativeData.zip to d:\labs\mywork\Basics.

4.

Restart JDeveloper.

5.

Deploy Project NativeData as described in Practice 4-5 steps 1-2.

6.

If you wish, test as described in Practice 4-5, steps 3-5.

11



Practice 05
This practice includes two separate projects. They can be restored independently of one
another. Some later projects depend on project CCValidate. There are no dependencies on
project JMSProducer.

Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If it does not exist, use JDeveloper to create application Basics.

3.

If project CCValidate already exists:


If the project is already deployed, undeploy it.



If you wish to save your work



o


Stop JDeveloper.

o

Rename d:\labs\mywork\Basics\CCValidate directory to
CCValidate.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o

4.

Delete project CCValidate from JDeveloper.

Repeat step 3 for Project JMSProducer.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.


Unzip the solution file 05_CCValidate.zip to d:\labs\mywork\Basics.

4.

Restart JDeveloper.

5.

Deploy Project CCValidate as described in Practice 5-3 steps 1-3.

6.

If you wish, test as described in Practice 5-3, steps 4-5.

7.

Deploy project JMSProducer as described in Practice 5-5 steps 1-3.

8.

If you wish, test as described in Practice 5-5, step 4.

12


Practice 06
This practice assumes practice 05 has been built and deployed successfully.

Set the start state:

1.

If it is not already done, complete Practice 01.

2.

If it does not exist, use JDeveloper to create application Basics.

3.

If it is not already built and successfully deployed, complete the Set the end state
instructions for Practice 05.

4.

If project HelloBPEL already exists:


If the project is already deployed, undeploy it.



If you wish to save your work



o

Stop JDeveloper.


o

Rename d:\labs\mywork\Basics\HelloBPEL directory to
HelloBPEL.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o

Delete project HelloBPEL from JDeveloper.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 06_HelloBPEL.zip to d:\labs\mywork\Basics.

4.

Restart JDeveloper.


5.

Deploy as described in Practice 6-2 step 1.

6.

If you wish, test as described in Practice 6-2, steps 2-3.

13


Practice 07
Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If it does not exist, use JDeveloper to create application MyProjects.

3.

If project InventoryMgmt already exists:


If the project is already deployed, undeploy it.




If you wish to save your work



o

Stop JDeveloper.

o

Rename d:\labs\mywork\MyProjects\InventoryMgmt directory to
InventoryMgmt.old.

o

Restart JDeveloper

If you do not wish to save your work:
o

Delete project InventoryMgmt from JDeveloper.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.


Complete Practice 7-1 manually if it has not already been done. (Deploy application
ADBFCApplication.)

3.

Stop JDeveloper.

4.

Unzip the solution file 07_InventoryMgmt.zip to d:\labs\mywork\MyProjects.

5.

Restart JDeveloper.

6.

Deploy as described in Practice 7-3 step 1.

7.

If you wish, test as described in Practice 7-5, steps 2-4.

14


Practice 08
Set the start state:
1.


If it is not already done, complete Practice 01.

2.

If it does not exist, use JDeveloper to create application MyProjects.

3.

If project Enroll already exists:


If the project is already deployed, undeploy it.



If you wish to save your work



o

Stop JDeveloper.

o

Rename d:\labs\mywork\MyProjects\Enroll directory to Enroll.old.

o

Restart JDeveloper.


If you do not wish to save your work:
o

4.

Delete project Enroll from JDeveloper.

Repeat step 3 for project BookingSystem.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 08_Enroll.zip to d:\labs\mywork\MyProjects.

4.

Restart JDeveloper.

5.

Complete Practice 8-1 manually (Open and deploy project BookingSystem.).


6.

Deploy project Enroll as described in Practice 8-4 step 1.

7.

If you wish, test as described in Practice 8-4, steps 2-3.

15


Practice 09
Because this Practice deploys an application with the project, the restore instructions and
solution files are different than other practices.

Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If project Approval already exists:


If the project is already deployed:
A. Undeploy project Approval.
B. Undeploy application MyProjects.






If you wish to save your work
o

Stop JDeveloper.

o

Rename d:\labs\mywork\MyProjects directory to MyProjects.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o

3.

Delete application MyProjects from JDeveloper.

If it does not exist, use JDeveloper to create application MyProjects.

Set the end state:
1.

Complete the Set the start state instructions for this practice.


2.

Stop JDeveloper.

3.

Unzip the solution file 09_MyProjects.zip to d:\labs\mywork.

4.

Restart JDeveloper.

5.

Deploy project Approval as described in Practice 9-4 step 3.

6.

If you wish, test as described in Practice 9-4, steps 4-16.

16


Practice 10
This practice assumes that you have completed Practice 9 successfully, and have deployed the
Approvals and ApprovalTaskForm applications.

Set the start state:
1.


If it is not already done, complete Practice 01.

2.

If it is not already done, complete the Set the end state instructions for Practice 9.

3.

If project OrderProcessing already exists:


If the project is already deployed, undeploy it.



If you wish to save your work



o

Stop JDeveloper.

o

Rename d:\labs\mywork\MyProjects\OrderProcessing directory to
OrderProcessing.old.

o


Restart JDeveloper.

If you do not wish to save your work:
o

Delete project OrderProcessing from JDeveloper.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 10_OrderProcessing.zip to d:\labs\mywork\MyProjects.

4.

Restart JDeveloper.

5.

Deploy project OrderProcessing as described in Practice 10-3 step 1.

6.


If you wish, test as described in Practice 10-3, steps 2-7.

17


Practice 11
This practice assumes that you successfully created and deployed the project CCValidate in
Practice 05.

Set the start state:
1.

Complete the Set the start state instructions (steps 1-3) for Practice 5.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 11_CCValidate.zip to d:\labs\mywork\Basics.

4.


Restart JDeveloper.

5.

Deploy project CCValidate as described in Practice 11-3 steps 1-2.

6.

If you wish, test as described in Practice 11-3, steps 3-9.

18


Practice 12
This practice assumes that you have completed Practice 8 successfully and that projects
Enroll and BookingSystem are deployed.
Note: There is no advantage to installing this solution unless you intend to deploy and observe
the results as described below in Set the end state steps 2 and 3.

Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If it is not already done, complete the Set the end state instructions for Practice 8.

Set the end state:
1.


Complete the Set the start state instructions for this practice.

2.

Complete this practice manually.

3.

Test as described in Practice 12-2, steps 10-20.

19


Practice 13
This practice assumes that you have successfully completed and deployed the
OrderProcessing (Practice 10) and Approval (Practice 9) applications, which were for the
business rules and human task lessons, respectively.

Set the start state:
1.

If it is not already done, complete Practice 01.

2.

If it is not already done, complete the Set the end state instructions for Practice 9.

3.


If it is not already done, complete the Set the end state instructions for Practice 10.

4.

If project UpdateStock already exists:


If the project is already deployed, undeploy it.



If you wish to save your work



o

Stop JDeveloper.

o

Rename d:\labs\mywork\MyProjects\UpdateStock directory to
UpdateStock.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o


5.

Delete project UpdateStock from JDeveloper.

Repeat step 4 for project RetrieveOrder.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 13_UpdateStock.zip to d:\labs\mywork\MyProjects.

4.

Restart JDeveloper.

5.

Deploy project UpdateStock as described in Practice 13-1 step 14.

6.


Deploy project RetrieveOrder as described in Practice 13-2 step 25.

7.

If you wish, test as described in Practice 13-3, steps 1-5.

20


Practice 14
This practice assumes that you have successfully completed and deployed the
OrderProcessing (Practice 10) and Approval (Practice 9) applications, which were for the
business rules and human task lessons, respectively.

Set the start state:
1.

Complete the Set the start state instructions for Practice 10.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.


Unzip the solution file 14_OrderProcessing.zip to d:\labs\mywork\MyProjects.

4.

Restart JDeveloper.

5.

If they have not already been done, complete Practice 14-1 and 14-2 manually.

6.

If you did NOT need to complete step 5 above, start the BAM server as described in
Practice 14-2 step 1.

7.

Deploy and test project OrderProcessing as described in Practice 14-4.

21


Practice 15
Because this Practice deploys an application with the project, the restore instructions and
solution files are different than most other practices.

Set the start state:
1.

If it is not already done, complete Practice 01.


2.

If project ApprovalProject already exists:


If the project is already deployed:
A. Undeploy project ApprovalProject.
B. Undeploy application BPMApplication.





If you wish to save your work
o

Stop JDeveloper.

o

Rename d:\labs\mywork\BPMApplication directory to
BPMApplication.old.

o

Restart JDeveloper.

If you do not wish to save your work:
o


3.

Delete application BPMApplication from JDeveloper.

If project CallApproval already exists:


If the project is already deployed:
o



Undeploy project CallApproval.

If you wish to save your work
o

Stop JDeveloper.

o

Rename d:\labs\mywork\MyProjects\CallApproval directory to
CallApproval.old.

o

Restart JDeveloper.

A. If you do not wish to save your work:

a. Delete application CallApproval from JDeveloper.
4.

If it does not exist, use JDeveloper to create application MyProjects.

Set the end state:
1.

Complete the Set the start state instructions for this practice.

2.

Stop JDeveloper.

3.

Unzip the solution file 15_MyWork.zip to d:\labs.

4.

Restart JDeveloper.

5.

Deploy project ApprovalProject as described in Practice 15-2 step 1.

6.

If you wish, test as described in Practice 15-2 steps 2-3.


22


7.

Deploy project CallApproval as described in Practice 15-4 step 1.

8.

If you wish, test as described in Practice 15-4 steps 2-5.

23



×