® ibm software group © 2006 ibm corporation duplicating your workspace you may need to copy files...

12
® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed using Tomcat, and want to use WebSphere for Integration Test). You also may want to make discretionary copies, back-ups, etc.

Upload: oswald-floyd

Post on 14-Dec-2015

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

®

IBM Software Group

© 2006 IBM Corporation

Duplicating Your Workspace

You may need to copy files from one workspace to another (example – you’ve developed using Tomcat, and want to use WebSphere for Integration Test). You also may want to make discretionary copies, back-ups, etc.

Page 2: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

2

Launch RBD and Select a New Workspace

Launch RBD From the Workspace Launcher, enter a new

Workspace location on your PC:

This will open your workbench with the Welcome page” – close it.

Page 3: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

3

Create New Dynamic Web Project

From the File menu, select: New > Project… From the new project wizard, select

Dynamic Web Project

Specify (carefully) Project Name: Target Runtime

Configurations

Add project to EAR file

Note that several of these options will be pre-selected

Click Click NNext >ext >

Page 4: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

4

Specify Project Facets

From Project Facets, check the following options for your new project:

Default style sheet

Both of the EGL options

Both of the WebSphere Web options

No other options!

Click Next >Click Next >

Page 5: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

5

Add EGL Settings

Click Next > Click Next > past the next setup menu (Accept defaults for folder names)

From EGL SettingEGL Setting, carefully enter the JNDI name to connect to your database:

jdbc/EGLDerbyR7

Click FinishClick Finish

Click Yes to Open the Associated Web Perspective

Close the Web Diagram tool, open by default in the Content Area

Page 6: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

6

Copy Pages and WebContent Over

From My Computer or Windows Explorer, open your existing project’s \WebContent\ folder.

Select all EXCEPT META-INF and WEB-INFEXCEPT META-INF and WEB-INF – and paste into the new \WebContent\ folder in your new workspace.

Over-write themewhen prompted.

Page 7: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

7

Copy EGLWeb Resources

From My Computer or Windows Explorer, open your existing project’s \EGLSource\ folder.

Select all files and copy them. files and copy them.

Paste them over \EGLSource\ in your new Workspace

From Project Explorer, Right Click over EGLWeb and:

GenerateGenerate

From the Project Menu:

Clean…Clean…

Note – you may need to delete the com package

in the new Workspace

Page 8: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

8

Add a Data Source for your EGLDerby Database

From EGLWebEAR:

Open the Deployment Descriptor

Click the Deployment tab

Page 9: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

9

Add a Data Source for your EGLDerby Database

From Datasource defined in the JDBC provider above:

Click Add Select Derby JDBC Provider (XA) At Version 5.0

Click Next >Next >

Page 10: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

10

Create a New Data Source

From Create DataSource

Name the DataSource (a Java-compliant name – no spaces, etc.)

(carefully) specify the JNDI name

jdbc/EGLDerbyR7jdbc/EGLDerbyR7

Click Next >Next >

From Create Resource Properties:

Enter a Value: for the database:

C:/databases/EGLDerbyR7C:/databases/EGLDerbyR7

Click FinishFinish

Page 11: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

11

Ensure that J2EE is Set to Yes in Your Build File and Re-Generate

If J2EE is set to “no” in your build-file, you will not be able to re-generate your project and run.

Open the Build File in the editor

Select “YES” for j2ee

Save and close your Build File

(From Project Explorer) Generate your projectGenerate your project

Page 12: ® IBM Software Group © 2006 IBM Corporation Duplicating Your Workspace You may need to copy files from one workspace to another (example – you’ve developed

12

Add/Remove Your Project

When you are finished, you need to remove the existing EAR file from your When you are finished, you need to remove the existing EAR file from your project, and add your new EAR file. Do this from the Servers tabproject, and add your new EAR file. Do this from the Servers tab