Skip to content

anjunar/blomst-parent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wildfly standalone.xml

<subsystem xmlns="urn:jboss:domain:datasources:6.0">
    <datasources>
        <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
            <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
            <driver>h2</driver>
            <security>
                <user-name>sa</user-name>
                <password>sa</password>
            </security>
        </datasource>
        <datasource jndi-name="java:jboss/datasources/blomst" pool-name="Blomst" enabled="true" use-java-context="true">
            <connection-url>jdbc:postgresql://localhost:5432/blomst</connection-url>
            <driver>postgresql</driver>
            <security>
                <user-name>Anjunar</user-name>
                <password>Anjunar</password>
            </security>
        </datasource>
        <drivers>
            <driver name="h2" module="com.h2database.h2">
                <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
            </driver>
            <driver name="mysql" module="com.mysql.jdbc">
                <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
            </driver>
            <driver name="postgresql" module="org.postgresql">
                <driver-class>org.postgresql.Driver</driver-class>
            </driver>
            <driver name="oracle" module="com.oracle">
                <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
            </driver>
            <driver name="p6spy" module="com.p6spy">
                <driver-class>com.p6spy.engine.spy.P6SpyDriver</driver-class>
            </driver>
        </drivers>
    </datasources>
</subsystem>
        <subsystem xmlns="urn:jboss:domain:mail:4.0">
            <mail-session name="default" jndi-name="java:jboss/mail/Default">
                <smtp-server outbound-socket-binding-ref="mail-smtp" ssl="false" tls="true" username="anjunar@gmx.de" password="s3cr3t"/>
            </mail-session>
        </subsystem>
        <outbound-socket-binding name="mail-smtp">
            <remote-destination host="mail.gmx.net" port="587"/>
        </outbound-socket-binding>

configure-elytron.cli

# CLI script to enable elytron for the quickstart application in the application server

# Enable a default JACC policy with WildFly Elytron
/subsystem=elytron/policy=jacc:add(jacc-policy={})

# Disable 'integrated-jaspi' as the quickstart will be managing it's own identities
/subsystem=undertow/application-security-domain=other:write-attribute(name=integrated-jaspi, value=false)

# Reload the server configuration
reload

jboss-cli.bat --connect --file=configure-elytron.cli

WildFly Modules containing the Database Drivers

anjunar-parent/application/src/main/server/wildFly/modules

copy to $JBOSS_HOME/modules

service:jmx:http-remoting-jmx://localhost:9990

setcap 'cap_net_bind_service=+ep' /usr/lib/jvm/jdk-19/bin/java

https://github.com/wildfly/quickstart/tree/main/messaging-clustering-singleton https://www.how2shout.com/linux/how-to-install-wildfly-application-server-on-debian-11-bullseye https://linuxize.com/post/how-to-install-postgresql-on-debian-10/ http://www.zeitoun.net/articles/configure-mod_proxy_ajp-with-tomcat/start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published