CloudFactory cloudFactory = new CloudFactory();
Cloud cloud = cloudFactory.getCloud();
Properties cloudProperties = cloud.getCloudProperties();
System.out.println(cloudProperties.getProperty("cloud.services.dave-service.connection.uri"));
I dig more into it and find out somehow the cloudProperties are not return the "cloud.services.dave-service.connection.uri" property. The cloudProperties only contains the "cloud.services.dave-service.id".
Does anyone know what I am missing?
Thanks,
Dave
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/6ebc7289-e432-495a-83b4-38114d77aebf%40cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.state_timestamp
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.uris
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.limits
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.version
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.name
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.application_id
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.application_uris
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.started_at_timestamp
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.instance_id
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.space_name
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.application_name
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.application_version
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.services.null.id
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.started_at
2015-03-14T21:26:27.02-0700 [App/0] OUT cloud.application.start
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.application.port
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.application.instance-id
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.services.dave-service.id
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.application.host
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.application.app-id
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.application.instance_index
2015-03-14T21:26:27.03-0700 [App/0] OUT cloud.application.space_id
If the service exposed the credentials as a single uri field, then the following properties would be set up:
cloud.services.my-postgres.connection.uri
cloud.services.my-postgres.plan
cloud.services.my-postgres.typeTo view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/d2267661-662b-41c5-889e-7132b87f410f%40cloudfoundry.org.