From the File menu, click Save to validate the creation of the data server.

Setting-up the Topology 4-9 After having defined a data source for a Java EE agent, you must create it in the application server into which the Java EE agent is deployed. There are several ways to create data sources in the application server, including: ■ Configure the data sources from the application server console. For more information, refer to your application server documentation. ■ Deploying Datasources from Oracle Data Integrator in WLS for an Agent ■ Deploying an Agent in a Java EE Application Server Oracle WebLogic Server Setting Up On ConnectDisconnect Commands On the On ConnectDicsonnect tab you can define SQL commands that will be executed when a connection to a data server defined in the physical architecture is created or closed. The On Connect command is executed every time an ODI component, including ODI client components, connects to this data server. The On Disconnect command is executed every time an ODI component, including ODI client components, disconnects from this data server. These SQL commands are stored in the master repository along with the data server definition. Before setting up commands On ConnectDisconnect, please note the following: ■ The On ConnectDisconnect commands are only supported by data servers with a technology type Database JDBC. ■ The On Connect and Disconnet commands are executed even when using data sources. In this case, the commands are executedwhen taking and releasing the connection from the connection pool. ■ Substitution APIs are supported. Note that the design time tags are not supported. Only the execution time tags ? and are supported. ■ Only global variables in substitution mode GLOBAL.VAR_NAME or VAR_ NAME are supported. See Variable Scope for more information. Note that the Expression editor only displays variables that are valid for the current data server. ■ The variables that are used in On Connect and Disconnet commands are only replaced at runtime, when the session starts. A command using variables will fail when testing the data server connection or performing a View Data operation on this data server. Make sure that these variables are declared in the scenarios. ■ Oracle Data Integrator Sequences are not supported in the On Connect and Disconnet commands. The commands On ConnectDisconnect have the following usage: ■ When a session runs, it opens connections to data servers. every time a connection is opened on a data server that has a command On Connect defined, a task is created under a specific step called Command on Connect. This task is named after the data server to which the connection is established, the step and task that create the connection to this data server. It contains the code of the On Connect command. ■ When the session completes, it closes all connections to the data servers. Every time a connection is closed on a data server that has a command On Disonnect defined, a task is created under a specific step called Command on Disconnect. This task is named after the data server that is disconnected, the step and task that