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
| # change the provided default configuration for the ejb-multi-server quickstart | |
| # stop the preconfigured server for the domain | |
| batch | |
| # first stop the default servers, block until the server is down | |
| /host=master/server-config=server-one:stop(blocking=true) | |
| /host=master/server-config=server-two:stop(blocking=true) | |
| # remove the default server configuration and server-groups |
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
| Gerenciando o certificado com o Java keytool: | |
| Para gerar um certificado válido por 180 dias, usando algoritmo RSA:: | |
| keytool -genkey -keyalg RSA -alias livraria -keystore caelum_keystore.jks -storepass caelum -validity 180 | |
| Obs: Para usar com Tomcat usa a mesma senha para o keystore e para o certificado! | |
| Para listar todo o conteudo do keystore: |
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
| What is in a keystore | |
| ======================= | |
| keytool -list -v -keystore keystore-file.jks | less | |
| ======================= | |
| show certificates website | |
| ======================= | |
| openssl s_client -host internet.onprvp.fgov.be -port 443 -showcerts | |
| ======================= |
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
| #!/bin/bash | |
| export PW=`cat password` | |
| # Create a self signed key pair root CA certificate. | |
| keytool -genkeypair -v \ | |
| -alias exampleca \ | |
| -dname "CN=exampleCA, OU=Example Org, O=Example Company, L=San Francisco, ST=California, C=US" \ | |
| -keystore exampleca.jks \ | |
| -keypass:env PW \ |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | |
| version="1.0"> | |
| <!-- derby --> |
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
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
| http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> | |
| <persistence-unit name="MyAppUnit" transaction-type="JTA"> | |
| <provider>org.hibernate.ejb.HibernatePersistence</provider> | |
| <jta-data-source>java:/myAppDS</jta-data-source> | |
| <!-- Package: uk.co.example.domain --> |
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
| # <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
| # |<------------- Using a Maximum Of 50 Characters ------------>| | |
| # Explain why this change is being made | |
| # |<--- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Provide links or keys to any relevant | |
| # [jira | tickets | articles | other resources] | |
| # Valid Example: Github issue #23 |
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
| package com.ndobryukha.tests.infinispan; | |
| import org.infinispan.client.hotrod.RemoteCache; | |
| import org.infinispan.client.hotrod.RemoteCacheManager; | |
| import org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller; | |
| import org.infinispan.commons.equivalence.ByteArrayEquivalence; | |
| import org.infinispan.configuration.cache.Configuration; | |
| import org.infinispan.configuration.cache.ConfigurationBuilder; | |
| import org.infinispan.configuration.cache.Index; | |
| import org.infinispan.configuration.global.GlobalConfiguration; |
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
| package org.modeshape.connector.infinispan; | |
| import static org.hamcrest.CoreMatchers.is; | |
| import static org.junit.Assert.assertThat; | |
| import org.apache.log4j.Logger; | |
| import org.infinispan.Cache; | |
| import org.infinispan.manager.DefaultCacheManager; | |
| import org.infinispan.manager.EmbeddedCacheManager; | |
| import org.junit.Test; |