on 03-18-2008 5:49 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.