This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On vi editor use: | |
:%s/START/\r&/g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Too many open files (JBoss AS 7.0.2) | |
Erro por causa do ulimit do usuário. | |
jboss soft 10240 | |
jboss hard 10240 | |
/root/.bashrc | |
ulimit -n 10240 (aumentou em 10x) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JNDI Bindings lookup dinamico: | |
<subsystem xmlns="urn:jboss:domain:naming:1.1" > | |
<bindings> | |
<simple name="java:global/a" value="100" type="int" /> | |
<object-factory name="java:global/b" module="com.acme" class="org.acme.MyObjectFactory" /> | |
<lookup name="java:global/c" lookup="java:global/b" /> | |
</bindings> | |
</subsystem> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fazer deploy de war explodido via CLI | |
Adicionando o path do deploy em /deployment | |
/deployment=neo.war:add(runtime-name="neo.war",content=[{"path"=>"/opt/deploy/neo.war","archive"=>"false"}]) | |
Adicionando o deploy no grupo | |
/server-group=grupo-fnde/deployment=neo.war:add(runtime-name="neo.war",content=[{"path"=>"/opt/deploy/neo.war","archive"=>"false"}],enabled=true) | |
{ | |
"outcome" => "success", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Criptografia de datasource - JBoss EAP 6 | |
1° Gerar o keystore: | |
keytool -genkey -alias nome_do_alias -keystore arquivo_do_keystore | |
Exemplo: keytool -genkey -alias jboss -keystore /opt/jboss-eap-6.0/jboss.crypto.keystore | |
Senha: fndejboss123 | |
2° Encriptando a senha: | |
Executar o script vault.sh que está na pasta bin | |
/opt/jboss-eap-6.0/bin/vault.sh |
NewerOlder