development:applications:ebonding:configuration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
development:applications:ebonding:configuration [2017/02/07 12:22] – [eBonding Configuration File] 1carew1development:applications:ebonding:configuration [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== eBonding Configuration File ======
 +The file is located in the usual grails config directory '/usr/local/grails' and is called EBondingConfig.groovy
 +===== Spring Security =====
 +<code>
 +grails.plugin.springsecurity.interceptUrlMap = [
 +    [pattern: '/login/**', access: ['permitAll']],
 +    [pattern: '/logout/**', access: ['permitAll']],
 +    [pattern: '/**', access: ['ROLE_ADMIN']]
 +]
  
 +grails.plugin.springsecurity.logout.postOnly = false
 +</code>
 +
 +===== RabbitMQ Settings =====
 +<code>
 +rabbitmq {
 +  credentials {
 +    username = 'admin'
 +    password = 'admin'
 +    host = 'localhost'
 +    virtualHost = 'admin'
 +  }
 +  queues {
 +    //Incoming Message
 +    ebondingQueue = 'eBonding_inbound_queue'
 +    ticketerInboundQueue = 'ticketer_inbound_queue'
 +
 +    //Outgoing Message
 +    ebondingOutboundQueue = "eBonding_outbound_queue"
 +  }
 +  exchanges {
 +    //Incoming Message
 +    soapExchangeName = 'soap_exchange_topic'
 +
 +    ticketerAuditEventExchange = 'ticketer_audit_event_exchange_topic'
 +
 +    //Outgoing Message
 +    //ticketerExchangeName='ticketer_event_exchange'
 +    ebondingOutboundExchange = 'eBonding_outbound_exchange_topic'
 +    //outboundExchange="outbound_exchange"
 +  }
 +  tags {
 +    ebondingTag = 'eBonding'
 +
 +    ticketAuditEventTag = 'com.errigal.ticketer.Ticket'
 +    formValueChangeAuditTag = 'com.errigal.ticketer.FormValueChange'
 +  }
 +  bindings {
 +    //In the Form "QUEUEMAME::EXCHANGENAME::TAG"
 +    //Incoming Message
 +    ebondingBinding = "${queues.ebondingQueue}::${exchanges.soapExchangeName}::${tags.ebondingTag}"
 +
 +    auditEventBinding1 = "${queues.ebondingOutboundQueue}::${exchanges.ticketerAuditEventExchange}::${tags.ticketAuditEventTag}"
 +    auditEventBinding2 = "${queues.ebondingOutboundQueue}::${exchanges.ticketerAuditEventExchange}::${tags.formValueChangeAuditTag}"
 +
 +    //Outgoing Message
 +    //ebondingTicketerTag="${queues.ebondingTicketChange}::${exchanges.ticketerExchangeName}::eBonding"
 +  }
 +  consumer {
 +    name = 'eBonding'
 +  }
 +  numberOfTriesBeforeFail = 1
 +  numberOfSecondsBetweeTries = 1
 +  numberOfSecondsToWaitForRabbitReconnect = 5
 +}
 +</code>
 +
 +===== Thread Management Settings =====
 +<code>
 +threadmanager {
 +  numberOfInboundThreads = 2
 +  numberOfOutboundThreads = 2
 +  nameOfInboundMessageThreads = 'InBoundMsgHandler'
 +  numberOfSecondsToWaitBeforeTimeoutForInbound = 20
 +  nameOfOutboundMessageThreads = 'OutBoundMsgHandler'
 +}
 +</code>
 +
 +===== Database Connection Settings =====
 +<code>
 +dataSource.pooled = true
 +dataSource.driverClassName = "com.mysql.jdbc.Driver"
 +dataSource.dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
 +dataSource.url = "jdbc:mysql://localhost/ebonding?useUnicode=yes&characterEncoding=UTF-8"
 +dataSource.username = "root"
 +dataSource.password = "PASSWORD"
 +</code>
 +
 +===== Overall Config File =====
 +
 +<code>
 +grails.plugin.springsecurity.securityConfigType = 'InterceptUrlMap'
 +grails.plugin.springsecurity.interceptUrlMap = [
 +    [pattern: '/login/**', access: ['permitAll']],
 +    [pattern: '/logout/**', access: ['permitAll']],
 +    [pattern: '/**', access: ['ROLE_ADMIN']]
 +]
 +
 +grails.plugin.springsecurity.logout.postOnly = false
 +
 +rabbitmq {
 +  credentials {
 +    username = 'admin'
 +    password = 'admin'
 +    host = 'localhost'
 +    virtualHost = 'admin'
 +  }
 +  queues {
 +    //Incoming Message
 +    ebondingQueue = 'eBonding_inbound_queue'
 +    ticketerInboundQueue = 'ticketer_inbound_queue'
 +
 +    //Outgoing Message
 +    ebondingOutboundQueue = "eBonding_outbound_queue"
 +  }
 +  exchanges {
 +    //Incoming Message
 +    soapExchangeName = 'soap_exchange_topic'
 +
 +    ticketerAuditEventExchange = 'ticketer_audit_event_exchange_topic'
 +
 +    //Outgoing Message
 +    //ticketerExchangeName='ticketer_event_exchange'
 +    ebondingOutboundExchange = 'eBonding_outbound_exchange_topic'
 +    //outboundExchange="outbound_exchange"
 +  }
 +  tags {
 +    ebondingTag = 'eBonding'
 +
 +    ticketAuditEventTag = 'com.errigal.ticketer.Ticket'
 +    formValueChangeAuditTag = 'com.errigal.ticketer.FormValueChange'
 +  }
 +  bindings {
 +    //In the Form "QUEUEMAME::EXCHANGENAME::TAG"
 +    //Incoming Message
 +    ebondingBinding = "${queues.ebondingQueue}::${exchanges.soapExchangeName}::${tags.ebondingTag}"
 +
 +    auditEventBinding1 = "${queues.ebondingOutboundQueue}::${exchanges.ticketerAuditEventExchange}::${tags.ticketAuditEventTag}"
 +    auditEventBinding2 = "${queues.ebondingOutboundQueue}::${exchanges.ticketerAuditEventExchange}::${tags.formValueChangeAuditTag}"
 +
 +    //Outgoing Message
 +    //ebondingTicketerTag="${queues.ebondingTicketChange}::${exchanges.ticketerExchangeName}::eBonding"
 +  }
 +  consumer {
 +    name = 'eBonding'
 +  }
 +  numberOfTriesBeforeFail = 1
 +  numberOfSecondsBetweeTries = 1
 +  numberOfSecondsToWaitForRabbitReconnect = 5
 +}
 +
 +threadmanager {
 +  numberOfInboundThreads = 2
 +  numberOfOutboundThreads = 2
 +  nameOfInboundMessageThreads = 'InBoundMsgHandler'
 +  numberOfSecondsToWaitBeforeTimeoutForInbound = 20
 +  nameOfOutboundMessageThreads = 'OutBoundMsgHandler'
 +}
 +
 +
 +dataSource.pooled = true
 +dataSource.driverClassName = "com.mysql.jdbc.Driver"
 +dataSource.dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
 +dataSource.url = "jdbc:mysql://localhost/ebonding?useUnicode=yes&characterEncoding=UTF-8"
 +dataSource.username = "root"
 +dataSource.password = "PASSWORD"
 +</code>