AnsweredAssumed Answered

Database Config Parameter Access

Question asked by howejr77 on Jul 14, 2008
Latest reply on Jul 14, 2008 by howejr77

I'm trying to pull the data to populate a custom constraint from the database. I've got an example working from other posts in the forum but the primary example has all the parameters to access the database hard coded in the constraint class. The example also will establish a new connection to the database as well.

Is there a way to pull these values from the "repository-properties" bean or elsewhere in Alfresco so the constraint is simply accessing the same database as the Alfresco installation? To a deeper level, is there a way to utilize any connection pool Alfresco has already established instead of setting up and tearing down a new connection?

Thank You