Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
prasad_ulagappan2
Contributor
0 Kudos

If you create Java Proxy for asynchrounous inbound interface, it will create the following files

What shall we do next? How these can be incorporated in XI? Here are the steps, just follow the below mentioned steps.

Step1

Communication channel configuration

Go to NWS and open the ejb-module project you have already created. Modify the files mentioned here under.

Step2

ejb-jar.xml should be modified as per following :

Step3

ejb-j2ee-engine.xml should be modified as per following :

You will find one file named application-j2ee-engine.xml. Modify the file as mentioned here under.

Step4

application-j2ee-engine.xml should be modified as per following :

Here I have just concatenated "+String" with the target data.

Step5

IMPL Class :


package com.wipro.javaProxy;
import sun.net.ftp.FtpClient;
import sun.net.*;
import java.io.*;
public class MIDataTarget_PortTypeImpl
extends com.sap.aii.proxy.xiruntime.core.AbstractProxy
implements MIDataTarget_PortType {
public void mIDataTarget(
com.wipro.javaProxy.DataTarget_Type mTDataTarget)throws com.sap.aii.proxy.xiruntime.core.SystemFaultException,
com.sap.aii.proxy.xiruntime.core.ApplicationFaultException {
String aa = mTDataTarget.getData().concat("+String");
mTDataTarget.setData(mTDataTarget.getData().concat("+String"));
try {
String server = "100.100.10.10";
String user = "testftp";
String passwd = "testftp";
FtpClient client = new FtpClient();
client.openServer(server);
client.login(user, passwd);
client.binary();
TelnetOutputStream out = client.put("sample.dat");
out.write(aa.getBytes());
out.flush();
out.close();
client.closeServer();
//throw new RuntimeException();
} catch (Exception E) {
}
}

}









This IMPL class will create one file called “sample.dat” in the FTP mentioned with the target data concatenated with “+string”.





In the examples given, “MIDataTarget” is the target message interface.


Once you have successfully deployed the EAR file in the XI-J2ee engine, you have to register the interface you have created with the bean.


Create a JAR file with the ejb module project and an EAR file with the enterprise application project.
Now everything has been completed. We are in the final stage.
How this progam will be called by XI in runtime. Thats the job of JPR.

But we have to register the bean we have created with JPR. How to register? Here it is...

Step6

Registration Details

14 Comments