Development

Warning: push.default is unset; its implicit value is changing in Git 2.0

Here is what can be found under push.default in the documentation: current – push the current branch to update a branch with the same name on the receiving end. Works in both central and non-central workflows. upstream – push the current branch back to the branch whose changes are usually integrated into the current branch (which […]

Warning: push.default is unset; its implicit value is changing in Git 2.0 Read More »

Encrypted Database Passwords in JBoss

JBoss provides a simple mechanism to encrypt database passwords with blowfish. So the standalone.xml does not include our database passwords in plaintext anymore. First you have to encrypt your password with org.picketbox.datasource.security.SecureIdentityLoginModule. This class includes a main method so you can run it with a single argument which has to be your plaintext password. The result will look like

Encrypted Database Passwords in JBoss Read More »

Disable Deployment-Scanner in JBoss

Look for the deployment-scanner config in your standalone.xml and configure the scan interval to -1 to allow deployment onyl from shell or at startup. Here is the relevant part: <subsystem xmlns=”urn:jboss:domain:deployment-scanner:1.1″> <deployment-scanner path=”deployments” relative-to=”jboss.server.base.dir” scan-interval=”-1″/> </subsystem> Or with cli: /subsystem=deployment-scanner/scanner=default:write-attribute(name=scan-interval, value=-1)  

Disable Deployment-Scanner in JBoss Read More »

Remove ExampleDS datasource in EAP6

To remove the ExampleDS datasource simply remove the relevant part from your standalone.xml: <datasource jndi-name=”java:jboss/datasources/ExampleDS” pool-name=”ExampleDS” enabled=”true” use-java-context=”true”> <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url> <driver>h2</driver> <security> <user-name>sa</user-name> <password>sa</password> </security> </datasource> Or with cli: /subsystem=datasources/data-source=ExampleDS:remove  

Remove ExampleDS datasource in EAP6 Read More »

Configure Aliases in EAP6

The default configuration states localhost and example.com as aliases. To change this you have to simply change or remove the specific parts of your virtual-server config in your standalone.xml: <virtual-server name=”default-host” enable-welcome-root=”false”> <alias name=”localhost”/> </virtual-server> This would only be a single alias with value localhost (and disabled welcome root). Or to change it with cli:

Configure Aliases in EAP6 Read More »