on 02-23-2022 12:28 AM
Hi,
Can any body help on this. How to do connection pooling in sapjco3. Actually in sapjco2 we are doing like below. We are created a common method getRepository() and we are calling this method where ever we required connection. So I just want to do the same thing using sapjco3. But when searched in google I found that you have to use DestinationDataProvider and write a custom class and pass the params in runtime. So I have few queries on this.
In sapjco2:
public IRepository getRepository(){
IRepository repository = null;
JCO.Pool pool = JCO.getClientPoolManager().getPool("TESTPOOL");
if(pool == null){
JCO.addClient("TESTPOOL",5, "500", "test123", "testpwd", "sap.dev.com"));
}
repository = JCO.createRepository("TestRepository","TESTPOOL");
return repository;
}
So in other classes wherever we required the connection we are just calling the above method like below.
IRepository repository = getRepository();
repository.getFunctinTemplate("BAPI_COMPANY_LIST");
1) How to create a same method like above using DestinationDataProvider class in sapjco3
2) Where we have to put this DestinationDataProvider class, actually my project is a maven web project which will
give you a war file, so can we add this class in the project code itself our we need to deploy as seperate entity.
3) How to pass the properties parameters runtime to the DestinationDataProvider.
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.