10.02.2013 Views

IBM WebSphere Adapter for JD Edwards EnterpriseOne Quick Start ...

IBM WebSphere Adapter for JD Edwards EnterpriseOne Quick Start ...

IBM WebSphere Adapter for JD Edwards EnterpriseOne Quick Start ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> <strong>Quick</strong> <strong>Start</strong> Scenario V 7.0<br />

October 14, 2008 - - 1 - -


Note: Be<strong>for</strong>e using this in<strong>for</strong>mation and the product it supports, read the<br />

in<strong>for</strong>mation in "Notices" on page 107.<br />

This edition applies to version 7, release 0, modification 0 of <strong>IBM</strong> <strong>WebSphere</strong><br />

<strong>Adapter</strong> <strong>for</strong> <strong>JD</strong>E and to all subsequent releases and modifications until<br />

otherwise indicated in new editions.<br />

© Copyright International Business Machines Corporation 2009. US<br />

Government Users Restricted Rights – Use, duplication or disclosure<br />

restricted by GSA ADP Schedule Contract with <strong>IBM</strong> Corp.<br />

October 14, 2008 - - 2 - -


Table of Contents<br />

Chapter 1. Introduction ................................................................... - 6 -<br />

Learning Objectives................................................................................................................. - 6 -<br />

Audience ................................................................................................................................. - 6 -<br />

Software prerequisites............................................................................................................. - 6 -<br />

Chapter 2. Preparing to run through the tutorial .......................... - 8 -<br />

Configuration prerequisites ..................................................................................................... - 8 -<br />

Extracting the sample files .................................................................................................... - 10 -<br />

Chapter 3. Tutorial 1: Retrieve data from <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> AddressBook using a business function (outbound<br />

processing) - 16 -<br />

Scenario ................................................................................................................................ - 16 -<br />

Configuring the adapter <strong>for</strong> outbound processing................................................................. - 17 -<br />

Creating the project ......................................................................................................- 17 -<br />

Adding external software dependencies ......................................................................- 19 -<br />

Select direction of adapter processing .........................................................................- 21 -<br />

Setting connection properties <strong>for</strong> the external service wizard......................................- 21 -<br />

Selecting the business objects and services to be used with the adapter ...................- 21 -<br />

Generating business object definitions and related artifacts........................................- 27 -<br />

Deploying the module to the test environment...................................................................... - 36 -<br />

Testing the assembled adapter application .......................................................................... - 37 -<br />

Clearing the sample content ................................................................................................. - 38 -<br />

Chapter 4. Tutorial 2: Retrieving data from <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> table using XML List query (outbound processing)..... - 40 -<br />

Scenario ................................................................................................................................ - 40 -<br />

Configuring the adapter <strong>for</strong> outbound processing................................................................. - 41 -<br />

Creating the project ......................................................................................................- 41 -<br />

Select direction of adapter processing .........................................................................- 44 -<br />

Setting properties <strong>for</strong> the external service wizard ........................................................- 45 -<br />

Selecting the business objects and services to be used with the adapter ...................- 45 -<br />

Generating business object definitions and related artifacts........................................- 52 -<br />

October 14, 2008 - - 3 - -


Deploying the module to the test environment...................................................................... - 58 -<br />

Testing the assembled adapter application .......................................................................... - 59 -<br />

Clearing the sample content ................................................................................................. - 60 -<br />

Chapter 5. Tutorial 3: Invoking <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong><br />

AddressBook using a business function (outbound processing) in<br />

multiple times - 61 -<br />

Scenario ................................................................................................................................ - 61 -<br />

Configuring the adapter <strong>for</strong> outbound processing................................................................. - 62 -<br />

Creating the project ......................................................................................................- 62 -<br />

Adding external software dependencies ......................................................................- 64 -<br />

Select direction of adapter processing .........................................................................- 65 -<br />

Setting connection properties <strong>for</strong> the external service wizard......................................- 66 -<br />

Selecting the business objects and services to be used with the adapter ...................- 66 -<br />

Generating business object definitions and related artifacts........................................- 72 -<br />

Deploying the module to the test environment...................................................................... - 83 -<br />

Testing the assembled adapter application .......................................................................... - 84 -<br />

Clearing the sample content ................................................................................................. - 85 -<br />

Chapter 6. Tutorial 4: Polling <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> Real-time<br />

event from <strong>JD</strong> <strong>Edwards</strong> transaction server (inbound processing) ...... - 86 -<br />

Scenario ................................................................................................................................ - 86 -<br />

Configuring the adapter <strong>for</strong> inbound processing ................................................................... - 87 -<br />

Creating the project ......................................................................................................- 87 -<br />

Adding external software dependencies ......................................................................- 89 -<br />

Select direction of adapter processing .........................................................................- 90 -<br />

Setting connection properties <strong>for</strong> the external service wizard......................................- 91 -<br />

Selecting the business objects and services to be used with the adapter ...................- 91 -<br />

Generating business object definitions and related artifacts........................................- 96 -<br />

Configure the data source EP_DataSource with JNDI EP_DataSource_JNDI in ..............- 105 -<br />

Deploying the module to the test environment....................................................................- 107 -<br />

Testing the assembled adapter application ........................................................................- 108 -<br />

Clearing the sample content ...............................................................................................- 110 -<br />

Chapter 7. Troubleshooting........................................................ - 111 -<br />

Notices..................................................................................................... - 114 -<br />

October 14, 2008 - - 4 - -


October 14, 2008 - - 5 - -


Chapter 1. Introduction<br />

The <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> 7.0 exchanges<br />

in<strong>for</strong>mation with <strong>EnterpriseOne</strong> application via two types of <strong>JD</strong>E outbound<br />

calls - Business Function calls and XML List calls and one type of <strong>JD</strong>E inbound<br />

mechanism – Real-time Event.<br />

To gain practical knowledge in setting up and deploying the adapter, complete<br />

one or more of the tutorials. Everything you need to complete each tutorial is<br />

contained in the tutorial. If you have per<strong>for</strong>med the prerequisite tasks, you<br />

can complete each tutorial in under an hour.<br />

Learning Objectives<br />

After completing a tutorial, you should be able to per<strong>for</strong>m the following tasks:<br />

Audience<br />

• Create an adapter project in <strong>WebSphere</strong> Integration Developer.<br />

• Discover services and associated business objects from the enterprise<br />

in<strong>for</strong>mation system (EIS) and make them part of the adapter project.<br />

• Create a deployable module that you install on <strong>WebSphere</strong> Process<br />

Server or <strong>WebSphere</strong> Enterprise Service Bus.<br />

• Test the module and validate the results.<br />

These tutorials are <strong>for</strong> integration developers who design, assemble, test, and<br />

deploy business integration solutions.<br />

Software prerequisites<br />

To use these tutorials, you must have the following applications installed:<br />

• <strong>WebSphere</strong> Integration Developer version 7.0<br />

• WebShpere Process Server version 7.0<br />

• <strong>JD</strong> <strong>Edwards</strong> Enterprise Tools<br />

October 14, 2008 - - 6 - -


October 14, 2008 - - 7 - -


Chapter 2. Preparing to run through the<br />

tutorial<br />

Configuration prerequisites<br />

Be<strong>for</strong>e doing any tutorial testing, complete the following tasks:<br />

The adapter requires the following libraries which are supplied by Oracle<br />

