Notes
Notes - notes.io |
cd /opt/glassfish/glassfish/domains/xdomain/lib
echo 'Descargando librerias...'
aws s3 cp s3://logcloud-stackpointer-src/commons-libraries . --recursive
cd /opt/glassfish/glassfish/bin/
echo 'Iniciando glassfish...'
sh asadmin start-domain xdomain
echo 'Creando pool de conexiones...'
sh asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGConnectionPoolDataSource --restype javax.sql.ConnectionPoolDataSource --ping=false --steadypoolsize=4 --maxpoolsize=30 --poolresize=2 --idletimeout=120 --statementcachesize=20 --validateatmostonceperiod=120 --leaktimeout=120 --leakreclaim=true --statementleaktimeout=120 --statementleakreclaim=true --isconnectvalidatereq=true --validationmethod=table --validationtable=dual --property DatabaseName=cmms:Password=ybt6dP2qqMkRR4CJ:User=cmms:PortNumber=5432:ServerName=db.cmms.logcloud.co PostgresLogCloudPool
echo 'Creando recurso de conexiones...'
sh asadmin create-jdbc-resource --connectionpoolid PostgresLogCloudPool jdbc/LogCloudDS
echo 'Creando JNDI...'
# JNDI Aplicaciones
# sh asadmin create-custom-resource --restype java.util.Properties --factoryclass org.glassfish.resources.custom.factory.PropertiesFactory --property "web=jdbc/web" prop/serverpools
# JNDI Amazon
# sh asadmin create-custom-resource --restype java.util.Properties --factoryclass org.glassfish.resources.custom.factory.PropertiesFactory --property IMAGES_BUCKET=extreme-xtrack-files:IMAGES_BUCKET_TEMP=extreme-files-temp:ACCESS_KEY=AKIAIBGSIE7MHC6FQKAQ:SECRET_KEY=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 prop/amazonservices
# JNDI Personalizado
# sh asadmin create-custom-resource --restype java.util.Properties --factoryclass org.glassfish.resources.custom.factory.PropertiesFactory --property "FOLDER_LOGOS=xtrack/logos/:SERVER_NAME=xplatform:IMAGEN_CONDUCTOR_HOLDER=xtrack/fotos/conductor_holder.jpg:IMAGEN_VEHICULO_HOLDER=xtrack/fotos/vehiculo.jpg:TIPO_DOCUMENTO_IMAGEN_VEHICULO=12" prop/xtrack
echo 'Deteniendo glassfish...'
sh asadmin stop-domain xdomain
aws s3 cp s3://logcloud-stackpointer-src/cmms/load-app-init /etc/init.d/
echo 'Dando permisos al servicio load-app-init'
chmod 755 /etc/init.d/load-app-init
echo 'Cambiando owner y group load-app-init'
chown root:root /etc/init.d/load-app-init
echo 'Agregando load-app-init a la lista de servicios'
chkconfig --add /etc/init.d/load-app-init
echo 'Habilitando load-app-init como service'
chkconfig /etc/init.d/load-app-init on
echo 'Iniciando servicio load-app-init'
/etc/init.d/load-app-init start
echo 'Servicio iniciado...'
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team