Skip to main content

An application's environments

An environment of an application is the set of connections it works with: its database and the servers it calls. A JD Edwards EnterpriseOne environment is a database, an AIS server and a Server Manager; a NomaUBL environment is its server. An application that runs against production, test and development has three environments, and its users pick the one they work in under the application list.

Each application that describes what one of its environments is made of can have its environments set up from one form, the environments editor: a new environment is a name and, for each part, the address and the account — Liberty Next writes the pools and binds them to the application's connectors.

Access: the editor is opened from NomaHub — its Hubs, JD Edwards, NomaSX1 and NomaJDE entries, each on its application; its NomaUBL page shows the same form to attach a hub's environment in place. Superusers only: the server refuses anyone else.


At a glance​

JD EdwardsSaveDiscardJD Edwards environmentfirst (the application's own)oracle://jde-prod:1521/JDEPRODpyoracle://jde-test:1521/JDEPY+ Add an environmentJD EDWARDS ENVIRONMENT · PYRemoveJD EDWARDS DATABASEjde-test:1521 / JDEPYJDE_READAIS SERVERjde-test:7077/jderest/v2JDESERVER MANAGERjde-test:8998/manage/…jde_adminThe environment's business data and control tables: the account Liberty reads with. · jdedwards_pyDATABASEoracle · jde-testACCOUNTJDE_READpassword setSCHEMAS6 schema(s)CTL · DTA · SYDATABASE LINKS0 link(s)TUNING1 + 9Test connectionDATABASE TYPEOracle ▾HOSTjde-testPORT1521SERVICE NAMEJDEPY› Advanced: driver, options, URLIts environmentsthe first is the application's ownAdd an environmenta copy of the first, no secretsEach part's poolnamed <pool>_<environment>Its partsthe database, the servers it callsThe Pools editor's formaccount, schemas, links, tuningDiscard / Savepools written, bound, reloaded

What an environment is made of​

An environment is made of parts; each part is a pool — a database or an HTTP server — bound to some of the application's connectors. One part is the environment's main part: its pool is the environment the users pick.

EnvironmentPartsNotes
JD Edwards environment (Nomasx-1, Nomajde)JD Edwards database (main — Oracle, SQL Server or Db2), AIS server, Server ManagerShared by both applications: it is offered as long as the licence covers one of them. The AIS part also asks for the key that signs a token per user.
NomaUBL environmentNomaUBL server (main)The address behind the hub, Liberty's account in it, and its acting-user secret.
Hub (NomaHub)NomaUBL hubThe hub's address and its administrator token.
NomaSX1 database, NomaJDE databaseThe application's own PostgreSQL databaseOne instance only: changed, never added nor removed.

Under each part, a line says what it is for and the pool it is written to (jdedwards_py). A part whose connector does not exist in the installation says so: This installation has no connector …: nothing is bound to this part.


The environments editor​

The list on the left groups the environments by application. The first one is first (the application's own) — the pools the application was installed with —; the others carry their name. Each line shows the address of its main part.

The picked environment opens beside the list:

  • its parts, drawn as stages — each with its address and its account (password set when one is stored, no address yet in orange when it has none); a click on a stage shows that part;
  • the picked part's pool, whole, in the form of Liberty Next → Administer → Pools: its stages Database, Account, Schemas, Database links, Tuning, and Test connection — see A pool, stage by stage.

An application with a single environment opens on it at once.

Add an environment​

Add an environment, under an application in the list, opens a new environment — New environment — JD Edwards environment:

FieldDescription
NameLower-case letters, digits and _ — py, test. It names the pools: <pool>_<name> for each part (jdedwards_py, jde_ais_py, jde_server_manager_py).
Each partStarts as a copy of the first environment's pool — its schemas, database links, tuning and options — without its secrets: what differs (the address, the schema names) is changed, the password typed.

To fill in: … names the parts that still have no address; Save waits for them.

Save​

Save writes each part's pool (its secrets encrypted), binds the environment to the application's connectors, keeps the previous files in the configuration history and reloads Liberty: Saved: its pools written, bound to the application, Liberty reloaded.

Connector of a partWhat the binding does
SQL connector (a database part)The environment's database becomes one of the connector's databases — see A connector on several databases.
API connector (a server part)The environment's server becomes one of the connector's servers, keyed by the environment's main pool — see One server per environment.

A password or a signing key left blank on an existing environment keeps the one stored. Discard puts the form back as it was opened, and drops a new environment.

Remove an environment​

Remove, on an environment other than the first, asks what becomes of its pools:

ChoiceEffect
Keep its poolsThe application's connectors stop using the environment; its pools stay in Pools.
Delete its pools tooThe pools are deleted as well.

The first environment — the application's own — is never removed.


Users pick the environment​

Once an application has several environments, a Pool list appears under the application list, its main database first. The screens, dashboards and pages of the application read from the environment picked; picking another one reads the application's open tabs again, and asks first when one of them holds unsaved changes. An application reached through an API connector alone offers its servers the same way. See The environment picked under the application list.


What an application ships​

The description of one environment ships with the application, as environment.toml in its plugin folder — the parts, each with its kind (database or server), its label and help in each language, its pool, the connectors bound to it, which one is the main part, and what its form asks (an account, a token or nothing; a signing key). An application's own database is described with single = true.

plugins/<app>/environment.toml — one part
label = "JD Edwards environment"

[[parts]]
id = "database"
kind = "database"
label = "JD Edwards database"
pool = "jdedwards" # the first environment's pool; another one's: jdedwards_<name>
connectors = ["jdedwards"]
main = true

The environments set up are not stored apart: they are read from the connectors as they stand — a SQL connector's databases, an API connector's servers.


Tips & best practices​

  • Name environments after what they are for — py, test, dev — short: the name ends every pool's name.
  • Set up the first environment fully, schemas and tuning included: every new environment starts from it.
  • Run Test connection on each part before saving.
  • Remove an environment with Keep its pools first; delete the pools once nothing else needs them.