Localização
C:\Users\<user>\Downloads\glassfish-5.0-web\glassfish5\glassfish\bin\asadmin
asadmin create-jdbc-connection-pool --datasourceclassname=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource --restype=javax.sql.ConnectionPoolDataSource --property DatabaseName=NOMEPROJECTO:User=root:Password='pass':ServerName=127.0.0.1 NOMEPROJECTO
asadmin create-jdbc-resource --connectionpoolid NOMEPROJECTO "jdbc/NOMEPROJECTO"
asadmin create-auth-realm --classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm --property jaas-context="jdbcRealm":password-column="SENHA":datasource-jndi="jdbc/NOMEPROJECTO":group-table="UTILIZADORES_GRUPOS":user-table="UTILIZADORES":digest-algorithm="NONE":digestrealm-password-enc-algorithm="NONE":user-name-column="NOME":group-name-column="NOME_GRUPO":encoding="none":charset="UTF-8" NOMEPROJECTO
Nenhum comentário:
Postar um comentário