mercredi 7 août 2019

How to set a connection-instance or properties, to an object

Im trying to config my jndi for testing, im using spring-test library to set my namevalue, but i need to get the value for it (the connection config). Im using weblogic-ra.xml, and im trying to set a ConnectionFactory object equals to my .xml config, for that, i want to set in a object the next config, to make the jndi access it.

This is the xml config i want to put in my object.

-<weblogic-connector xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-connector http://xmlns.oracle.com/weblogic/weblogic-connector/1.2/weblogic-connector.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/weblogic/weblogic-connector">
-<outbound-resource-adapter>
-<connection-definition-group>
<connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
-<connection-instance>
<jndi-name>ECI</jndi-name>
-<connection-properties>
-<pool-params>
<initial-capacity>10</initial-capacity>
<max-capacity>100</max-capacity>
<capacity-increment>1</capacity-increment>
<shrinking-enabled>true</shrinking-enabled>
<shrink-frequency-seconds>900</shrink-frequency-seconds>
<highest-num-waiters>0</highest-num-waiters>
<highest-num-unavailable>0</highest-num-unavailable>
<connection-creation-retry-frequency-seconds>0</connection-creation-retry-frequency-seconds>
<connection-reserve-timeout-seconds>-1</connection-reserve-timeout-seconds>
<test-frequency-seconds>0</test-frequency-seconds>
<test-connections-on-create>false</test-connections-on-create>
<test-connections-on-release>false</test-connections-on-release>
<test-connections-on-reserve>false</test-connections-on-reserve>
<match-connections-supported>true</match-connections-supported>
</pool-params>
-<properties>
-<property>
<name>connectionURL</name>
<value>......</value>
</property>
-<property>
<name>userName</name>
<value>......</value>
</property>
-<property>
<name>password</name>
<value>......</value>
</property>
</properties>
</connection-properties>
</connection-instance>
</connection-definition-group>
</outbound-resource-adapter>
</weblogic-connector>

Aucun commentaire:

Enregistrer un commentaire