Project for PV243 JBoss
Built-in users:
login/password:
[email protected]/admin123
[email protected]/user123
- maven
- wildfly 8.2.0+
You can run configuration script by command
jboss-cli.bat --file=deploy.cli
or
jboss-cli.sh --file=deploy.cli
or manually update appropriate xml file as follows:
<security-domain name="MustechDomain" cache-type="default">
<authentication>
<login-module code="Database" flag="required">
<module-option name="multi-threaded" value="true"/>
<module-option name="unauthenticatedIdentity" value="guest"/>
<module-option name="dsJndiName" value="java:jboss/datasources/ExampleDS"/>
<module-option name="principalsQuery" value="SELECT password FROM USERS WHERE email=?"/>
<module-option name="rolesQuery" value="SELECT role, 'Roles' FROM USERS WHERE email=?"/>
<module-option name="password-stacking" value="useFirstPass"/>
<module-option name="hashAlgorithm" value="MD5"/>
<module-option name="hashEncoding" value="hex"/>
<module-option name="hashCharset" value="UTF-8"/>
</login-module>
</authentication>
</security-domain>
<mail-session name="MyMailSession" debug="true" jndi-name="java:/mail/myMailSession" from="[email protected]">
<smtp-server outbound-socket-binding-ref="MyMailSMTP" ssl="true" username="[email protected]" password="mustech123"/>
</mail-session>
<outbound-socket-binding name="MyMailSMTP">
<remote-destination host="smtp.gmail.com" port="465"/>
</outbound-socket-binding>
mvn clean install
wildfly:deploy
When writing test we differentiate between regular JUnit tests and Arquillian integration tests. The integration test class name should end in "IntegrationTest" and those tests will be skipped in regular run. To enable integration tests see Running Integration Tests.
mvn test
mvn test -Parq-wildfly-embedded
or if you have already running instance of Wildfly
mvn test -Parq-wildfly-remote