Persist Adapter Customizations
The lifetime for any customization done in a file on a server pod is up to the lifetime of that pod. The changes are not persisted once the pod goes down or is restarted.
For example, the following configuration updates
DbAdapter.rar to create a new connection instance and creates data
source CoffeeShop on the WebLogic Remote Console for the same with
jdbc/CoffeeShopDS.
File location: /u01/oracle/soa/soa/connectors/DbAdapter.rar
<connection-instance>
<jndi-name>eis/DB/CoffeeShop</jndi-name>
<connection-properties>
<properties>
<property>
<name>XADataSourceName</name>
<value>jdbc/CoffeeShopDS</value>
</property>
<property>
<name>DataSourceName</name>
<value></value>
</property>
<property>
<name>PlatformClassName</name>
<value>org.eclipse.persistence.platform.database.Oracle10Platform</value>
</property>
</properties>
</connection-properties>
</connection-instance>
If you need to persist the customizations for any of the adapter files under the SOA Oracle Home in the server pod, use one of the following methods.
Method 1: Customize the Adapter file using the WebLogic Remote Console
- Log in to the WebLogic Remote Console, and update the "Outbound Connection
Pools" and
Plan.xmlreferring to https://oracle.github.io/weblogic-remote-console/userguide/providers/administration-server/#configure-deployment. - The location by default for Plan.xml will be in
${ORACLE_HOME}/soa/soawhich is not under Persistent Volume (PV). Therefore, provide the domain’s PV location such as{DOMAIN_HOME}/soainfra/servers.Now the
Plan.xmlwill persist under this location for each Managed Server.
Method 2: Customize the Adapter file on the Worker Node
- Copy
ABC.rarfrom the server pod to a PV path:kubectl cp <namespace>/<SOA Managed Server pod name>:<full path of .rar file> <destination path inside PV>For example:
kubectl cp soans/soainfra-soa-server1:/u01/oracle/soa/soa/connectors/ABC.rar ${DockerVolume}/domains/soainfra/servers/ABC.raror do a normal file copy between these locations after entering (using
kubectl exec) in to the Managed Server pod. - Unrar
ABC.rar. - Update the new connection details in the
weblogic-ra.xmlfile underMETA_INF. - In the WebLogic Remote Console, under
Deployments, select
ABC.rar, then Update.
Select the
ABC.rarpath as the new location, which is${DOMAIN_HOME}/user_projects/domains/soainfra/servers/ABC.rarand click Update. - Verify that the
plan.xmlor updated.rarshould be persisted in the PV.