cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters from Communication channel to EJB Module

Former Member
0 Kudos

Dear friends,

We have an EJB module in NWDS. We want to pass some parameters from Communication Channel (Sender) in Integration Directory and use them in our EJB Module. Is there any function to do this process?? Please help me out

Thanks and Regards,

N.Jayanth Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use the Channel object in this manner:




String cid  = moduleContext.getChannelID();
channel = (Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, cid);

//To access channel parameters e.g in file adapter the connection parameters like host use the below code
String host = channel.getValueAsString("ftp.host");
			

PS: it is assumed that you are having the source code for adapter module development found on server

Regards,

Fariha

former_member182294
Active Contributor
0 Kudos

Hi Jayanth,

You can do this in two ways:

1) Call the EJB in a UDF. For this you should import the required EJB jar files into your Integration Directory.

2) Expose the EJB module as a WebService and consume in your Integration Directory. This is a preferred approach.

Regards

Abhiash

Former Member
0 Kudos

Dear Abhilash,

Thanks a lot for your suggestion.Can you please tell me how to import the required EJB jar files into your Integration Directory??