except the <strong>JD</strong>BC drivers <strong>for</strong> the database. They should be copied to a folder<br />

on the system where the <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> EMD will be executed.<br />

If you want to try the <strong>JD</strong>E adapter inbound scenario (tutorial4), configure the<br />

Real-time event RTCOOUT in your <strong>JD</strong>E server as you will use the Real-time<br />

event RTCOOUT in tutorial4.<br />

8.9 (SP1,SP2), 8.93 8.94 8.95,8.96 8.97,8.98<br />

kernel.jar kernel.jar Connector.jar ApplicationAPIs_JAR.j<br />

ar<br />

connector.jar Connector.jar JdbjBase_JAR.jar ApplicationLogic_JAR.<br />

jar<br />

database.jar database.jar JdbjInterfaces_JAR.jar Base_JAR.jar<br />

log4j.jar log4j.jar JdeNet_JAR.jar BizLogicContainerClie<br />

nt_JAR.jar<br />

xerces.jar xerces.jar Spec_JAR.jar BizLogicContainer_JA<br />

R.jar<br />

xalan.jar xalan.jar System_JAR.jar BusinessLogicService<br />

s_JAR.jar<br />

jdeinterop.ini jdeutil.jar Base_JAR.jar castor.jar<br />

jdeLog.properties jdbj.ini log4j.jar commons-httpclient-<br />

3.0.jar<br />

October 14, 2008 - - 8 - -


<strong>JD</strong>BC driver jdeinterop.ini xerces.jar commons-logging.jar<br />

jdelog.properties xalan.jar Connector.jar<br />

EventProcessor_<br />

EJB.jar<br />

<strong>JD</strong>BC driver BizLogicContainer_JAR<br />

.jar<br />

PMApi_JAR.jar EventProcessor_EJB.j<br />

ar<br />

BizLogicContainerClien<br />

t_JAR.jar<br />

ApplicationAPIs_JAR.ja<br />

r<br />

ApplicationLogic_JAR.j<br />

ar<br />

EventProcessor_JAR.j<br />

ar<br />

Generator_JAR.jar<br />

jdbj.ini<br />

JdbjBase_JAR.jar<br />

jdeinterop.ini JdbjInterfaces_JAR.jar<br />

jdbj.ini jdeinterop.ini<br />

jdelog.properties jdelog.properties<br />

castor.jar JdeNet_JAR.jar<br />

EventProcessor_JA<br />

R.jar<br />

EventProcessor_EJ<br />

B.jar<br />

October 14, 2008 - - 9 - -<br />

jmxremote.jar<br />

jmxremote_optiona<br />

l.jar<br />

<strong>JD</strong>BC driver jmxri.jar<br />

log4j.jar<br />

ManagementAgent_J<br />

AR.jar<br />

Metadata.jar<br />

MetadataInterface.jar<br />

PMApi_JAR.jar<br />

Spec_JAR.jar<br />

SystemInterfaces_JA<br />

R.jar


Extracting the sample files<br />

System_JAR.jar<br />

xalan.jar<br />

xerces.jar<br />

xmlparserv2.jar<br />

<strong>JD</strong>BC driver<br />

Replicas of the artifacts that you create when using the external service<br />

wizard are provided as sample files <strong>for</strong> your reference. Use these files to<br />

verify that the files you create with the external service wizard are correct.<br />

Go to the “\ Resource<strong>Adapter</strong>s\<strong>JD</strong>E_7.0\samples\referencefiles” folder<br />

and unzip Tutorial1.zip/Tutorial2.zip/Tutorial3.zip/Turorial4.zip into a<br />

directory of your choice (you may want to create a new directory).<br />

Tutorial1.zip<br />

File name Description<br />

BusinessFunctionSample/<br />

<strong>JD</strong>EOutboundInterface.import<br />

BusinessFunctionSample/<br />

<strong>JD</strong>EOutboundInterface.importex<br />

BusinessFunctionSample/<br />

GetEffectiveAddress.xsd<br />

BusinessFunctionSample/<br />

GetEffectiveAddressContainer.x<br />

sd<br />

BusinessFunctionSample/<br />

GetEffectiveAddressContainerB<br />

G.xsd<br />

October 14, 2008 - - 10 - -<br />

Contains the SCA<br />

import <strong>for</strong> the resource<br />

adapter.<br />

Contain the in<strong>for</strong>mation<br />

<strong>for</strong> iterative<br />

development<br />

Business Object<br />

definition <strong>for</strong> the<br />

GetEffectiveAddress<br />

business function.<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object<br />

container.<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object graph.


Tutorial2.zip<br />

BusinessFunctionSample/<br />

<strong>JD</strong>EOutboundInterface.wsdl<br />

BusinessFunctionSample /<br />

InvalidRequestFault.xsd<br />

BusinessFunctionSample /<br />

MatchesExceededLimitFault.xsd<br />

BusinessFunctionSample /<br />

MissingDataFault.xsd<br />

BusinessFunctionSample /<br />

PrimaryKeyPairType.xsd<br />

BusinessFunctionSample /<br />

RecordNotFoundFault.xsd<br />

BusinessFunctionSample /<br />

WBIFault.xsd<br />

Service interface to<br />

invoke the resource<br />

adapter.<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

File name Description<br />

XMLListSample/<br />

<strong>JD</strong>EOutboundInterface.import<br />

XMLListSample/<br />

<strong>JD</strong>EOutboundInterface.importex<br />

XMLListSample/<br />

<strong>JD</strong>EOutboundInterface.wsdl<br />

XMLListSample/<br />

F0116.xsd<br />

XMLListSample/<br />

F0116Container.xsd<br />

October 14, 2008 - - 11 - -<br />

Contains the SCA<br />

import <strong>for</strong> the resource<br />

adapter.<br />

Contain the in<strong>for</strong>mation<br />

<strong>for</strong> iterative<br />

development<br />

Service interface to<br />

invoke the resource<br />

adapter.<br />

Business Object<br />

definition <strong>for</strong> the F0116<br />

table<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object<br />

container


Tutorial3.zip<br />

XMLListSample/<br />

F0116ContainerBG.xsd<br />

XMLListSample/<br />

F0116Query1.xsd<br />

XMLListSample/<br />

F0116Query1BG.xsd<br />

XMLListSample/<br />

InvalidRequestFault.xsd<br />

XMLListSample/<br />

MatchesExceededLimitFault.xsd<br />

XMLListSample/<br />

MissingDataFault.xsd<br />

XMLListSample/<br />

PrimaryKeyPairType.xsd<br />

XMLListSample/<br />

RecordNotFoundFault.xsd<br />

XMLListSample/<br />

WBIFault.xsd<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object graph.<br />

Business Object<br />

definition <strong>for</strong> the query<br />

on F0116 table<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object graph.<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

File name Description<br />

BSFNMultipleExecutionSample/<br />

<strong>JD</strong>EOutboundInterface.import<br />

BSFNMultipleExecutionSample/J<br />

DEOutboundInterface.importex<br />

BSFNMultipleExecutionSample/<br />

GetEffectiveAddress.xsd<br />

October 14, 2008 - - 12 - -<br />

Contains the SCA<br />

import <strong>for</strong> the resource<br />

adapter.<br />

Contain the in<strong>for</strong>mation<br />

<strong>for</strong> iterative<br />

development<br />

Business Object<br />

definition <strong>for</strong> the<br />

GetEffectiveAddress<br />

