cancel
Showing results for 
Search instead for 
Did you mean: 

regarding server java proxy

Former Member
0 Kudos

Hi,

i all tested client and server java proxy. and

i clear on client java proxy, but i am not clear on server java proxy,

Receiver XI Adapter has such a path /MessagingSystem/receive/JPR/XI, and we deployed EJB i created with java generated proxy into j2ee of xi

what i want to know is how they make a link to recognize each other?

maybe i am guessing on,

registering http://<host>:<port>/ProxyServer/register?ns

=http://myNSbean=myAppBean&method=myMethod..

how can receiver XI Adapter recognize particular ejb i deployed?

thanks

venjmain

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi Venjamin,

<i>how can receiver XI Adapter recognize particular ejb i deployed?</i>

>>>First of all proxy is generated based on the Message Interface created in the XI. When you do receiver agreement, you are calling a proxy method which is registered in the server thru XI adapter. If you observe the method name is Interface name here.

Also have a look into this-

/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy

Hope this helps

Regards,

Moorthy

Former Member
0 Kudos

Hi,

my scenario rfc -> xi -> java proxy..

all configuratoin related to server java proxy was done. we tried to test, the following is log on adapter monitoring. as you see the following log, i have no problem at xi side, but we could not see any data in some table in oracle database. so we tried to test connection db from test.java with source derived from CCVENDOR01ITSMIB_PortTypeImpl.java in EJB for server java proxy. it was good.

i am wondering if i can trace coding step in CCVENDOR01ITSMIB_PortTypeImpl.java so that i can realize XI passing data to application,

i also tried to test static values instead of GETVNAME() which is method derived from java generated proxy.

on CCVENDOR01ITSMIB_PortTypeImpl.java as below;

public void cCVENDOR01ITSMIB(kr.co.test.pt.sesitsm001Cu.vendormaster01.CCVENDOR01ITSMDT_Type cCVENDOR01ITSMMT) throws com.sap.aii.proxy.xiruntime.core.SystemFaultException, com.sap.aii.proxy.xiruntime.core.ApplicationFaultException{

//throw new RuntimeException();

Connection con = null;

PreparedStatement ps = null;

Exception err = null;

int num = -1;

//PreparedStatement

// CCVENDOR01ITSMDT_Type.ZXICCVENDOR01_Type zxiccvendor01_Type = cCVENDOR01ITSMMT.getZXICCVENDOR01();

// CCVENDOR01ITSMDT_Type.ZXICCVENDOR01_Type.Item_Type[] items = zxiccvendor01_Type.getItem();

// items[0].getVCODE();

try{

Class.forName("oracle.jdbc.driver.OracleDriver");

String dbURL = "jdbc:oracle:thin:@70.22.99.11:1585:ORA11";

con = DriverManager.getConnection(dbURL, "test", "test_001");

// System.out.println("items.length : " + items.length);

// for ( int i = 0 ; i < items.length ; i ++) {

//Update

StringBuffer sb = new StringBuffer();

sb.append(" UPDATE ZXI_CC_VENDOR01 SET VNAME=?, CCODE=?, PORG=?, STREET=?, POSTAL=?, CITY=?, COUNTRY=? ");

sb.append(" WHERE VCODE=? ");

ps = con.prepareStatement(sb.toString());

// ps.setString(1, items<i>.getVNAME());

// ps.setString(2, items<i>.getCCODE());

// ps.setString(3, items<i>.getPORG());

// ps.setString(4, items<i>.getSTREET());

// ps.setString(5, items<i>.getPOSTAL());

// ps.setString(6, items<i>.getCITY());

// ps.setString(7, items<i>.getCOUNTRY());

// ps.setString(8, items<i>.getVCODE());

ps.setString(1, "11");

ps.setString(2, "22");

ps.setString(3, "33");

ps.setString(4, "44");

ps.setString(5, "55");

ps.setString(6, "66");

ps.setString(7, "77");

ps.setString(8, "2");

int cnt = ps.executeUpdate();

ps.close();

con.commit();

-


on adapter monitoring;

2006-08-08 14:34:10 Success The message was successfully received by the messaging system. Profile: XI URL: http://70.1.22.27:50000/MessagingSystem/receive/JPR/XI

2006-08-08 14:34:10 Success Using connection JPR. Trying to put the message into the receive queue.

2006-08-08 14:34:10 Success Message successfully put into the queue.

2006-08-08 14:34:10 Success The message was successfully retrieved from the receive queue.

2006-08-08 14:34:10 Success The message status set to DLNG.

2006-08-08 14:34:10 Success Java proxy runtime (JPR) accepted the message

2006-08-08 14:35:26 Success JPR successfully processed the message

2006-08-08 14:35:26 Success The message status set to DLVD.

2006-08-08 14:35:26 Success The message was successfully delivered to the application using connection JPR.

thanks

venjamin

Answers (0)