cancel
Showing results for 
Search instead for 
Did you mean: 

File splitting in EJB module

Former Member
0 Kudos

Hi,

I have a EJB module (used in sender file adapter) which takes a flat file as input and then splits the file into multiple files(XML) which needs to be sent to the Integration Engine.

Is there any method by which I can return multiple XMLs from the same EJB module to the Integration Engine.

Will writing the return statement from the EJB in a loop do the job?

Thanks,

Shiladitya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Shiladitya !

Multiple EJB module outputs for the file adapter is not possible. If you need splitting, maybe you could use an external application that does the job and then the XI scenarios picks up the XML files (use the filename to get them in order), or maybe you could "split" your original scenario in 2 scenarios. One scenario, to split the file : File-XI-File and the other one to process the result of the first one : File-XI-Target Adapter.

In the first scenario you could use the "recordsets per message" parameter of the file adapter sender comm channel, to automatically split the source file in several XML messages.

Why do you need an EJB module ?

Regards,

Matias.

stefan_grube
Active Contributor
0 Kudos

This is not possible.

You need to write a whole adapter instead of a module only.

Regards

Stefan