You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Cloud.getServiceConnector API to get an instance of MongoServiceInfo in a non-spring app deployed to CF but the API is throwing an exception saying no suitable ServiceConnectorCreator found. When I call cloud.getServiceInfo() I see the service in the list with the correct id and I can cast it to an an instance of MongoServiceInfo. Any idea why I would be getting this error?
The text was updated successfully, but these errors were encountered:
@ryanjbaxter Cloud.getServiceConnector() isn't meant to be used to get a ServiceInfo, but rather a service connector (such as MongoDbFactory) without the need to access ServiceInfo (typical Spring usage). If you need just the MongoServiceInfo, then getServiceInfos(MongoServiceInfo.class) is the way to go.
I am using the Cloud.getServiceConnector API to get an instance of MongoServiceInfo in a non-spring app deployed to CF but the API is throwing an exception saying no suitable ServiceConnectorCreator found. When I call cloud.getServiceInfo() I see the service in the list with the correct id and I can cast it to an an instance of MongoServiceInfo. Any idea why I would be getting this error?
The text was updated successfully, but these errors were encountered: