cancel
Showing results for 
Search instead for 
Did you mean: 

Do you know about File Adapter's mechanism?

Former Member
0 Kudos

When i read Tuing Document, found question about File Adapter.

"

File Adapter

You configure File adapter sender channels by specifying one directory where files are located. <b><u>To guarantee Exactly-Once processing of files, multiple J2EE server nodes are synchronized using enqueue locks when accessing this directory</u></b>. Therefore, adding J2EE server nodes will not improve the performance of such a scenario. To get a higher degree of parallelism and increase throughput, you can split the files to be processed into different directories. You can then set up several File adapter sender channels to process these files in parallel.

"

so is that means "XI has locked the directory"?

and so we must do separate each directory for a file. is it right?

Hehe.. who know the File Adapter mechanism?

I wish yours smart answer.. bye

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

<i>so is that means "XI has locked the directory"?</i>

XI locks it when it is actully accessing the file

<i>and so we must do separate each directory for a file. is it right?</i>

Only if u need parallel processing.

Otherwise in normal scenario, one directory could be used.

Regards,

Prateek

Former Member
0 Kudos

thankx Prateek Srivastava.

just one question.

i am design one directory has many files in my project.

when file adapter access a specified file, it will lock the directory.

and then does the other file adapters can not access other files?

Former Member
0 Kudos

<b>Hi,</b>

Yep thatz right Same Directory can be used by only 1 adapter at a particular point of processing. If you check the adapter configuration of file adapter in PI 7.0 as a receiver you can aslo control the number of messages that can be processed at a point of time *concurrency and can specify the size of file etc...

Cheers

<b>*RAJ*

*REWARD POINT IF FOUND USEFULL*</b>

Answers (1)

Answers (1)

Former Member
0 Kudos

well

"XI has locked the directory"

if you are referring to file level locking mechanism as is possible in Unix etc, I am afraid this is not the case with XI file adapter, having written in Java. Java lacks this feature till the 1.4 version of it and that what is in use in all stable versions of XI.

the statement probably tried to tell you that even though there are multiple J2EE server nodes, the thread safe features i.e. synchronized access makes it sure that at one point of time only one thread processes it and thats it.