IBM WebSphere Adapters User Manual page 33

Version 6 release 2
Table of Contents

Advertisement

6. In Java Creation and Deployment Configuration, make the following
selections:
v Select create new project Name and enter a name for the project, for
example, Demo.
v Enter a name in the Create New Package Name field, for example pckg
v Provide an interface name in the Interface Name field, for example Sample
v Choose Non-managed Connection and click Finish.
7. Right click on Demo → New → Other → J2C and select one of the following:
v Web Page
v Web Service
v EJB from J2C Java Bean
Select Next.
8.
Choose Java Project and enter a name for the project.
9. In J2C Java bean selection, choose the correct J2C bean implementation and
click Next. For example, using the values documented in this sample, you
would choose:\Demo\src\pckg\SampleImpl.java
10. Select EJB and click Next
11. Create the EJB project name and the EJB package.
12. For example, DemoEJB for the project name and ejbpkg for the EJB package
name.
13. Right click DemoEJB → Properties and add the following to the Java Build
path:
v twine.jar
v aspectjrt.jar
v ffdc.jar
v ffdcsupport.jar
14. Right click DemoEJB → Java EE → Prepare for deployment
15. Right click on Server and add project If you used values from this example,
you would add the project DEMOEJBEAR.
Use the universal test client to test the adapter in the Twine Ball sample.
Test the sample using the universal test client
Use the universal test client to verify that the adapter in the Twine Ball sample
functions as intended.
Before you test the sample module make sure you have completed all of the
previous tasks for creating and modifying the sample module.
The test validates that the adapter performs it's intended functions within the
context of the Twine Ball sample.
1. Run universal test client.
2. Click on JNDI Explorer
3. Click on ejb and click on your package, for example ejbpkg and select correct
SessionBeanHome
4. On the left side of Universal test client, choose correct SessionBeanHome and
Invoke create method. If you used the values from the sample documentation,
you would select EJBSessionBeanHome.
5. Click the work with object radio button.
WebSphere Adapter development overview
27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Websphere adapter toolkit

Table of Contents