/* Comment copied from interface. */
public ResourceAssignmentService newResourceAssignmentService ()
throws FactoryConfigurationError {
if (rmsf == null) {
throw new FactoryConfigurationError
("Resource management service factory not configured.");
}
ResourceAssignmentContext rasCtx = null;
try {
rasCtx = (ResourceAssignmentContext)EJBUtil.createSession
(WorkflowEngineHome.class, ENGINE_NAME);
} catch (ResourceNotAvailableException e) {
throw (FactoryConfigurationError)
(new FactoryConfigurationError
("Required WorkflowEngine EJB not available: "
+ e.getMessage())).initCause(e);
}
DataSource ds = null;
try {
ds = (DataSource)EJBUtil.lookupJNDIEntry(DB_NAME);
} catch (NamingException e) {
throw (FactoryConfigurationError)
(new FactoryConfigurationError
("Required datasource available: " + e.getMessage()))
.initCause(e);
}
return new StandardResourceAssignmentService(rmsf, rasCtx, ds);