business function.


BSFNMultipleExecutionSample/<br />

GetEffectiveAddressContainer.x<br />

sd<br />

BSFNMultipleExecutionSample/<br />

GetEffectiveAddressContainerB<br />

G.xsd<br />

Tutorial4.zip<br />

BSFNMultipleExecutionSample/<br />

<strong>JD</strong>EOutboundInterface.wsdl<br />

BSFNMultipleExecutionSample/<br />

InvalidRequestFault.xsd<br />

BSFNMultipleExecutionSample/<br />

MatchesExceededLimitFault.xsd<br />

BSFNMultipleExecutionSample/<br />

MissingDataFault.xsd<br />

BSFNMultipleExecutionSample/<br />

PrimaryKeyPairType.xsd<br />

BSFNMultipleExecutionSample/<br />

RecordNotFoundFault.xsd<br />

BSFNMultipleExecutionSample/<br />

WBIFault.xsd<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object<br />

container.<br />

Business Object<br />

definition <strong>for</strong> the<br />

business object graph.<br />

Service interface to<br />

invoke the resource<br />

adapter.<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

File name Description<br />

Real-timeEventSample/<br />

<strong>JD</strong>EInboundInterface.export<br />

Real-timeEventSample/<br />

<strong>JD</strong>EInboundInterface.exportex<br />

Real-timeEventSample/<br />

RteRtcoout.xsd<br />

October 14, 2008 - - 13 - -<br />

Contains the SCA export<br />

<strong>for</strong> the resource adapter.<br />

Contain the in<strong>for</strong>mation<br />

<strong>for</strong> iterative<br />

development.<br />

Business Object<br />

definition <strong>for</strong> the realtime<br />

event.


Real-timeEventSample/<br />

<strong>JD</strong>EInboundInterface.wsdl<br />

BusinessFunctionSample /<br />

InvalidRequestFault.xsd<br />

Real-timeEventSample /<br />

MatchesExceededLimitFault.xs<br />

d<br />

Real-timeEventSample/<br />

MissingDataFault.xsd<br />

Real-timeEventSample/<br />

PrimaryKeyPairType.xsd<br />

Real-timeEventSample/<br />

RecordNotFoundFault.xsd<br />

Real-timeEventSample/<br />

WBIFault.xsd<br />

October 14, 2008 - - 14 - -<br />

Service interface to<br />

invoke the resource<br />

adapter.<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema<br />

Fault Schema


October 14, 2008 - - 15 - -


Chapter 3. Tutorial 1: Retrieve data from <strong>JD</strong><br />

<strong>Edwards</strong> <strong>EnterpriseOne</strong><br />

AddressBook using a business<br />

function (outbound processing)<br />

Scenario<br />

This tutorial demonstrates how <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> 7.0 uses the GetEffectiveAddress business function to retrieve<br />

a record from the AddressBook.<br />

In this scenario, an SCA calling is used to retrieve the specific business<br />

address. The specific business address can be retrieved y using one <strong>JD</strong>E business<br />

function: The specific business address can be retrieved using one of the <strong>JD</strong>E<br />

business functions:<br />

GetEffectiveAddress<br />

October 14, 2008 - - 16 - -


You can call an SCA using the following stepwise procedure:<br />

1> Send a request to the <strong>JD</strong>E server to fetch the specific business address.<br />

In this case, you can fetch the business address whose ID is 33937.<br />

2> After getting the response from <strong>JD</strong>E server, <strong>JD</strong>E adapter will convert the<br />

response to an SDO, which can be understood easily by the SCA<br />

component. In the SCA component, customer can take use of the address<br />

to handle his business.<br />

This scenario illustrates the ability of <strong>WebSphere</strong> <strong>JD</strong>E adapter to interact with <strong>JD</strong>E<br />

server by invoking the <strong>JD</strong>E business function.<br />

Configuring the adapter <strong>for</strong> outbound processing<br />

Run the external service wizard to specify business objects, services, and<br />

configuration to be used in this tutorial.<br />

Creating the project<br />

1. Switch to the Business Integration Perspective in <strong>WebSphere</strong><br />

Integration Developer by choosing from the menu: Window -> Open<br />

Perspective -> Business Integration.<br />

2. <strong>Start</strong> the external service wizard by choosing: File-> New -> External<br />

Service.<br />

3. Expand <strong>Adapter</strong>s and select J D <strong>Edwards</strong>, and then click Next button.<br />

October 14, 2008 - - 17 - -


4. From the Select an <strong>Adapter</strong> window, you can either create a new<br />

project or select an existing project.<br />

• To create a new project, per<strong>for</strong>m the following steps:<br />

October 14, 2008 - - 18 - -


a. Select <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> (<strong>IBM</strong> : 7.0), as shown in the following figure.<br />

b. Click Next.<br />

c. In the <strong>Adapter</strong> Import window, either accept the default name <strong>for</strong><br />

the project (CWYED_<strong>JD</strong>E) or provide another name in the<br />

Connector project field, select the server from the Target<br />

runtime list (<strong>for</strong> example, <strong>WebSphere</strong> Process Server v7.0),<br />

then click Next.<br />

• To select an existing project, per<strong>for</strong>m the following steps:<br />

a. Expand <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> (<strong>IBM</strong> : 7.0).<br />

b. Select a project. For example, if you have an existing project<br />

named CWYED_<strong>JD</strong>E, you can expand <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong><br />

<strong>for</strong> <strong>JD</strong> <strong>Edwards</strong> (<strong>IBM</strong> : 7.0)CWYED_<strong>JD</strong>E, then select the<br />

connection in<strong>for</strong>mation you used to create the project.<br />

c. Click Next.<br />

Adding external software dependencies<br />

1. In the Version property, select the version of <strong>EnterpriseOne</strong> what will<br />

be used. Using the “Folder containing the required files” property,<br />

specify the folder from which to import the files required to connect to<br />

October 14, 2008 - - 19 - -


<strong>EnterpriseOne</strong>. Using the “<strong>JD</strong>BC Libraries” property, specify the<br />

required <strong>JD</strong>BC driver files.<br />

2. Click Next.<br />

October 14, 2008 - - 20 - -


Select direction of adapter processing<br />

Choose Outbound <strong>for</strong> invoking <strong>JD</strong>E business function. Then click Next.<br />

Setting connection properties <strong>for</strong> the external service wizard<br />

To connect to <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> the following in<strong>for</strong>mation is<br />

necessary: username, password, environment, and role. Provide this<br />

in<strong>for</strong>mation in the next wizard page. Then click Next.<br />

Selecting the business objects and services to be used with the<br />

adapter<br />

Follow these steps to select the GetEffectiveAddress business object:<br />

1. In the Find objects in the Enterprise System screen, click the Run Query<br />

button.<br />

October 14, 2008 - - 21 - -


2. In the “Discovered objects” list, select the Business Functions node and<br />

expand it. Use of the Filter icon may be helpful as the list can be long.<br />

October 14, 2008 - - 22 - -


3. Select the CFIN node and expand it.<br />

October 14, 2008 - - 23 - -


4. Select the B0100033 node and expand it.<br />

October 14, 2008 - - 24 - -


5. Select the GetEffectiveAddress node.<br />

October 14, 2008 - - 25 - -


6. Click the > Add button.<br />

October 14, 2008 - - 26 - -


7. Use the default business object name GetEffectiveAddress and click the OK<br />

