on 06-25-2009 7:28 AM
Hi All,
In my scenario i have 1 source message interface and 2 target interface. I am using javamapping for transformation.After transformation i need to send input file to one of the target interface based on a condition( ie file name). Can someone plese provide me with the syntax how this can be achived in java mapping.
Thanks in advance,
Siva
Hi Srini,
Thanks for ur quick response, but my problem is not getting the file name. I need syntax by which my output stream will pass data to its respective Messsage Type.
Thanks
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srini,
I have go for java mapping and i have no choice for that because i have some reqirment which cannot handled in graphical mapping. Can my requirment( ie sending file to its respective Message Interface or Message Type) using java mapping can be achived.If yes please provide me the code for the same.
Thanks,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cool
Then create Message Mapping (Mapping Program 1) can be handled u r requirement specified based on Filename / and Ur java Coding (Mapping Program 2)
Now in Interface mapping
Source Interface -
> (Mapping Program 1) -
> Target Interface
(Mapping Program 2)
this willl work for u y to code standard available function in coding and re - inventiing the wheel
Srini
Hi
Filename means u r using Sender File Adapter , if so then use in Sender Adapter "Adapter Spec Config"
Select Check box "FileName" , now write Dynamic Configuration UDF in u r message mapping to cpature u r filename (Testing to be done at runtime -- will not work with test tab )
Now use Message mapping condition based on u r filename , use constant to comaper if it same then sent to target or else whatever cond u have in u r business logic
rgds
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.