Establishing a Connection
The objects available within our connector are accessible from the "cdata.jdedwards" module. To use the module's objects directly:
- Import the module as follows:
import cdata.jdedwards as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("URL=https://your-jde-environment-app.example.com;User=admin;Password=myPassword;")
Connecting to JD Edwards
The connector connects to JD Edwards through your JD Edwards Application Interface Services (AIS) Server.
Set the following connection properties to connect:
- URL: The base HTTPS URL of your AIS Server. For example: https://jde-ais.example.com:8300
- User: Your JD Edwards username.
- Password: Your JD Edwards password.
- Environment (optional): The JD Edwards environment to use (for example, PD920 for production or DV920 for development). The environment determines which database and configuration settings the provider uses during the session. If not specified, the AIS Server's default environment is used.
- Role (optional): The JD Edwards role for the session. Roles in JD Edwards determine the permissions and data access for the session. If not specified, the AIS Server's default role is used.
- DeviceName (optional): An identifier for the connecting device or application, used for auditing and logging on the AIS Server. If not specified, the IP address of the device the connector is running on is used as the identifier.
- Jasserver (optional): The specific JAS (Java Application Server) instance to route requests through. This connection property is useful for associating requests with a particular node in a clustered environment. If not specified, the connector uses the default HTML Server configured for the AIS Server.
To control what exact JD Edwards data is exposed, set these properties:
- DataModel: A module (or a comma-separated list of modules) whose system codes you want to expose as schemas in the connector. Supported values include All, FinancialManagement, HumanCapitalManagement, Logistics, Manufacturing, OrderManagement, RealEstateManagement, and others. Defaults to FinancialManagement.
- SystemCodes: A comma-separated list of additional JD Edwards system codes to expose as schemas alongside those of the selected DataModel(s). For example, SystemCodes=42,43.
Token Caching
The connector uses your credentials to obtain a session token, which is necessary to request your JD Edwards data from the API, from the AIS Server and caches it for subsequent requests.On the first connection, the connector sends your credentials to the AIS Server to obtain a session token. You can use the CredentialsLocation property to change the token storage location.
When the session token approaches expiry — after approximately 90% of the AIS Server's configured session timeout — the connector automatically requests a new token using the stored credentials.