button.<br />

8. Click the NEXT>.<br />

Generating business object definitions and related artifacts<br />

Follow these steps to generate the business object definitions.<br />

1. In the Specify Composite Properties screen, use the default values <strong>for</strong> the<br />

Namespace, Relative Path, and Max Records fields.<br />

October 14, 2008 - - 27 - -


2. Click the Add button of the Container Business Objects name.<br />

October 14, 2008 - - 28 - -


3. Fill the Container business object name field with<br />

GetEffectiveAddressContainer.<br />

October 14, 2008 - - 29 - -


4. Click the Add button of the Operations to add Retrieve Operation.<br />

5. Click the Add button of the Business Functions, select GetEffectiveAddress ,<br />

then click OK.<br />

October 14, 2008 - - 30 - -


6. Click the NEXT>.<br />

7. On Specify the Service Generation and Deployment Configuration screen<br />

select Using security properties from managed connection factory and enter<br />

October 14, 2008 - - 31 - -


the connection in<strong>for</strong>mation. Click next.<br />

October 14, 2008 - - 32 - -


8. In Specify the Service Location Properties screen, click the New button next<br />

to the Module field to create a new module.<br />

9. The New Business Integration Project screen is displayed, select Module,<br />

then click Next.<br />

October 14, 2008 - - 33 - -


10. In the New Module screen, type BSFNSample in the Module Name field, and<br />

then click Finish.<br />

October 14, 2008 - - 34 - -


11. Click Finish.<br />

12. Verify the results.<br />

October 14, 2008 - - 35 - -


Deploying the module to the test environment<br />

The result of running the external service wizard is an SCA module that<br />

contains an EIS import or export. Install this SCA module in <strong>WebSphere</strong><br />

Integration Developer integration test client.<br />

1. Add the module you created earlier to the server using the server panel in<br />

<strong>WebSphere</strong> Integration Developer. Right-click on the server, and then<br />

select Add and remove projects.<br />

October 14, 2008 - - 36 - -


2. Add the SCA module to the server.<br />

3. Click Finish.<br />

Testing the assembled adapter application<br />

Test the assembled adapter application using the <strong>WebSphere</strong> Integration<br />

Developer integration test client.<br />

1. Select the service you want, and click Test > Test Module.<br />

2. Populate values <strong>for</strong> input business objects.<br />

Populate the Mnaddressnumber attribute of the GetEffectiveAddress<br />

October 14, 2008 - - 37 - -


3. To execute the service, click on the continue button .<br />

4. Check the output of the service, and check the data in the EIS to ensure it<br />

matches expected values.<br />

Clearing the sample content<br />

Return the data to its original state.<br />

Nothing is required to clean up after this tutorial.<br />

October 14, 2008 - - 38 - -


October 14, 2008 - - 39 - -


Chapter 4. Tutorial 2: Retrieving data from <strong>JD</strong><br />

<strong>Edwards</strong> <strong>EnterpriseOne</strong> table<br />

using XML List query (outbound<br />

processing)<br />

Scenario<br />

This tutorial demonstrates how <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> 7.0 uses an XML List query to retrieve a record from the<br />

AddressBook database.<br />

In this scenario, an SCA calling is used to retrieve the specific business<br />

address. The business addresses generally are stored in the table F0116 of the<br />

database of <strong>JD</strong>E server. <strong>JD</strong>E adapter can directly fetch data from <strong>JD</strong>E table by using<br />

XMLList function. In this case, the table which will be accessed is:<br />

F0116<br />

You can call an SCA using the following stepwise procedure:<br />

October 14, 2008 - - 40 - -


1> Send the request to <strong>JD</strong>E server <strong>for</strong> fetching the specific business address.<br />

In this case, we will fetch the business address whose ID is 33937.<br />

2> After getting the response from <strong>JD</strong>E server, <strong>JD</strong>E adapter will convert the<br />

response to a SDO which can be understood easily by the SCA<br />

component. In the SCA component, customer can take use of the<br />

address.<br />

This scenario illustrates the ability of <strong>WebSphere</strong> <strong>JD</strong>E adapter to interact with <strong>JD</strong>E<br />

server by invoking the <strong>JD</strong>E XMLList.<br />

Configuring the adapter <strong>for</strong> outbound processing<br />

Run the external service wizard to specify business objects, services, and<br />

configuration to be used in this tutorial.<br />

Creating the project<br />

1. Switch to the Business Integration Perspective in <strong>WebSphere</strong><br />

Integration Developer by choosing from the menu: Window -> Open<br />

Perspective -> Business Integration.<br />

2. <strong>Start</strong> the <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> EMD by choosing: File-> New -><br />

External Service.<br />

October 14, 2008 - - 41 - -


3. Expand <strong>Adapter</strong>s and select J D <strong>Edwards</strong> and then click Next button.<br />

October 14, 2008 - - 42 - -


4. Expand the “<strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong><br />

(<strong>IBM</strong>: 7.0). Select the CWYED_<strong>JD</strong>E node and click Next.<br />

5. In the Version property, select the version of <strong>EnterpriseOne</strong> what will<br />

be used. Using the “Folder containing the required files” property,<br />

specify the folder from which to import the files required to connect to<br />

<strong>EnterpriseOne</strong>. Using the “<strong>JD</strong>BC Libraries” property, specify the<br />

October 14, 2008 - - 43 - -


equired <strong>JD</strong>BC driver files.<br />

6. Click Next<br />

Select direction of adapter processing<br />

Choose Outbound <strong>for</strong> invoking <strong>JD</strong>E business function. Then click Next.<br />

October 14, 2008 - - 44 - -


Setting properties <strong>for</strong> the external service wizard<br />

To connect to <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> the following in<strong>for</strong>mation is<br />

necessary: username, password, environment and role. Provide this<br />

in<strong>for</strong>mation in the next wizard page. Then click Next.<br />

Selecting the business objects and services to be used with the<br />

adapter<br />

Follow these steps to select the F0116 data using <strong>JD</strong>E XML List query:<br />

1. Edit Query Properties by adding table name F0116. The following steps<br />

describe how to do this:<br />

a. In the Find Objects in the Enterprise System screen, click Edit Query.<br />

October 14, 2008 - - 45 - -


. In Specify the Query Properties screen, click the Add button next to<br />

the Tables list.<br />

October 14, 2008 - - 46 - -


c. In the Add Value screen that appears, type F0116, then click OK.<br />

F0116 appears in the Tables list.<br />

d. Click OK to close the Specify Query Properties screen.<br />

2. In the Find Objects in the Enterprise System screen, click the Run Query<br />

button.<br />

October 14, 2008 - - 47 - -


3. Expand XML List node, select F0116 node and click > Add button to select<br />

object <strong>for</strong> importing into the service description.<br />

October 14, 2008 - - 48 - -


4. Configure XML List query business object <strong>for</strong> import into the service<br />

description.<br />

a. Select OWTABLE from the Table type list.<br />

October 14, 2008 - - 49 - -


. Select the check box Add Condition.<br />

October 14, 2008 - - 50 - -


c. Set Attribute to Addressnumber<br />

d. Press OK.<br />

The configured query business object should be imported.<br />

October 14, 2008 - - 51 - -


Click NEXT>.<br />

Generating business object definitions and related artifacts<br />

Follow these steps to generate the business object definitions.<br />

1. In the Specify Composite Properties screen, use the default values.<br />

