cancel
Showing results for 
Search instead for 
Did you mean: 

Sample JAVA code using Resource Adapter for RFC Connections

Former Member
0 Kudos

Hi Java Knowledgeable Ones.

I have successfully deployed the SAP Netweaver J2ee Engine "Resource Adapter for RFC Connections to ABAP Systems" to my Web Application Server. Now I need to develop a JAVA application that would utilize this deployed resource adapter. The resource adapter specifies the SAPClient, UserName, and password. I am thinking that the JAVA code to invoke this connection would therefore not need to provide this information as it should be available in the resource adapter.

Do you have sample code that you could send to me showing how to do this?

Thanks,

Kevin

Accepted Solutions (0)

Answers (1)

Answers (1)

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kevin,

this is actually no good style! You should not open the connection with the adaptor knowing the password. Usually it should work via a connection that uses only basic rights and the user has already authenticated and is using his security ticket.

For security handling see:

http://help.sap.com/saphelp_nw04/helpdata/en/61/f8bc3d52f39d33e10000000a11405a/frameset.htm

Regards,

Benny