Skip to content

Instantly share code, notes, and snippets.

View pedro-hos's full-sized avatar
🏠
Working from home

Pedro Hos pedro-hos

🏠
Working from home
View GitHub Profile

Rh-SSO with EAP7 Cluster setup guide.

This installation and configuration guide is intended to use as the main concept of integrating RedHat SSO with mod_cluster only. The guide doesn’t cover full brown cluster setup. For more advanced cluster setup, please refer here.

Requirement

  • Red Hat JBoss Core Services Apache HTTP Server 2.4.23 for RHEL 7 x86_64
  • EAP 7
  • BPMS
  • RH-SSO
module add --name=org.postgresql --resources=~/Downloads/postgresql-42.3.3.jar --dependencies=java.desktop,java.logging,java.management,java.naming,java.security.jgss,java.security.sasl,java.sql,java.transaction.xa,java.xml
batch
/subsystem=datasources/jdbc-driver=org.postgresql:add(driver-name=org.postgresql, driver-module-name=org.postgresql, driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
/subsystem=datasources/data-source=postgresql:add(driver-name=org.postgresql, jndi-name="java:/jdbc/PostgresDS", enabled=true, connection-url="jdbc:postgresql://localhost/test")
run-batch
@letanure
letanure / estados-cidades.json
Last active June 18, 2024 01:48
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@creativepsyco
creativepsyco / post-curl
Created March 5, 2012 18:02
POST request Via CURL in MAC OS X
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"userid": "mohit", "password":"password"}' http://mmedwebdemo.ddns.comp.nus.edu.sg:8080/comp.nuhs.jaxb/api/usr/login