October 14, 2008 - - 52 - -


2. Click the NEXT.<br />

3. On Specify the Service Generation and Deployment Configuration screen,<br />

select Using security properties from managed connection factory and enter<br />

October 14, 2008 - - 53 - -


the connection in<strong>for</strong>mation. Click Next.<br />

October 14, 2008 - - 54 - -


4. In Specify the Service Location Properties screen, click the New button next<br />

to the Module field to create a new module.<br />

5. The New Business Integration Project screen appears, select Module, then<br />

click Next<br />

October 14, 2008 - - 55 - -


6. In the New Module screen, type XMLListSample in the Module Name field,<br />

then click Finish.<br />

October 14, 2008 - - 56 - -


7. Click Finish.<br />

8. Verify the results.<br />

October 14, 2008 - - 57 - -


Deploying the module to the test environment<br />

October 14, 2008 - - 58 - -


After running the external service wizard, you will have an SCA module that contains<br />

an EIS import or export. You must install this SCA module in the <strong>WebSphere</strong><br />

Integration Developer integration test client.<br />

1. Add the SCA module to the server using the server panel in <strong>WebSphere</strong><br />

Integration Developer. Right-click on the server, and select Add and remove<br />

projects.<br />

2. Add the SCA module to the server.<br />

3. Click Finish.<br />

Testing the assembled adapter application<br />

October 14, 2008 - - 59 - -


Test the assembled adapter application using the <strong>WebSphere</strong> Integration<br />

Developer integration test client.<br />

1. Select the service you want, and click Test > Test Module.<br />

2. Populate values <strong>for</strong> input business objects.<br />

3. Populate the Addressnumber attribute of the F0116Query1 business<br />

object, with the value 33937.<br />

4. To execute the service, click on the continue button .<br />

5. Check the output of the service, and also check the data in the EIS to<br />

ensure that it matches with the expected values.<br />

Clearing the sample content<br />

Return the data to its original state.<br />

Nothing is required to clean up after this tutorial.<br />

October 14, 2008 - - 60 - -


Chapter 5. Tutorial 3: Invoking <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> AddressBook<br />

using a business function<br />

(outbound processing) in multiple<br />

times<br />

Scenario<br />

This tutorial demonstrates how <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> 7.0 uses the GetEffectiveAddress business function to retrieve<br />

multiple records from the AddressBook.<br />

In this scenario, an SCA calling is used to retrieve multiple specific business<br />

addresses. The specific business addresses can be gotten by using one <strong>JD</strong>E business<br />

function:<br />

GetEffectiveAddress<br />

October 14, 2008 - - 61 - -


You can call an SCA using the following stepwise procedure:<br />

1> Send the request to <strong>JD</strong>E server <strong>for</strong> fetching the specific business<br />

addresses. In this case, we will fetch the business addresses whose IDs<br />

are 1 and 9.<br />

2> After getting the response from <strong>JD</strong>E server, <strong>JD</strong>E adapter will convert the<br />

response to a SDO which can be understood easily by the SCA<br />

component. And this SDO will contain two business addresses. In the SCA<br />

component, customer can take use of the addresses.<br />

This scenario illustrates the ability of <strong>WebSphere</strong> <strong>JD</strong>E adapter to interact with <strong>JD</strong>E<br />

server by invoking the <strong>JD</strong>E business function. And the business address can be<br />

invoked multiply.<br />

Configuring the adapter <strong>for</strong> outbound processing<br />

Run the external service wizard to specify business objects, services, and<br />

configuration to be used in this tutorial.<br />

Creating the project<br />

1. Switch to the Business Integration Perspective in <strong>WebSphere</strong><br />

Integration Developer by choosing from the menu: Window -> Open<br />

Perspective -> Business Integration.<br />

2. <strong>Start</strong> the external service wizard by choosing: File-> New -><br />

External Service.<br />

3. Expand <strong>Adapter</strong>s and select J D <strong>Edwards</strong> and then click Next button.<br />

October 14, 2008 - - 62 - -


4. From the Select an <strong>Adapter</strong> window, you can either create a new<br />

project or select an existing project.<br />

• To create a new project, per<strong>for</strong>m the following steps:<br />

October 14, 2008 - - 63 - -


a. Select <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> (<strong>IBM</strong> : 7.0), as shown in the following figure.<br />

b. Click Next.<br />

c. In the <strong>Adapter</strong> Import window, either accept the default name <strong>for</strong><br />

the project (CWYED_<strong>JD</strong>E) or provide another name in the<br />

Connector project field, select the server from the Target<br />

runtime list (<strong>for</strong> example, <strong>WebSphere</strong> Process Server 7.0),<br />

then click Next.<br />

• To select an existing project, per<strong>for</strong>m the following steps:<br />

a. Expand <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> (<strong>IBM</strong> : 7.0).<br />

b. Select a project. For example, if you have an existing project<br />

named CWYED_<strong>JD</strong>E, you can expand <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong><br />

<strong>for</strong> <strong>JD</strong> <strong>Edwards</strong> (<strong>IBM</strong> : 7.0)CWYED_<strong>JD</strong>E, then select the<br />

connection in<strong>for</strong>mation you used to create the project.<br />

c. Click Next.<br />

Adding external software dependencies<br />

1. In the Version property, select the version of <strong>EnterpriseOne</strong> what will be<br />

used. Using the “Folder containing the required files” property, specify<br />

the folder from which to import the files required to connect to<br />

October 14, 2008 - - 64 - -


<strong>EnterpriseOne</strong>. Using the “<strong>JD</strong>BC Libraries” property, specify the required<br />

<strong>JD</strong>BC driver files.<br />

2. Click Next.<br />

Select direction of adapter processing<br />

Choose Outbound <strong>for</strong> invoking <strong>JD</strong>E business function. Then click Next.<br />

October 14, 2008 - - 65 - -


Setting connection properties <strong>for</strong> the external service wizard<br />

To connect to <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> the following in<strong>for</strong>mation is<br />

necessary: username, password, environment, and role. Provide this<br />

in<strong>for</strong>mation in the next wizard page. Then click Next.<br />

Selecting the business objects and services to be used with the adapter<br />

Follow these steps to select the GetEffectiveAddress business object:<br />

1. In the Find Objects in the Enterprise System screen, click the Run Query<br />

button.<br />

October 14, 2008 - - 66 - -


2. In the “Discovered objects” list, select the Business Functions node and<br />

expand it. Use of the Filter icon may be helpful as the list can be long.<br />

October 14, 2008 - - 67 - -


3. Select the CFIN node and expand it.<br />

October 14, 2008 - - 68 - -


4. Select the B0100033 node and expand it.<br />

October 14, 2008 - - 69 - -


5. Select the GetEffectiveAddress node.<br />

October 14, 2008 - - 70 - -


6. Click the > Add button.<br />

October 14, 2008 - - 71 - -


7. Use the default business object name GetEffectiveAddress and click the OK<br />

button.<br />

8. Click the NEXT>.<br />

Generating business object definitions and related artifacts<br />

Follow these steps to generate the business object definitions.<br />

1. In the Specify Composite Properties screen, use the default values <strong>for</strong> the<br />

Namespace, Relative Path, and Max Records fields.<br />

October 14, 2008 - - 72 - -


2. Click the Add button of the Container Business Objects name.<br />

October 14, 2008 - - 73 - -


