Skip to Content
avatar image
Former Member

Connection Pool For Java MDM API 5.5

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Dec 21, 2009 at 08:56 AM

    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]

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 05, 2010 at 09:31 AM

    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

    Add comment
    10|10000 characters needed characters exceeded