cancel
Showing results for 
Search instead for 
Did you mean: 

UDF in message mapping instead of Java Mapping. Pls advice urgent

Former Member
0 Kudos

Hi All,

My scenario

CRM --- XI -- CRM

In XI I have to open socket connection.

Pls refer link:

/people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi

Can Java Mapping code given in above link for socket connection can be used in Message Mapping (CRM -- CRM)UDF?

Pls advice urgent

Regards

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181985
Active Contributor
0 Kudos

Hi Henry,

U said your scenaion as CRM --- XI -- CRM.

Then are you sending some message from CRM to XI or XI has to pull the data using socket connect to CRM system(on sender side).

Let us talk about receiver side later.

Give your inputs.

Thanks

Gujjeti

Former Member
0 Kudos

Hi ,

CRM -- XI (UDF) -- CRM

Now in UDF I need to open socket connection. Send XML request to socket and get xml response from socket and then map to CRM response.

Can UDF do this thing that Java Mapping has be done in blog

/people/saravanakumar.kuppusamy2/blog/2005/12/15/socket-integration-with-xi

Regards

former_member181985
Active Contributor
0 Kudos

Hi Henry,

I understood your requirement.

But as per the architecture of XI/PI some message has to trigger your scenario.

In this case there is no adapter where you can directly communicate with CRM system.

Do one thing configure a dummy scenario on the sender side.

Use File adapter for simplicity. once it pools the file with some dummy data in the file it comes to Interface mapping(message mapping) of the PIPELINE steps. Now use the code as you mentioned above(within UDF) for opening socket to CRM system and implement you business logic within that program and write the response to target interface which will infact talk with CRM system.

Dont forget to do the coding in an infinite loop with some delay (if required). Other wise every time you have to put a message for File Adapter for triggering purposes.

You can also acheive the same if you use Java Mapping instead of Graphical mapping with UDF(code for Opening socket and business logic). I suggest you to use Java Mapping.

I dont know how you will comunicate with CRM system on receiver side.?

Thanks,

Gujjeti

Former Member
0 Kudos

i think UDF also shud work as anyway message mapping is later a Java mapping...

Former Member
0 Kudos

Hi All,

Please let me know that it can done surely.

Regards