3. Fill the Container business object name field with<br />

GetEffectiveAddressContainer.<br />

October 14, 2008 - - 74 - -


4. Click the Add button of the Operations to add Retrieve Operation.<br />

5. Click the Add button of the Business Functions, select GetEffectiveAddress ,<br />

then click OK.<br />

October 14, 2008 - - 75 - -


6. Click Add button of the Configuration Table to choose GetEffectiveAddress<br />

and select the checkbox Array<br />

October 14, 2008 - - 76 - -


October 14, 2008 - - 77 - -


7. Click the NEXT>.<br />

8. On Specify the Service Generation and Deployment Configuration screen<br />

select Using security properties from the managed connection factory and<br />

October 14, 2008 - - 78 - -


enter the connection in<strong>for</strong>mation. Click Next.<br />

October 14, 2008 - - 79 - -


9. In Specify the Service Location Properties screen, click the New button next<br />

to the Module field to create a new module.<br />

10. The New Business Integration Project screen appears, select Module, then<br />

click Next.<br />

October 14, 2008 - - 80 - -


11. In the New Module screen, type BSFNMultipleExecutionSample in the<br />

Module Name field, then click Finish.<br />

October 14, 2008 - - 81 - -


12. Click Finish.<br />

13. Verify the results.<br />

October 14, 2008 - - 82 - -


Deploying the module to the test environment<br />

The result of running the external service wizard is an SCA module that<br />

contains an EIS import or export. Install this SCA module in <strong>WebSphere</strong><br />

Integration Developer integration test client.<br />

1. Add the module you created earlier to the server using the<br />

server panel in <strong>WebSphere</strong> Integration Developer. Right-click<br />

on the server, and then select Add and remove projects.<br />

October 14, 2008 - - 83 - -


2. Add the SCA module to the server.<br />

3. Click Finish.<br />

Testing the assembled adapter application<br />

Test the assembled adapter application using the <strong>WebSphere</strong> Integration<br />

Developer integration test client.<br />

1. Select the service you want, and click Test > Test Module.<br />

2. Right-click GetEffectiveAddress to add 2 elements.<br />

Populate the Mnaddressnumber attribute of the GetEffectiveAddress<br />

business object instance1, with the value 1.<br />

Populate the Mnaddressnumber attribute of the GetEffectiveAddress<br />

October 14, 2008 - - 84 - -


usiness object instance2, with the value 9.<br />

3. To execute the service, click on the continue button<br />

4. Check the output of the service, and also check the data in the EIS to<br />

ensure that it matches with the expected values.<br />

Clearing the sample content<br />

Return the data to its original state.<br />

Nothing is required to clean up after this tutorial.<br />

October 14, 2008 - - 85 - -


Chapter 6. Tutorial 4: Polling <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> Real-time event<br />

from <strong>JD</strong> <strong>Edwards</strong> transaction<br />

server (inbound processing)<br />

Scenario<br />

This tutorial demonstrates how <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> 7.0 gets real-time event from <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong><br />

transaction server.<br />

In this scenario, the in<strong>for</strong>mation of a company is changed in <strong>JD</strong>E server. The<br />

<strong>JD</strong>E server will generate the corresponding <strong>JD</strong>E real-time event. This event is then<br />

polled by <strong>JD</strong>E adapter and transferred to one SCA component. The following realtime<br />

event will be generated and transferred to SCA component:<br />

RTCOOUT<br />

This case only has three steps:<br />

October 14, 2008 - - 86 - -


1> Customer changes the in<strong>for</strong>mation of one company in <strong>JD</strong>E server. Then,<br />

<strong>JD</strong>E server will generate the corresponding real-time event.<br />

2> <strong>JD</strong>E adapter will poll the event from <strong>JD</strong>E server in period. Then, it will find<br />

the real-time event and fetch the event from <strong>JD</strong>E server.<br />

3> At last, <strong>JD</strong>E adapter will convert the real-time event to a SDO and send it<br />

to the destination SCA component.<br />

This scenario illustrates the ability of <strong>WebSphere</strong> <strong>JD</strong>E adapter to interact with <strong>JD</strong>E<br />

server by polling real-time event from <strong>JD</strong>E server.<br />

Configuring the adapter <strong>for</strong> inbound processing<br />

Run the external service wizard to specify business objects, services, and<br />

configuration to be used in this tutorial.<br />

Creating the project<br />

1. Switch to the Business Integration Perspective in <strong>WebSphere</strong> Integration<br />

Developer by choosing from the menu: Window -> Open Perspective -<br />

> Business Integration.<br />

2. <strong>Start</strong> the external service wizard by choosing: File-> New -> External<br />

Service.<br />

3. Expand <strong>Adapter</strong>s and select J D <strong>Edwards</strong>, and then click Next button.<br />

October 14, 2008 - - 87 - -


4. From the Select an <strong>Adapter</strong> window, you can either create a new project<br />

or select an existing project.<br />

• To create a new project, per<strong>for</strong>m the following steps:<br />

October 14, 2008 - - 88 - -


a. Select <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> (<strong>IBM</strong> : 7.0), as shown in the following figure.<br />

b. Click Next.<br />

c. In the <strong>Adapter</strong> Import window, either accept the default name <strong>for</strong><br />

the project (CWYED_<strong>JD</strong>E) or provide another name in the<br />

Connector project field, select the server from the Target<br />

runtime list (<strong>for</strong> example, <strong>WebSphere</strong> Process Server v7.0),<br />

then click Next.<br />

• To select an existing project, per<strong>for</strong>m the following steps:<br />

a. Expand <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong> <strong>for</strong> <strong>JD</strong> <strong>Edwards</strong><br />

<strong>EnterpriseOne</strong> (<strong>IBM</strong> : 7.0).<br />

b. Select a project. For example, if you have an existing project<br />

named CWYED_<strong>JD</strong>E, you can expand <strong>IBM</strong> <strong>WebSphere</strong> <strong>Adapter</strong><br />

<strong>for</strong> <strong>JD</strong> <strong>Edwards</strong> (<strong>IBM</strong> : 7.0)CWYED_<strong>JD</strong>E, then select the<br />

connection in<strong>for</strong>mation you used to create the project.<br />

c. Click Next.<br />

Adding external software dependencies<br />

1. In the Version property, select the version of <strong>EnterpriseOne</strong> what will be<br />

used. Using the “Folder containing the required files” property, specify the<br />

October 14, 2008 - - 89 - -


folder from which to import the files required to connect to <strong>EnterpriseOne</strong>.<br />

Using the “<strong>JD</strong>BC Libraries” property, specify the required <strong>JD</strong>BC driver files.<br />

2. Click Next.<br />

Select direction of adapter processing<br />

Choose Inbound <strong>for</strong> invoking <strong>JD</strong>E business function. Then click Next..<br />

October 14, 2008 - - 90 - -


Setting connection properties <strong>for</strong> the external service wizard<br />

To connect to <strong>JD</strong> <strong>Edwards</strong> <strong>EnterpriseOne</strong> the following in<strong>for</strong>mation is<br />

necessary: username, password, environment and role. Provide this<br />

in<strong>for</strong>mation in the next wizard page. Then click Next.<br />

Selecting the business objects and services to be used with the adapter<br />

Follow these steps to select the existing real-time event RTCOOUT<br />

business object:<br />

1. In the Find objects in the Enterprise System screen, click the Run Query<br />

