Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 9 EAR to SA Example : Setting Up the Example

Setting Up the Example
 
To set up the example, complete the following tasks:
 
Task A Set up Lotus Notes Application
The source.nsf database is used in this example.
1.
2.
Open the source.nsf file from ADLN_HOME/examples/LotusDatabase, and upload them to Domino Server.
3.
Select the source.nsf file that is at the Domino Server. Enter value for the following field in the Setup Document:
Queue Db Server: IP address of the machine that hosts the database file.
Host Name: IP address of the machine on which the adapter is running.
4.
Task B Create Agents
1.
In Lotus Notes, select Create > Agents.
2.
3.
In the action panel, select Imported Java from the Run list box.
Click Import Class Files to import the class file HTTPStandardPublisherAgent from ADLN_HOME/lib/agents/HTTP.
4.
Click OK and save the configuration.
Task C Create EAR File in TIBCO Designer
1.
2.
Start TIBCO Designer and select Open existing project.
3.
In the Multi-File Project tab, select PubEARDemo-Designer for the Project Directory field. Click OK.
4.
Change the configuration as necessary. For example, provide values for the global variables adln.connection.dominoserver, adln.connection.username, and adln.connection.password.
5.
Select the adapter instance named LotusNotesAdapterConfiguration, click Test Connection in the Design-time Connection tab to ensure that the adapter can connect to the Lotus application.
6.
Select the PublicationService of the adapter instance, click Get Schema in the Configuration tab.
7.
Select the Enterprise Archive PubEARDemo-Designer, change the field of File Location in the Configuration tab if necessary.
8.
Click Build Archive in the Configuration tab to create the archive file.
Task D Convert the EAR File to Service Assembly
1.
Do not use the SOA project named EARTransferDemo-SOA in the sample directory, which is only for reference.
2.
3.
In the Import dialog, select General > File System. Click Next.
4.
Check the Select root directory radio button, browse to select the directory that maintains the EAR file PubEARDemo-Designer.ear. Specify the destination in the Into folder field.
5.
Click Finish.
6.
In the Project Explorer, right-click the imported file PubEARDemo-Designer.ear, and then select Build Service Assembly Archive from the shortcut menu.

Copyright © TIBCO Software Inc. All Rights Reserved