Dynamic Outbound Directory and FileName in File Adapters – Oracle SOA Suite 11g

Often, we’ll have a requirement to change the directory to which the files are to be written dynamically. In such cases, Oracle SOA Suite 11g provides the option to do so.
While configuring a File Adapter, we specify the output directory and the file name pattern at design time.
But if we want to derive the output directory file dynamically at runtime, the process is simple.
Steps:
  1. Configure the File Adapter normally as you do for anyother one, ie., you specify a directory name and the file name pattern at design time.
  2. In the Invoke activity in the BPEL process, as you wire it to a File Adapter partner link, you get the Edit Invoke dialogue.
  3. Go to properties and configure jca.file.Directory and jca.file.FileName with values set to variables that will be populated at  runtime in some assign activity before the invoke activity.
  4. This overrides the directory and name mentioned at the design time.
  5. Note that if the filename is set to the same value at runtime again and again, the same file gets overridden. So take care to set a value that uses diff file names if you dont need the files to be overridden.
This entry was posted in dynamic outbound directory, SOA Suite 11g. Bookmark the permalink.

2 Responses to Dynamic Outbound Directory and FileName in File Adapters – Oracle SOA Suite 11g

  1. Anonymous says:

    Thanks … Nice Information..

  2. Anonymous says:

    Thanx ..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s