I really hope that we can get this working. This feature has been problem long time. Some are managed to build ugly hacks but this would be very nice way of approaching it. EntityManager s name and other app-dependent stuff could be made configurable :) Additional files: persistence.xml
| <persistence> | <persistence-unit name="digizoneDatabase"> | <provider>org.hibernate.ejb.HibernatePersistence</provider> | <jta-data-source>java:/DigizoneDS</jta-data-source> | | <properties> | <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> | <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/> | <property name="hibernate.transaction.flush_before_completion" value="true"/> | </properties> | </persistence-unit> | </persistence> | | Digizone-login-config.xml | <?xml version='1.0'?> | <!DOCTYPE policy PUBLIC | "-//JBoss//DTD JBOSS Security Config 3.0//EN" | "http://www.jboss.org/j2ee/dtd/security_config.dtd"> | <policy> | <application-policy name="DigizoneSecurity"> | <authentication> | <login-module | code="ee.digizone.jaas.DatabaseServerLoginModule" | flag="required"> | <module-option name="unauthenticatedIdentity"> | guest | </module-option> | <module-option name="dsJndiName"> | java:/DigizoneDS | </module-option> | <module-option name="principalsQuery"> | select PASSWORD from USERS where LOGIN=? | </module-option> | <module-option name="rolesQuery"> | select ROLES.ROLENAME,ROLES.P_GROUP from | ROLES, USERS, PORTALUSER_PORTALROLE | where | ROLES.PORTALROLE_ID=PORTALUSER_PORTALROLE.PORTALROLE_ID | and | PORTALUSER_PORTALROLE.PORTALUSER_ID=USERS.PORTALUSER_ID | and USERS.LOGIN=? | </module-option> | <module-option name="hashAlgorithm">SHA</module-option> | <module-option name="hashCharset">UTF-8</module-option> | <module-option name="hashEncoding"> | BASE64 | </module-option> | </login-module> | | </authentication> | </application-policy> | </policy> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932939#3932939 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932939 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