button.<br />

October 14, 2008 - - 91 - -


2. In the “Discovered objects” list, select the Real-Time events node and<br />

expand it. Use of the Filter icon may be helpful as the list can be long.<br />

October 14, 2008 - - 92 - -


3. Select the RTCOOUT node.<br />

October 14, 2008 - - 93 - -


4. Click the > Add button.<br />

October 14, 2008 - - 94 - -


5. Select “Configuration with operation field” and choose “cActionCode” as<br />

Operation Field.<br />

6. Click the OK button.<br />

October 14, 2008 - - 95 - -


7. Click NEXT>.<br />

Generating business object definitions and related artifacts<br />

Follow these steps to generate the business object definitions.<br />

1. In the Specify Composite Properties screen, use the default values <strong>for</strong> the<br />

Namespace and Relative Path fields.<br />

October 14, 2008 - - 96 - -


2. Click NEXT>.<br />

3. On Specify the Service Generation and Deployment Configuration screen<br />

select Using security properties from the activation spec and enter the<br />

connection in<strong>for</strong>mation.<br />

October 14, 2008 - - 97 - -


October 14, 2008 - - 98 - -


4. Input Event delivery configuration in<strong>for</strong>mation <strong>for</strong> event assured delivery.<br />

October 14, 2008 - - 99 - -


October 14, 2008 - - 100 - -


5. Click Next.<br />

6. In Specify the Service Location Properties screen, click the New button next<br />

to the Module field to create a new module.<br />

7. The New Business Integration Project screen appears, select Module, then<br />

click Next<br />

October 14, 2008 - - 101 - -


8. In the New Module screen, type Real-timeEventSample in the Module Name<br />

field, then click Finish.<br />

October 14, 2008 - - 102 - -


9. Click Finish.<br />

10. Verify the results.<br />

October 14, 2008 - - 103 - -


11. Add a new Java component, which is used to receive the real-time event from<br />

<strong>JD</strong>E <strong>Adapter</strong>.<br />

October 14, 2008 - - 104 - -


12. Input below code <strong>for</strong> printing out the content the real-time event.<br />

Configure the data source EP_DataSource with JNDI<br />

EP_DataSource_JNDI in<br />

Be<strong>for</strong>e deploying the module to test environment, user needs to configure the data<br />

source, which are <strong>for</strong> AssuredEventDelivery.<br />

1. Access WPS admin page and go to Resources-><strong>JD</strong>BC->Data sources<br />

October 14, 2008 - - 105 - -


October 14, 2008 - - 106 - -


2. Create a new data source EP_DataSource with the JNDI EP_DataSource_JNDI<br />

Deploying the module to the test environment<br />

The result of running the external service wizard is an SCA module that<br />

contains an EIS import or export. Install this SCA module in <strong>WebSphere</strong><br />

Integration Developer integration test client.<br />

1. Add the module you created earlier to the server using the<br />

server panel in <strong>WebSphere</strong> Integration Developer. Right-click<br />

on the server, and then select Add and remove projects.<br />

October 14, 2008 - - 107 - -


Demonstrate this<br />

process.<br />

2. Add the SCA module to the server.<br />

3. Click Finish.<br />

Testing the assembled adapter application<br />

Test the assembled adapter application using the <strong>WebSphere</strong> Integration<br />

Developer integration test client.<br />

1. Select the module Real-timeEventSample.<br />

October 14, 2008 - - 108 - -


2. Right-click Test > Attach.<br />

3. To execute the service, click on the continue button .<br />

4. Update one company record by using P0010 in <strong>JD</strong> <strong>Edwards</strong> web client.<br />

October 14, 2008 - - 109 - -


5. Check the output of the service.<br />

Clearing the sample content<br />

Return the data to its original state.<br />

Nothing is required to clean up after this tutorial.<br />

October 14, 2008 - - 110 - -


Chapter 7. Troubleshooting<br />

1. Symptom: A SpecFailureException exception is thrown from EMD or at runtime:<br />

Caused by: com.jdedwards.system.connector.dynamic.spec.SpecFailureException: Cannot connect<br />

to Oneworld Spec Source:Data Source not found in Oneworld Database Data source <strong>for</strong> F9860,<br />

TBLE not found. ([DATABASE_CONNECT_FAILED] Database Connection failed <strong>for</strong> DataSource<br />

SY812.)<br />

at<br />

com.jdedwards.system.connector.dynamic.spec.source.OneworldBSFNSpecSource.(Unknown<br />

Source)<br />

at com.ibm.j2ca.jde.outbound.bsfn.<strong>JD</strong>EGetSpecSource.run(<strong>JD</strong>EGetSpecSource.java:36)<br />

at java.security.AccessController.doPrivileged(AccessController.java:241)<br />

... 9 more<br />

Cause: This is usually caused by configuration issues<br />

Resolution:<br />

1. Verify that the appropriate <strong>JD</strong>BC driver is in the class path<br />

2. Verify the <strong>JD</strong>E configuration files (jdbj.ini, jdeinterop.ini,<br />

jdeLog.properties, tnsnames.ora) are configured correctly <strong>for</strong> the <strong>JD</strong>E<br />

server being used and that they are in the class path.<br />

3. Verify that the <strong>JD</strong>E server to which you are trying to connect and all<br />

services are started correctly.<br />

4. Verify that the required <strong>JD</strong>E files have been imported and added to the<br />

class path.<br />

2. Symptom: A ServerFailureException exception is thrown from EMD or at<br />

runtime:<br />

Caused by: com.jdedwards.system.connector.dynamic.ServerFailureException: Cannot connect to<br />

any OneWorld Security Server.FAILURE: null<br />

at com.jdedwards.system.connector.dynamic.Connector.loginBase(Unknown Source)<br />

at com.jdedwards.system.connector.dynamic.Connector.login(Unknown Source)<br />

at com.ibm.j2ca.jde.outbound.<strong>JD</strong>EConnectionProperties.run(<strong>JD</strong>EConnectionProperties.java:63)<br />

at java.security.AccessController.doPrivileged(AccessController.java:242)<br />

October 14, 2008 - - 111 - -


... 23 more<br />

doPrivileged(AccessController.java:241)<br />

... 9 more<br />

Cause: This is usually caused by configuration issues<br />

Resolution:<br />

1. Verify that the appropriate <strong>JD</strong>BC driver is in the class path<br />

2. Verify the <strong>JD</strong>E configuration files (jdbj.ini, jdeinterop.ini,<br />

jdeLog.properties, tnsnames.ora) are configured correctly <strong>for</strong> the <strong>JD</strong>E<br />

server being used and that they are in the class path.<br />

3. Verify that the <strong>JD</strong>E server to which you are trying to connect and all<br />

services are started correctly.<br />

4. Verify that the required <strong>JD</strong>E files have been imported and added to the<br />

class path.<br />

3. Symptom: Error received attempting to connect to <strong>JD</strong>E with EMD<br />

Resolution:<br />

Verify that the connection parameters have been entered correctly<br />

4. Symptom: There are no tables listed in the tree view under XML Lists<br />

Resolution:<br />

Verify that table names have been added to the ‘Tables <strong>for</strong> XML List Table<br />

Names’ property in the Query Filter Properties window<br />

5. Symptom: On Business Object Properties window, error indicating invalid<br />

characters in BO Name<br />

Resolution:<br />

Follow instructions in message and remove invalid characters from BO name<br />

