*/
public String getResourceType (String resourceName) throws ConfigException
{
final ConfigContext configContext = getConfigContext();
final Domain domain = ConfigAPIHelper.getDomainConfigBean(configContext);
final Resources resources = domain.getResources();
if (resources.getAdminObjectResourceByJndiName(resourceName) != null) {
return ServerTags.ADMIN_OBJECT_RESOURCE;
} else if (resources.getConnectorConnectionPoolByName(resourceName) != null) {
return ServerTags.CONNECTOR_CONNECTION_POOL;
} else if (resources.getConnectorResourceByJndiName(resourceName) != null) {
return ServerTags.CONNECTOR_RESOURCE;
} else if (resources.getCustomResourceByJndiName(resourceName) != null) {
return ServerTags.CUSTOM_RESOURCE;
} else if (resources.getExternalJndiResourceByJndiName(resourceName) != null) {
return ServerTags.EXTERNAL_JNDI_RESOURCE;
} else if (resources.getJdbcConnectionPoolByName(resourceName) != null) {
return ServerTags.JDBC_CONNECTION_POOL;
} else if (resources.getJdbcResourceByJndiName(resourceName) != null) {
return ServerTags.JDBC_RESOURCE_JNDI_NAME;
} else if (resources.getMailResourceByJndiName(resourceName) != null) {
return ServerTags.MAIL_RESOURCE;
} else if (resources.getPersistenceManagerFactoryResourceByJndiName(resourceName) != null) {
return ServerTags.PERSISTENCE_MANAGER_FACTORY_RESOURCE;
} else if (resources.getResourceAdapterConfigByResourceAdapterName(resourceName) != null) {
return ServerTags.RESOURCE_ADAPTER_CONFIG;
} else {
throw new ConfigException(_strMgr.getString("resourceDoesNotExist",
resourceName));
}