cancel
Showing results for 
Search instead for 
Did you mean: 

Acessing R/3 through Statelful Session Bean within WebAS

Former Member
0 Kudos

Hi,

I wrote a SFSB which should connect to R/3 system (MiniSap). Within the ejbCreate the connection should be established.

Here is the relevant snippet:

// defining the Properties

Properties logonProps = new Properties();

logonProps.put("jco.client.client", "000");

logonProps.put("jco.client.user", "BCUSER");

logonProps.put("jco.client.passwd", "minisap");

logonProps.put("jco.client.ashost", "localhost");

logonProps.put("jco.client.sysnr", "00");

// creating a Connection

con = JCO.createClient(logonProps);

// connect to R/3

con.connect();

Deployment, everything goes fine aside of:

Caused by: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: You are not authorized to logon to the target system (error code 1).

at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:413)

Stunning:

If I access R/3 by small Java class, everything goes fine.

Any ideas ??

Thx in advance

M.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

... just to continue it:

Deploying the bean under JBoss makes it without any error.

So the coding should be right, but what does WebAS do there ???

Regards

M.