6. Symptom: On Business Object Properties window, error indicating unable to<br />

retrieve table column in<strong>for</strong>mation<br />

Resolution:<br />

Verify correct table name, table type and table conversion version have been<br />

entered<br />

October 14, 2008 - - 112 - -


October 14, 2008 - - 113 - -


Notices<br />

This in<strong>for</strong>mation was developed <strong>for</strong> products and services offered in the<br />

U.S.A.<br />

<strong>IBM</strong> may not offer the products, services, or features discussed in this<br />

document in other countries. Consult your local <strong>IBM</strong> representative <strong>for</strong><br />

in<strong>for</strong>mation on the products and services currently available in your area. Any<br />

reference to an <strong>IBM</strong> product, program, or service is not intended to state or<br />

imply that only that <strong>IBM</strong> product, program, or service may be used. Any<br />

functionally equivalent product, program, or service that does not infringe any<br />

<strong>IBM</strong> intellectual property right may be used instead. However, it is the user's<br />

responsibility to evaluate and verify the operation of any non-<strong>IBM</strong> product,<br />

program, or service.<br />

<strong>IBM</strong> may have patents or pending patent applications covering subject matter<br />

described in this document. The furnishing of this document does not grant<br />

you any license to these patents. You can send license inquiries, in writing,<br />

to:<br />

<strong>IBM</strong> Director of Licensing<br />

<strong>IBM</strong> Corporation<br />

North Castle Drive<br />

Armonk, NY 10504-1785<br />

U.S.A.<br />

For license inquiries regarding double-byte (DBCS) in<strong>for</strong>mation, contact the<br />

<strong>IBM</strong> Intellectual Property Department in your country or send inquiries, in<br />

writing, to:<br />

<strong>IBM</strong> World Trade Asia Corporation Licensing<br />

2-31 Roppongi 3-chome, Minato-ku<br />

Tokyo 106-0032, Japan<br />

The following paragraph does not apply to the United Kingdom or any<br />

other country where such provisions are inconsistent with local law:<br />

INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS<br />

PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS<br />

OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES<br />

OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR<br />

PURPOSE. Some states do not allow disclaimer of express or<br />

October 14, 2008 - - 114 - -


implied warranties in certain transactions, there<strong>for</strong>e, this statement may not<br />

apply to you.<br />

This in<strong>for</strong>mation could include technical inaccuracies or typographical errors.<br />

Changes are periodically made to the in<strong>for</strong>mation herein; these changes will<br />

be incorporated in new editions of the publication.<br />

<strong>IBM</strong> may make improvements and/or changes in the product(s) and/or the<br />

program(s) described in this publication at any time without notice.<br />

Any references in this in<strong>for</strong>mation to non-<strong>IBM</strong> Web sites are provided <strong>for</strong><br />

convenience only and do not in any manner serve as an endorsement of those<br />

Web sites.<br />

The materials at those Web sites are not part of the materials <strong>for</strong> this <strong>IBM</strong><br />

product and use of those Web sites is at your own risk.<br />

<strong>IBM</strong> may use or distribute any of the in<strong>for</strong>mation you supply in any way it<br />

believes appropriate without incurring any obligation to you.<br />

Licensees of this program who wish to have in<strong>for</strong>mation about it <strong>for</strong> the<br />

purpose of enabling: (i) the exchange of in<strong>for</strong>mation between independently<br />

created programs and other programs (including this one) and (ii) the mutual<br />

use of the in<strong>for</strong>mation which has been exchanged, should contact:<br />

<strong>IBM</strong> Corporation Department<br />

2Z4A/SOM1 294 Route 100<br />

Somers, NY 10589-0100 U.S.A.<br />

In<strong>for</strong>mation concerning non-<strong>IBM</strong> products was obtained from the suppliers of<br />

those products, their published announcements or other publicly available<br />

sources. <strong>IBM</strong> has not tested those products and cannot confirm the accuracy<br />

of per<strong>for</strong>mance, compatibility or any other claims related to non-<strong>IBM</strong><br />

products. Questions on the capabilities of non-<strong>IBM</strong> products should be<br />

addressed to the suppliers of those products.<br />

This in<strong>for</strong>mation contains examples of data and reports used in daily business<br />

operations. To illustrate them as completely as possible, the examples include<br />

the names of individuals, companies, brands, and products. All of these<br />

names are fictitious and any similarity to the names and addresses used by<br />

an actual business enterprise is entirely coincidental.<br />

COPYRIGHT LICENSE:<br />

October 14, 2008 - - 115 - -


This in<strong>for</strong>mation contains sample application programs in source language,<br />

which illustrate programming techniques on various operating plat<strong>for</strong>ms. You<br />

may copy, modify, and distribute these sample programs in any <strong>for</strong>m without<br />

payment to <strong>IBM</strong>, <strong>for</strong> the purposes of developing, using, marketing or<br />

distributing application programs con<strong>for</strong>ming to the application programming<br />

interface <strong>for</strong> the operating plat<strong>for</strong>m <strong>for</strong> which the sample programs are<br />

written. These examples have not been thoroughly tested under all<br />

conditions. <strong>IBM</strong>, there<strong>for</strong>e, cannot guarantee or imply reliability,<br />

serviceability, or function of these programs.<br />

If you are viewing this in<strong>for</strong>mation softcopy, the photographs and color<br />

illustrations may not appear.<br />

Programming interface in<strong>for</strong>mation<br />

Programming interface in<strong>for</strong>mation, if provided, is intended to help you create<br />

application software using this program.<br />

General-use programming interfaces allow you to write application software<br />

that obtain the services of this program's tools.<br />

However, this in<strong>for</strong>mation may also contain diagnosis, modification, and<br />

tuning in<strong>for</strong>mation. Diagnosis, modification and tuning in<strong>for</strong>mation is provided<br />

to help you debug your application software.<br />

Warning:<br />

Do not use this diagnosis, modification, and tuning in<strong>for</strong>mation as a<br />

programming interface because it is subject to change.<br />

Trademarks<br />

<strong>IBM</strong>, the <strong>IBM</strong> logo, and ibm.com are trademarks or registered trademarks of<br />

International Business Machines Corporation in the United States, other<br />

countries, or both. These and other <strong>IBM</strong> trademarked terms are marked on<br />

their first occurrence in this in<strong>for</strong>mation with the appropriate symbol (® or<br />

), indicating US registered or common law trademarks owned by <strong>IBM</strong> at the<br />

time this in<strong>for</strong>mation was published. Such trademarks may also be registered<br />

or common law trademarks in other countries. A complete and current list of<br />

<strong>IBM</strong> trademarks is available on the Web at<br />

http://www.ibm.com/legal/copytrade.shtml<br />

Linux is a registered trademark of Linus Torvalds in the United States, other<br />

countries, or both.<br />

Microsoft and Windows are trademarks of Microsoft Corporation in the United<br />

States, other countries, or both.<br />

October 14, 2008 - - 116 - -


Java and all Java based trademarks and logos are trademarks of Sun<br />

Microsystems, Inc. in the United States, other countries, or both.<br />

UNIX is a registered trademark of The Open Group in the United States and<br />

other countries.<br />

Other company, product, or service names may be trademarks or service<br />

marks of others.<br />

This product includes software developed by the Eclipse Project<br />

(http://www.eclipse.org).<br />

October 14, 2008 - - 117 - -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!