We are following the approach a mentioned in the below link
Client Programming Model - Using Central Development Services - SAP Library
to connect to an SAP backend, which does Application authentication. But in real time in when our application is deployed to production, the application authentication is changed to Container and a Resource Adaptermodule is deployed into the application server.
Now, I have a couple of questions.
1. How to create a new resource adapter from scratch and deploy into SAP Netweaver 7.4. So that the below configuration with Container authentication would work.
<resource-ref>
<res-ref-name> MyConnFactory</res-ref-name>
<res-type>javax.resource.cci.ConnectionFactory</res-type>
<!-- <res-auth>Application</res-auth>-->
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
2. What is the difference between Application and Container authentication? Both are picking up the connection properties through a JNDI lookup, no where it is hardcoded in code. A one time change in Admin console would change the connection properties for both. I am not really getting the difference between them. Can somebody explain it in detail?
Thanks
Srk