-
Notifications
You must be signed in to change notification settings - Fork 73
docs: sample code for wildfly and hibernate #489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CHANGELOG.md
Outdated
| - Elastic Load Balancer URL support ([PR#476](https://github.com/awslabs/aws-advanced-jdbc-wrapper/pull/476)). | ||
| - Sample code and tutorial for using the driver with: | ||
| - Spring and Hibernate | ||
| - Spring and Wildfly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add links to the readme files?
| @@ -0,0 +1,180 @@ | |||
| # Tutorial: Getting Started with the AWS Advanced JDBC Wrapper, Spring Boot and Hibernate | |||
|
|
|||
| In this tutorial, you will set up a String Boot and Hibernate application with the AWS Advanced JDBC Wrapper, and use the IAM Authentication plugin to fetch some data from an Aurora PostgreSQL database. | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWS Advanced JDBC Driver?
| @@ -0,0 +1,23 @@ | |||
| spring: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some files are missing copyright notices, do they need them?
5c93028 to
5871ee7
Compare
5871ee7 to
c95d4de
Compare
c95d4de to
7e558bd
Compare
|
|
||
| This example contains some very simple configurations for the IAM Authentication plugin, if you are interested in other configurations related to failover, please visit [the documentation for failover parameters](../../docs/using-the-jdbc-driver/using-plugins/UsingTheFailoverPlugin.md#failover-parameters) | ||
| 2. Configure Hibernate dialect: | ||
| ```properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this block labeled a properties block instead of a yaml block?
| ├───amazon | ||
| │ └───standalone.xml | ||
| ``` | ||
| > Note: The wildfly directory will contain all the files you have downloaded in step 3. For simplicity, the diagram above only shows the files requiring modifications or need to be added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| > Note: The wildfly directory will contain all the files you have downloaded in step 3. For simplicity, the diagram above only shows the files requiring modifications or need to be added. | |
| > Note: The wildfly directory will contain all the files that you will download in step 3. For simplicity, the diagram above only shows the files that either need to be added or require modifications. |
| private static final String MYSQL_CONTAINER_IMAGE_NAME = "mysql:latest"; | ||
| private static final String POSTGRES_CONTAINER_IMAGE_NAME = "postgres:latest"; | ||
| private static final String MARIADB_CONTAINER_IMAGE_NAME = "mariadb:latest"; | ||
| private static final String MARIADB_CONTAINER_IMAGE_NAME = "mariadb:10"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why are we changing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest tag was updated 5 days ago to point to mariadb v11, and standard integration tests are failing.
Since we are close to the release we are changing the tag to v10 for now.
| <remote-destination host="${jboss.mail.server.host:localhost}" port="${jboss.mail.server.port:25}"/> | ||
| </outbound-socket-binding> | ||
| </socket-binding-group> | ||
| </server> No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing newline
Summary
sample code for using the driver with:
Description
Additional Reviewers
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.