-
Notifications
You must be signed in to change notification settings - Fork 60
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
Need to bind multiple rabbitmq and/or mysql services to JVM #87
Comments
Hi @maximusfloydus. As a workaround, I would suggest excluding the |
The other option is, as you mentioned, to use the 2.x line of scs starters. But, as you've noticed, they use spring-cloud-connectors; which I don't believe will reduce the complexity for you. |
By excluding |
The |
After some thought, I think the approach suggested above is the best one for supporting multiple services of the same type. |
@dyroberts Can SpEL be used in Spring Cloud Configuration or only in a local properties file? It would be ideal if pivotal/vmware provide a little more flexibility in this library. I really would like to use this library for SCS Config, SCS registry, SSO and maybe a few other things. I just can't use it for JDBC or AMPQ in my current applications. I saw a PR to support a "enabled" flag #40. Another option would be allow the PostProcessor to not exit when it finds multiple, but just log the error and process the rest. I could do a PR also, if there is a path you guys would be willing to accept. |
Thanks for your persistence @maximusfloydus. I've merged the |
I'm in PCF using SCS 3.1 with the following dependencies:
CfEnvironmentPostProcessor doesn't allow multiple Rabbitmq service instances to be bound to a single application.
I'm looking for a way to override or disable CfEnvironmentPostProcessor for our rabbitmq and mysql bindings since we need to support multiple rabbitmq clusters and mysql instances in a single JVM. I would be fine adding my own custom PostProcessor to handle these situations, but I haven't seen a clear example of how to override or disable what is set in the META-INF/spring.factories
Is the better option to use try spring-cloud/spring-cloud-connectors 2.x instead? We are new to the PCF and would prefer to build upon the new models.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: