Objectify 5 to connect the local datastore emulator in java project

Viewed 92

I have to connect java appengine project with local datastore emulator in gcp.

ObjectifyService.init(new ObjectifyFactory(
    DatastoreOptions.newBuilder()
        .setHost("http://localhost:8484")
        .setProjectId("my-project")
        .build()
        .getService()
));

The above solution applies to Objectify v6, I want a way to connect datastore emulator to the java appengine Project in Objectify v5 ?

0 Answers
Related