Skip to Content
0
Former Member
Nov 02, 2004 at 01:48 PM

Who have used JCO RFC Provider in WAS640, help pls

17 Views

hi everyone:

I want to enable sap r/3 call java function. So I want to use JCo RFC Provider in WAS640.

First I create a RFC destination in WAS640. After I start that RFC Provider. I test connection in SM59. The result show connection is established.

Then I create a stateless session bean, I create a business method below:

public JCO.Function processFunction(JCO.Function function)

{

try

{

System.out.println("Get SAP Call!!");

String funcName = function.getName();

return function;

}

catch(Exception e)

{

return null;

}

}

I think if java program receive any sap call, I will get a text message.

After that, in the ejb-j2ee-engine.xml I type ejb jndi just like the function module in the sap.

At last, I deploy the ejb. But when I test SAP call java. There is an error can't find my function module.

If you have used JCO RFC Provider berfore, Pls give me some adivces. What's wrong?

Thanks

elliot