Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

CONNECT can facilitate a database-less deployment for environments and/or clients that do not want to use databases. With CONNECT 5.1, there is no need to have data-sources already defined on the server in order to deploy CONNECT successfully. This is achieved by defining the database beans on as required basis (lazy-init= true) and removing the unnecessary resource-refs in the web.xml files.  Additionally, we need to configure following files:

  1. Comment out the datbaseEventLogger databaseEventLogger from the loggersList bean in EventLoggerFactoryConfig.xml. Your EventLoggerFactoryConfig.xml should look like this:

    Code Block
    titleEventLoggerFactoryConfig.xml
        <bean id="loggersList" class="java.util.ArrayList">
            <constructor-arg>
                <list>
                    <ref bean="log4jEventLogger"/>
                    <!--ref bean="databaseEventLogger" /-->
                </list>
            </constructor-arg>
        </bean>


  2. Provide a No-Op implementation for transactionstore  in TransactionLoggingProxyConfig.xml


    Code Block
    titleTransactionLoggingProxyConfig.xml
        <!--   Beans defined for transactionstore    -->
        <alias alias="transactionstore" name="transactionstorenoop" />
    


  3. Set LogToDatabase=false in audit.properties

...

Info
titleImportant note regarding Example DS

Wildfly requires at-least one datasource defined on the server and it must be refferred to in the default bindings section.  Removing all datasources will result in the below error: 

2017-09-13 13:11:32,358 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-9) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "CONNECT-JB7.ear")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.naming.context.java.module.CONNECT.\"DocumentQuery_a0-5.1.0-SNAPSHOT\".DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]",

This is not related to CONNECT. It is mandated by the Java EE Specification. For more information, visit Wildfly documentation.

...