Kavin's SOA Blog

June 7, 2009

FTP Adapter connection Pooling

In order to setup connection pooling on a connection factory with “none” connection pool we will need to modify oc4j-ra.xml of the FTP adapter. We need to make sure that “keepConnections” parameter is set to true

<config-property name="keepConnections" value="true"/>

and we need to create connection-pool settings. Please note that you might find an empty node like

<connection-pooling use="none">
        </connection-pooling>

and you need to replace it with

<connection-pooling use="private"> 
            <property name="waitTimeout" value="300" />
            <property name="scheme" value="fixed_wait" />
            <property name="maxConnections" value="50" />
            <property name="inactivity-timeout-check" value="all" />
            <property name="minConnections" value="5" />
            <property name="inactivity-timeout" value="50" />
</connection-pooling>

Or create a shared connection pool say “ftpPool” as shown below

<connection-pool name="ftpPool">
      <property name="waitTimeout" value="300" />
       <property name="scheme" value="fixed_wait" />
       <property name="maxConnections" value="50" />
       <property name="inactivity-timeout-check" value="all" />
       <property name="minConnections" value="5" />
       <property name="inactivity-timeout" value="50" />
</connection-pool>

and then modify connection-pooling section as

<connection-pooling use="shared">
      <use-connection-pool>ftpPool</use-connection-pool>
</connection-pooling>’

It’s a good practice to configure connection pool while configuring connection factory for the first time. At that time it asks whether to use “private” or “shared” or “none” connection pool. If you make this selection during that time, you won’t be required to modify configuration files manually (which I discourage most).

March 10, 2009

Set Adapter end point properties in ESB

Filed under: Development — Tags: , , , , , — Kavin @ 9:52 pm

Most of the time we found documentation referring to BPEL when it comes to set end point properties for adapters. BPEL and ESB share the same and they both can configured with same end point properties. Only thing we need to do is to open respective adapter’s .esbsvc file in notepad and add <endpointProperties> element as shown below.

    </invocation>
    <endpointProperties> 
        <property name="minimumDelayBetweenMessages">6000</property> 
    </endpointProperties>
</service>

Generally you can set endpoint properties “RetryCount” and “RetryInterval” apart from that if you have to add any other property you have to follow the route mentioned above.

I would suggest this trick, simply add any property which is available via UI and then open the file in notepad. This way JDeveloper already created that section and what all I have to do is to edit it with the right property name.

image

image

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.