Verify persistence

From hmislk/hmis · View interactive version

Verify persistence is an AI agent skill from the GitHub repository hmislk/hmis. Verify persistence.xml configuration before git push. Use before pushing code to ensure persistence.xml uses environment variables instead of hardcoded JNDI names. Prevents QA deployment failures.

How to use this skill

Skill file

Verify Persistence Configuration

Check src/main/resources/META-INF/persistence.xml for deployment readiness.

Steps

  1. Read persistence.xml at src/main/resources/META-INF/persistence.xml
  1. Check JNDI datasources - Must use environment variables:
  1. Check DDL generation paths - Must NOT contain hardcoded paths:
  1. Report findings clearly:

What's Correct vs Wrong

| Setting | Correct | Wrong |

|---------|---------|-------|

| Main datasource | ${JDBC_DATASOURCE} | jdbc/coop, jdbc/rhDS |

| Audit datasource | ${JDBC_AUDIT_DATASOURCE} | jdbc/ruhunuAudit |

| DDL location | Not present or env var | c:/tmp/, /home/buddhika/tmp/ |

If Issues Found

Offer to fix by replacing hardcoded values with environment variables. Do NOT auto-fix without user confirmation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.