-
Notifications
You must be signed in to change notification settings - Fork 40
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
Examples do not contain case for platform independent datasource #228
Comments
There is a layer you can use for this for this https://github.com/wildfly-extras/wildfly-datasources-galleon-pack. I believe in that example you can just remove the cloud layer. |
@wisteso , thank-you for your report. We definitely need to evolve the postgresql example with a non cloud example. We will add it.You can use the same environment variables on openshift and on bare-metal BTW. As @jamezp mentioned, we have a wildfly-datasources-galleon-pack (for which we are going to release a v2 very soon with much more configuration capabilities, new env variables, ability to configure the datasource with System properties), that defines a postgresql-datasource layer that would allow you to create a datasource for postgresql. It also supports mysql and oracle (in v2 we are adding microsoft mssqlserver and mariadb). |
@jfdenise That's great news on adding the additional example. I could definitely use the env variable approach with wildfly-datasources-galleon-pack, but the 'data-source add' CLI command is also working great and lets me configure the JNDI name and have multiple datasources, if needed. Sounds like v2 might address those issues too, so I'm looking forward to it. Though is there anything you see as an issue with the <script>datasource.cli<script> approach? |
@wisteso , the CLI approach is correct, it is the way to add multiple datasources, the Galleon feature-pack allows to add only a single datasource. |
Had to guess / experiment until I found a way that worked for bare-metal / non-openshift projects. The solution I found is posted as the answer to my own StackOverflow question
This also lets users have more than one datasource instead of a singleton-only approach like you see in the postgresql example
This might seem obvious to the development team, but it's is extremely unintuitive for someone that's new to WildFly or perhaps relied on the management console to define datasources previously.
The text was updated successfully, but these errors were encountered: