on 12-17-2009 6:56 AM
Hello all,
I want to implement to use Connection Pooling for maintaining connections to MDM server using Java MDM API.
Can you please list the best practices/design strategy/sample tutorial/code for implementing/using Connection Pooling using Java MDM API?
Regards,
Yogesh Bhatia
Hello Yogesh,
Try the code mentioned below:
// Declaring connectionPool variable
ConnectionPool connPool= null;
//Creating connection
connPool= ConnectionPoolFactory.getInstance(serverName);
// Getting the repository Id
RepositoryIdentifier reposId =
new RepositoryIdentifier(repositoryName,dbmsName, DBMSType.ORACLE);
// Retrieving regions from repository
GetRepositoryRegionListCommand regionList =
new GetRepositoryRegionListCommand(connections);
regionList.setRepositoryIdentifier(reposId);
try
{
regionList.execute();
}
catch (CommandException e)
{
e.printStackTrace();
}
May be it will solve your problem.
Regards,
Vibha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Yogesh Bhatia
I want to implement to use Connection Pooling for maintaining connections to MDM server using Java MDM API.
Why do you need to implement "self-designed" connection pooling? Why don't to use standard pooling?
Writing functions which already have been written is not the correct way. Hope, you doesn't inventing a bicycle?
See Link:[ConnectionPoolFactory|http://help.sap.com/javadocs/mdm/current/com/sap/mdm/net/ConnectionPool.html] and interface description [ConnectionPool|http://help.sap.com/javadocs/mdm/current/com/sap/mdm/net/ConnectionPool.html]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yogesh
Can you check this link:
Best Regards
Prabhakar
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.