This file contains 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 |
This file contains 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 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 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 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 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
JBoss implements a JSR 160 compliant JMXConnector instead of an RMI interface to establish a connection to a JMX MBeanServer form a remote client. | |
There is no need for any additional JVM options. The JMXConnector uses under the hood JBoss Remoting for the transport and by default the native management endpoint of the AS7 if the server is running in the standalone mode. | |
To access the management endpoints a management user in the realm ManagementRealm is required | |
add the user: ./add-user.sh | |
Add the folowing libs on classpath: | |
org/jboss/remoting3/remoting-jmx | |
org/jboss/remoting3 |
This file contains 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
Sub Macro_PreencheColunaA() | |
Dim quantidade As Integer | |
Dim asque As Integer | |
asque = 65 | |
Dim cela As Integer | |
cela = 14 | |
quantidade = cela + 9 | |
Dim coluna As Integer | |
coluna = 4 | |
Dim valorCelula As String |
This file contains 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
Private Sub CommandButton1_Click() | |
Dim quantidade As Integer | |
Dim asque As Integer | |
asque = 65 | |
Dim cela As Integer | |
cela = ActiveCell.Row | |
quantidade = cela + Cells(1, 9) - 1 | |
Dim coluna As Integer |
This file contains 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
1) Create a Dockerfile build with FROM pointing at one of app base images (call it `example-com-eap7`) | |
2) ADD or COPY example.com's CA (for EAP, this looks something like `ADD configs/certs/cacerts_JDK8 /etc/pki/ca-trust/extracted/java/cacerts`) | |
3) Create new apps based on `example-com-eap7` (`oc new-app example-com-eap7~...`) | |
The jist is, if you can add the pertinent files to `/etc/pki/ca-trust/` then the apps & pods should be good. | |
This file contains 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
for i in $(oc get projects | grep Terminating| awk '{print $1}'); do echo $i; oc get serviceinstance -n $i -o yaml | sed "/kubernetes-incubator/d"| oc apply -f - ; done | |
for i in $(oc get projects | grep Terminating| awk '{print $1}'); do echo $i; oc get servicebinding -n $i -o yaml | sed "/kubernetes-incubator/d"| oc apply -f - ; done |
OlderNewer